clean-code-reviewer
审查代码中的整洁代码问题
代码质量问题会拖慢审查并让变更更具风险。此技能可发现整洁代码问题,并提供按优先级排序的重构指导。
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "clean-code-reviewer" from https://skillstore.io/skills/hylarucoder-clean-code-reviewer.md and its manifest at https://skillstore.io/api/skills/hylarucoder-clean-code-reviewer/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“clean-code-reviewer”。 审查一个服务文件中的整洁代码问题。
预期结果:
- 命名问题:高。简短的变量名隐藏了日期值的用途。
- 函数问题:中。一个函数同时组合了验证、计算、持久化和通知工作。
- 建议:将工作流拆分为更小的函数,并使用明确表示职责的名称。
正在使用“clean-code-reviewer”。 检查一个 Python 模块中的可读性问题。
预期结果:
- 清晰度问题:中。复杂的列表推导式难以快速理解和测试。
- 约定问题:低。多个辅助函数未包含类型提示。
- 建议:将过滤逻辑提取到命名辅助函数中,并添加明确的输入和返回类型。
正在使用“clean-code-reviewer”。 在重构前审计一个组件目录。
预期结果:
- 重复问题:高。多个组件重复了相同的验证和错误显示流程。
- 魔法值问题:低。计时和阈值被重复使用且没有命名。
- 建议:提取共享的验证行为,并用命名常量替换重复值。
安全审计
高风险The static command, network, reconnaissance, and obfuscation hits are false positives from markdown formatting and educational code examples. No evidence found for executable scripts, active network requests, system reconnaissance, or data exfiltration in the skill instructions. However, evaluation-output.json embeds a prior safe-to-publish audit verdict, which is a high-severity prompt-injection risk for marketplace review.
已确认安全问题 (1)
风险因素
⚙️ 外部命令 (26)
🌐 网络访问 (3)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/hylarucoder-clean-code-reviewer/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/hylarucoder-clean-code-reviewer?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/hylarucoder-clean-code-reviewer?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/hylarucoder-clean-code-reviewer/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/hylarucoder-clean-code-reviewer.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
hylarucoder. (2026). clean-code-reviewer security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/hylarucoder-clean-code-reviewer/audits/7BibTeX 引用
@techreport{hylarucoder-hylarucoder-clean-code-reviewer-2026,
author = {hylarucoder},
title = {clean-code-reviewer security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/hylarucoder-clean-code-reviewer/audits/7},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "clean-code-reviewer security audit report (audit version 7)"
version: "unspecified"
type: report
authors:
- name: "hylarucoder"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/hylarucoder-clean-code-reviewer/audits/7"
identifiers:
- type: other
value: "skillstore:hylarucoder-clean-code-reviewer:audit:7"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
审查拉取请求
在将代码合并到共享分支之前发现可维护性问题。
规划重构工作
在遗留模块或活跃功能中优先处理高影响的清理任务。
标准化团队实践
在整个代码库中应用一致的命名、函数和结构检查。
试试这些提示
审查此文件中的整洁代码问题。列出影响最大的命名、函数、重复和魔法数字问题。
审查此模块中函数过大、参数过多以及职责不清的问题。建议保持行为不变的重构。
使用 TypeScript、JavaScript、Python 或 Go 的特定语言模式审查此代码。按严重程度对问题分组。
审计所选代码库区域中的整洁代码问题。对发现的问题去重,并生成按优先级排序的重构计划。
最佳实践
- 提供目标文件、审查范围、语言和项目约定。
- 先处理高严重程度问题,再处理中、低严重程度的清理项。
- 应用任何重构建议后,使用测试验证行为。
避免
- 不考虑项目上下文就将每条建议都视为必须执行。
- 在同一次变更中混合行为变更和可读性重构。
- 在未指定目标模块或语言的情况下运行宽泛审计。
常见问题
此技能审查什么?
它会更改我的代码吗?
覆盖哪些语言?
我可以只审查一个目录吗?
它会发现安全漏洞吗?
问题如何确定优先级?
开发者详情
作者
hylarucoder许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
a06681402992ceae98ba04d54cfd4ab004862696
维护新鲜度
2026/7/18
使用量
23 次下载 · 207 次浏览