agentleFS
ku5icku5ic/claude-kit/skills/code-deep-review/SKILL.md

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

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
  1. Very specific:

    Read the project's CLAUDE.md.

    line 34
  2. Distinctive:

    Run each pass over the target.

    line 38
  3. Very specific:

    Every finding cites file:line and what was read there.

    line 49

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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.

BeforeRead
Running the passesreference/checklist.md

Inputs

  1. Resolve the target, first match wins:
    • A path: every tracked file under it.
    • A PR number or branch is checked out where a trailing here or worktree says, or where the user answers when asked, per skills/kit-rules/reference/workflow.md section 1. The target is its diff against the base.
    • Nothing: kit git-base --diff.
  2. For a diff, the review covers the changed lines and the code they call or are called from, never the whole files.
  3. 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.

PassCheck against
Designengineering-fundamentals: design-integrity.md, and metric-thresholds.md for size, nesting, and coupling
Stackeach loaded pattern skill's anti-patterns.md
Teststest-patterns. For each changed behavior, name the assertion that fails without it. None found is a finding
Precedenthow 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 observabilityan 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
Securitysecurity-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-review gate does.
  • Fixing anything. Findings go back as instructions.
  • Whether the change should exist at all, which /code-challenge asks.

Arguments: $ARGUMENTS

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.