code-review
Reviewing a diff or a set of source files for defects — correctness, error handling, and tests — and reporting findings with enough evidence to act on.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- code-review
- description
- Reviewing a diff or a set of source files for defects — correctness, error handling, and tests — and reporting findings with enough evidence to act on.
03 SKILL.md 正文
Code review
When to use
A task asks you to review, audit, or find problems in code. Not for writing new code, and not for explaining what code does.
Procedure
- Read before judging. Find the call sites of anything you intend to criticise. A function that looks wrong in isolation is often correct given how it is used, and the reverse is more common still.
- Rank by consequence, not by count. One silent data-loss path outranks twenty naming quibbles. Report the quibbles last or not at all.
- Give a failure scenario per finding. Concrete inputs or state, and the wrong output or crash they produce. A finding you cannot write a scenario for is a guess — either verify it or drop it.
- Check the tests too. A test that passes whatever the code does is worse than no test: it reports safety that is not there. Look for assertions that cannot fail, and for the branch nobody covered.
- Separate defect from preference. Say which you are reporting. Reviews lose their authority when the two are mixed.
Reporting
Per finding: file and line, one sentence on what is wrong, and the failure scenario. State clearly when you found nothing — a review that invents findings to look thorough is worse than one that reports a clean result.
04 同仓库更多 Skills
probe-skill
A skill that exists so seeding has a folder to copy.
semver
How to report versions once they are ordered, and what to do with a string that is not a version or a tie that precedence cannot break.
iso-8601
How to report a date once it has been read, and what to do with one that cannot be read unambiguously.
tabular-qa
Profiling and quality-checking a delimited data file — row and value counts, duplicate and blank detection, outlier rules, and normalising inconsistent categorical values before counting them.
release-notes
Turning a commit range or changelog into release notes written for the people who will read them, grouped by what changed for the user rather than by commit.
timeline
Building the timeline section of an incident writeup from raw log files — every warning and error in time order, repeats collapsed, silences marked — by running the script this skill ships rather than reading the logs by eye.