用途分类 / 开发辅助
Code Review And Quality Skill 安全审计
作者说它能做什么(原文)
Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch.
第三方安全检查结论
这次检查未发现明显风险
- 已检查文件
- 1
- 发现的风险
- 0
会不会运行危险命令?检查是否下载程序后直接运行、让他人远程控制电脑,或藏起要运行的命令。未发现风险
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。未发现风险
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。未发现风险
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。未发现风险
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。未发现风险
Skill 逻辑拆解
该 Skill 是一套代码审查指引,要求从正确性、可读性、架构、安全性和性能五个维度评估变更;提供的材料中没有可执行脚本或安装步骤。
查看原文
Multi-dimensional code review with quality gates. Every change gets reviewed before merge — no exceptions. Review covers five axes: correctness, readability, architecture, security, and performance.审查流程要求先了解变更意图与规格,再检查测试、实现和验证记录,最终由人工决定是否接受;这些是评估步骤,不会直接修改用户文件或账户。
查看原文
### Step 1: Understand the ContextBefore looking at code, understand the intent:```- What is this change trying to accomplish?- What spec or task does it implement?- What is the expected behavior change?```### Step 5: Verify the VerificationCheck the author's verification story:```- What tests were run?- Did the build pass?- Was the change tested manually?- Are there screenshots for UI changes?- Is there a before/after comparison?```## Multi-Model Review PatternUse different models for different review perspectives:```Model A writes the code │ ▼Model B reviews for correctness and architecture │ ▼Model A addresses the feedback │ ▼Human makes the final call```该 Skill 明确要求识别重构后遗留的无用代码,但在删除前先询问用户,降低静默删除文件或代码的风险。
查看原文
## Dead Code HygieneAfter any refactoring or implementation change, check for orphaned code:1. Identify code that is now unreachable or unused2. List it explicitly3. **Ask before deleting:** "Should I remove these now-unused elements: [list]?"Don't leave dead code lying around — it confuses future readers and agents. But don't silently delete things you're not sure about. When in doubt, ask.依赖审查部分建议检查维护状态、漏洞和许可证,并要求查看变更日志、测试结果及锁文件差异;材料没有指示自动安装或升级依赖。
查看原文
Part of code review is dependency review:**Before adding any dependency:**1. Does the existing stack solve this? (Often it does.)2. How large is the dependency? (Check bundle impact.)3. Is it actively maintained? (Check last commit, open issues.)4. Does it have known vulnerabilities? (`npm audit`)5. What's the license? (Must be compatible with the project.)**Rule:** Prefer standard library and existing utilities over new dependencies. Every dependency is a liability.1. **Read the changelog, not just the version number.** Semver is a promise the maintainer may not have kept — a "patch" can carry a behavioral change. For a major bump, read the migration notes and find what breaks.2. **One dependency per change.** Upgrade and merge them individually (or in small related groups). When a bulk bump breaks the build, you've lost which package did it; a single-package change makes the cause obvious and the revert clean.3. **Let the tests decide.** The upgrade is verified by a green suite before *and* after, not by "it installed." If coverage around the dependency's behavior is thin, that gap is the real finding — add a test first.4. **Mind the transitive graph.** Most installed packages are ones nobody chose directly. Review the lockfile diff, not just `package.json`; a single direct bump can pull in dozens of indirect changes.5. **Keep the lockfile honest.** Commit it, review its diff, and never hand-edit it. The lockfile is the thing that actually pins what ships.从这里开始 · 工作说明SKILL.md
code-review-and-quality文件与检查记录1 个文件
检查范围与遗漏
逐文件查看涉及的内容
下方列出本次涉及的原文范围;纳入检查不代表已查清所有问题。
SKILL.md已纳入全文
这份报告只针对上方版本。我们看了拿到的代码和说明文件,没有实际运行 Skill,也没有检查它另外安装的软件包。因此,这不是“保证安全”的承诺;换了版本或使用环境,结果也可能不同。
SKILL.md工作说明
代码和说明中提到的操作
读取文件
**Watch file size, not just diff size.** A small diff can still push a file past a healthy boundary — around 1000 *total* lines in a single file (distinct from the ~1000 *changed*-lines threshold above) is a common inspection signal, not a hard cap. When a change materially grows an already-large file, ask whether to extract helpers, subcomponents, or modules *first*, before piling more on. Decompose, then add.- A refactor that moves code around without reducing the number of concepts a reader must hold- A change that grows an already-large file instead of decomposing it- New conditionals scattered into unrelated code paths (a missing abstraction)- 读取了多少行
- 397
- 文件校验值(用于核对版本)
- 81167a2e567ce881eb5af1b8c32a3016e54157b9142debe7beef64e22691283c