code-deep-review
Skill2 starsChanged 14 days agoMITView on GitHub
A deep review of a path or change: design, precedent, test strength, error paths, and security
In this repository81 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- add-languageSkill
- audit-a11ySkill
- audit-archSkill
- audit-ciSkill
- audit-debtSkill
- audit-doc-driftSkill
- audit-flagsSkill
- audit-infraSkill
- audit-perfSkill
- audit-readinessSkill
- audit-securitySkill
- audit-slopSkill
- audit-testsSkill
- audit-tokensSkill
- audit-verifySkill
- backup-patternsSkill
- bash-patternsSkill
- claude-code-mods-patternsSkill
- code-challengeSkill
- code-contractSkill
- code-evaluateSkill
- code-from-designSkill
- code-historySkill
- code-host-patternsSkill
- code-impactSkill
- code-migrateSkill
- code-tourSkill
- code-visualSkill
- depsSkill
- django-patternsSkill
- docker-patternsSkill
- drf-patternsSkill
- engineering-fundamentalsSkill
- fastapi-patternsSkill
- git-patternsSkill
- go-patternsSkill
- graphql-patternsSkill
- investigateSkill
- javascript-patternsSkill
- kit-rulesSkill
- logging-patternsSkill
- meta-conventionsSkill
- meta-promptSkill
- meta-refreshSkill
- meta-retroSkill
- meta-skillSkill
- monitoring-patternsSkill
- next-app-router-patternsSkill
- nuxt-patternsSkill
- opentofu-patternsSkill
- pr-descriptionSkill
- pr-publishSkill
- pr-queueSkill
- pr-replySkill
- pr-reviewSkill
- python-patternsSkill
- react-patternsSkill
- report-formatSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Read the project's CLAUDE.md.
- Distinctive: line 38
Run each pass over the target.
- Very specific: line 49
Every finding cites file:line and what was read there.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/code-deep-review
A deep review of a path or a change, run now and then, covering what the per-change /code-review skips: design, precedent, test strength, error paths, and security. With nothing and an empty diff, ask for a path before anything else.
Loading this skill isn't enough. Before the step a row names, read its file.
| Before | Read |
| Running the passes | reference/checklist.md |
Inputs
- Resolve the target, first match wins:
- A path: every tracked file under it.
- A PR number or branch is checked out where a trailing
hereorworktreesays, or where the user answers when asked, perskills/kit-rules/reference/workflow.mdsection 1. The target is its diff against the base. - Nothing:
kit git-base --diff.
- For a diff, the review covers the changed lines and the code they call or are called from, never the whole files.
- Read the project's CLAUDE.md. Load
engineering-fundamentals,test-patterns,security-patterns, and every pattern skill the<suggested-skills>block or the touched files call for.
Passes
Run each pass over the target. A pass with nothing to report is left out of the report.
| Pass | Check against |
| Design | engineering-fundamentals: design-integrity.md, and metric-thresholds.md for size, nesting, and coupling |
| Stack | each loaded pattern skill's anti-patterns.md |
| Tests | test-patterns. For each changed behavior, name the assertion that fails without it. None found is a finding |
| Precedent | how the repo already solves the same thing, per skills/kit-rules/reference/change.md section 2. A second way of doing a solved thing is a finding |
| Errors and observability | an error swallowed, logged and dropped, or rethrown without its cause; a failure with no log or metric to find it by; a log line missing the identifier needed to trace one request |
| Security | security-patterns: its anti-patterns.md and the reference for each surface the target touches |
Every finding cites file:line and what was read there. A finding inferred without reading the code it names is labelled per skills/kit-rules/reference/evidence.md section 1.
Report
Load the report-format skill and use its format, written to the path kit scratch-dir review <target-slug> prints. The Scope line names the target and, for a diff, its base. Each finding's heading names its pass after the severity (warning: Tests, ...).
Reply
The report path, the counts by severity, and the first failure, if any.
Out of scope
- Running the checks, which the per-change
/code-reviewgate does. - Fixing anything. Findings go back as instructions.
- Whether the change should exist at all, which
/code-challengeasks.
Arguments: $ARGUMENTS
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

