当学生说"Common App 活动栏写不下"、"这段活动描述超字数了"、"帮我把这几条压到限制内"时使用。先按官方申请表核对当季字符限额,再逐条检查;一次把所有条目量完并直接给出压缩版,只在需要砍掉实质内容时才用选择题问该保哪部分。每改一版都用工具重新数一遍字符,绝不凭感觉说"这样应该够了"。只压缩,不代写空白。
日本語の概要は準備中です。原文の説明を表示しています。
当 AI 改完代码、要决定这份 diff 放不放行时使用。不逐行精读,按四步走查高风险点——意图是否匹配、有没有碰到边界条件、副作用面有多大、能不能回滚——每步有明确的放过与打回判据。
改动文件数、增删行数、动到的迁移/锁文件/CI/配置/鉴权/测试文件和危险 hunk 先由 scripts/diff_risk.py 统计(粘贴进来的 diff 文本也能读,不需要 Git),越过固定阈值时必须人工逐段过。只有口头描述、没有改动内容时不给结论,只列要补的材料。
diff 里新写的测试可不可信交给 ai-generated-test-auditor;没有基线的整段新代码走 ai-code-onboarding-checklist。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Use this skill after an AI agent, coding assistant, or teammate proposes a code change and you need a fast but disciplined review protocol.
This skill is optimized for reviewing a provided patch / unified diff / before-vs-after file excerpt. It does not require a specific vendor, IDE, or agent platform.
The goal is not to replace deep code review. The goal is to answer four questions quickly and honestly:
ai-code-onboarding-checklist.ai-generated-test-auditor.Provide as many of these as possible:
If any required input is missing, say so explicitly and downgrade confidence.
Return these sections in order:
pass, caution, or stop. With only a prose description of the change there is no verdict (see When there is no unified diff).scripts/diff_risk.py: files changed, +/− lines, renames and mode changes, boundary files, hunk signals, new lock-file packages, the thresholds crossed, and "manual hunk-by-hunk pass: required / not required". Without a unified diff write "Diff stats: not computed (no unified diff)"; numbers counted by reading the diff are labelled "counted by hand".Summarize the requested change in one sentence, then compare it against the diff.
Check:
If the change solves a different problem than requested, mark stop.
If most of the validation evidence is tests written in this same diff, those tests still have to earn trust: hand them to ai-generated-test-auditor (or apply its oracle and mutation questions yourself) before counting them as evidence.
Treat the following as high-risk boundaries unless proven otherwise:
For each touched boundary, answer:
If a high-risk boundary changed without matching validation evidence, mark at least caution.
Estimate the blast radius from the change shape.
Look for:
Classify side-effect surface as:
Broad surface with weak evidence usually means caution or stop.
Judge how safely the change can be backed out.
More reversible:
Less reversible:
Classify reversibility as:
Hard-to-reverse changes need explicit rollback notes before approval.
scripts/diff_risk.py)Run the script on the diff before the four steps. It needs only Python 3, no Git and no packages:
python3 scripts/diff_risk.py change.diff # a saved diff, or a pasted chat message saved to a file
git diff main... | python3 scripts/diff_risk.py # when Git is available
python3 scripts/diff_risk.py --json change.diff # machine-readable report
python3 scripts/diff_risk.py --selftest # regression cases
It reads any unified diff text: git diff, git show, git format-patch, diff -u / diff -ruN, or a diff pasted into a chat together with the prose and code fences around it. It reports:
migration, lockfile, deps, ci, config, auth, secrets, test, docs, data, code;shell=True, os.system, a download piped into sh, eval / exec, recursive deletes, unsafe deserialization, privilege changes, and literals that look like credentials (values redacted);Exit code 0 means no manual pass is required, 1 means a manual pass is required, 2 means the input holds no unified diff or cannot be read. If you cannot run Python, take the same numbers from the diff by reading it, apply the same table, and label the Diff stats "counted by hand".
The script and this table use the same numbers:
| Rule | Effect |
|---|---|
| 1–3 files changed | local; keep reviewing |
| 4–8 files changed | check for scope creep |
| 9+ files changed | manual hunk-by-hunk pass of every hunk |
| 200+ changed lines (additions + deletions, lock files excluded) | manual pass of every hunk, and a clearer side-effect summary |
any migration, auth, secrets, ci, config or deps file | manual pass of that file's hunks; raise boundary risk in Step 2 |
| a lock file adds packages, or its format is not parsed | manual pass; confirm each new package is real and intended |
| any hunk signal | manual pass of that hunk |
| production code changes by 100+ lines while test lines stay under 10 % of that | ask why (no manual pass by itself) |
A manual hunk-by-hunk pass means a person reads each listed hunk (every hunk when a size rule is crossed) and says whether it belongs to the requested change. You may pre-read and annotate the hunks, but that does not replace the person's pass. Until the person confirms it, the verdict cannot be pass. Staying under every threshold does not make a diff safe: a one-line change to a config default can still be stop. Public API changes cannot be recognized from paths; Step 2 asks about them regardless.
git diff or git show <commit> output, the list of changed files, and whether tests, config or migrations changed. A phrase like "and fixed a few small things" is itself a scope-creep signal worth naming.Return pass only when all are true:
Return caution when:
Return stop when any of these occur:
Be concise, specific, and operational.
Prefer:
Avoid vague comments like:
Verdict: caution
Rationale: The patch mostly matches the request, but it also changes shared request validation and a runtime config default.
Diff stats (scripts/diff_risk.py): 3 files, +48 / -12; boundary files: config (config/defaults.yaml); hunk signals: none; new lock-file packages: none.
Manual hunk-by-hunk pass: required (config file touched): config/defaults.yaml @@ -10,4 +10,4 @@
Risk summary:
- Intent match: partial match; bug fix is present, config expansion is extra
- Risky boundaries: runtime config, shared validator
- Likely side effects: medium; all endpoints using the validator may be affected
- Reversibility: rollback with care; code can revert cleanly, but config default change needs release coordination
High-priority review targets:
1. Validator behavior for previously accepted inputs
2. Default config value and backward compatibility
3. Test coverage for invalid/edge cases
Required follow-up before merge/apply:
- A person reads the config/defaults.yaml hunk (manual pass required by the config boundary)
- Add one regression test for the original bug
- Show behavior before/after for invalid input
- Confirm whether changing the default is intentional
Confidence: medium
scripts/diff_risk.py parses pasted text directly.| 版本 | 日期 | 变更 | 类型 |
|---|---|---|---|
| 0.2.0 | 2026-09-26 | 补上 description 承诺却不存在的统计脚本:新增 scripts/diff_risk.py(纯标准库,能读粘贴的 diff;统计文件与增删行、重命名与权限变化,按边界分类路径,标出危险 hunk,数锁文件新增包,给出阈值与是否必须人工逐段过,带 --selftest),输出契约加 Diff stats 一段;阈值改成脚本与正文同一张表,越线必须人工逐段过;没有 diff 时分两种:有前后片段照常走并降置信度,只有口头描述不给结论只列补材料;与 ai-generated-test-auditor、ai-code-onboarding-checklist 互相点名 | minor |
| 0.1.0 | 2026-08-30 | 初始版本 | minor |
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
当学生说"Common App 活动栏写不下"、"这段活动描述超字数了"、"帮我把这几条压到限制内"时使用。先按官方申请表核对当季字符限额,再逐条检查;一次把所有条目量完并直接给出压缩版,只在需要砍掉实质内容时才用选择题问该保哪部分。每改一版都用工具重新数一遍字符,绝不凭感觉说"这样应该够了"。只压缩,不代写空白。
日本語の概要は準備中です。原文の説明を表示しています。
当学生说"我参加过一些活动但没整理过"、"帮我把经历录进去"、"我的活动档案是空的"时使用。让学生一口气把记得的活动说出来,直接把这段话拆成结构化的长期事项(角色、组织、起止时间、做了什么、结果、级别),说不清的字段留空标"待补"而不是编,再用一张选择题卡把级别判定与是否重复这类关键项一次问完,然后提案入库。只记录学生真正说出口的内容,级别按事实判定,绝不往高了写。
日本語の概要は準備中です。原文の説明を表示しています。
当学生问"招生官会怎么看我的档案"、"我的背景还差什么"、"帮我评估一下现在的申请竞争力"时使用。以顶尖大学招生官的视角通读学生的档案、长期活动与已写下的反思,不问任何前置问题直接产出一份指名道姓的坦诚点评:这份材料的亮点、招生官真实的解读方式、明显的短板与空白、以及接下来最值得做的一到两件事。只读不写,不修改学生的任何数据,也不代写任何申请材料。
日本語の概要は準備中です。原文の説明を表示しています。
当使用者说"帮我填词"、"按这个字数模板写歌词"、"用多Agent对抗式写词"、"这首副歌帮我想几句"时使用,前提是字数骨架和这首歌写什么都已经有了;只有主题、还没定写什么时先用 lyric-concept-builder。拿一份字数骨架和意象系统,派三个 sonnet 子代理按不同路子并行独立起草(场景派 / 口语派 / 意象派),再派一个红队子代理逐句挑毛病,主 Agent 按句裁决拼稿,最后统一辙口与意象。收敛判据卡死:字数用 lyric-doctor 的脚本对模板数、每段同辙、hook 不含陈词、主歌二对主歌一有推进。不抄现有歌词,不替使用者决定这首歌要说什么。
日本語の概要は準備中です。原文の説明を表示しています。
当想知道一段 AI 回答"哪些能直接用、哪些必须先验证、哪些只能当建议"时使用。按声明类型分四级——低风险草稿材料、观点与策略建议、可查证的事实声明、会改变状态的可执行指令——每级配一句默认处置动作;再按影响半径排序,给出最小的下一步检查。可执行类一律标"不能直接执行;先做代码审阅/沙箱测试/回滚准备",其中破坏性或提权的命令排在最前。教的是一套可复用的复查习惯,不是替使用者把所有内容都核实一遍:本 skill 只分级、排序、定处置,要逐条核实走 ai-output-fact-checker,整段代码要做入库体检走 ai-code-onboarding-checklist。
日本語の概要は準備中です。原文の説明を表示しています。
当拿到一段 AI 生成的代码,还没决定要不要信、要不要跑、要不要往上继续加东西时使用。先做一遍客观体检:行数与嵌套深度、有没有测试、有没有硬编码密钥或遗留 TODO、依赖是不是真实存在、有没有危险调用(eval/exec、shell=True、递归删除、反序列化、提权、外发网络,按正文给的 grep 模式逐类查);再给风险评级和下一步动作。老实写明它查不了算法正确性——体检通过不等于代码是对的。回答里文字、事实和代码混在一起时先用 ai-answer-triage 分级;只审相对已有代码的一份改动用 ai-diff-review-protocol。
日本語の概要は準備中です。原文の説明を表示しています。