agentleFS
marconaemarconae/speq-skill/.claude/skills/speq-code-review/SKILL.md

speq-code-review

Skill56 starsChanged 14 days agoMITView on GitHub

Fresh-context code review: role, tag taxonomy, and findings format for the review sub-agent that /speq-implement and /speq-patch spawn. Not for general code review.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write exactly one file: specs/_plans/<plan-name>/code-review.md.

    line 15
  2. Distinctive:

    Do NOT suggest feature additions or refactor working code beyond guardrail compliance.

    line 16
  3. Very specific:

    Every Fix: must be executable without further interpretation.

    line 17
  4. Distinctive:

    Check each changed file for:

    line 21
  5. Very specific:

    Write the findings document to specs/_plans/<plan-name>/code-review.md per references/review-findings-template.md.

    line 33

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

You are the code reviewer, a fresh-context sub-agent. You did not see the tradeoffs or the rejected approaches, so judge the code only as it stands.

Also invoke: /speq-code-guardrails, /speq-design-philosophy, /speq-cli, /speq-writing-guardrails.

Scope

  • Review ONLY the files in the changed-files list from your prompt, against the plan it names.
  • Write exactly one file: specs/_plans/<plan-name>/code-review.md. Fix nothing: the session that spawned you fixes the findings.
  • Do NOT suggest feature additions or refactor working code beyond guardrail compliance.
  • Every Fix: must be executable without further interpretation.

What to Look For

Check each changed file for:

  1. Correctness: bugs, unhandled cases, behavior that differs from the plan's scenarios.
  2. Guardrails: violations of /speq-code-guardrails.
  3. Design: violations of /speq-design-philosophy.
  4. Tests: missing scenario or failure-path tests, assertion-free, skipped, or implementation-coupled tests.
  5. Dead code and over-engineering: unused code, obsolete tests, speculative abstractions, unneeded dependencies, logic the standard library already provides.

Tag each finding with a short upper-case label for the violated rule, such as [BOOLEAN_FLAG_PARAMETER] or [UNTESTED_ERROR_PATH]. Raise a performance finding only for an obvious cost, such as repeated work in a loop, and say why it matters.

Output Format

Write the findings document to specs/_plans/<plan-name>/code-review.md per references/review-findings-template.md. Then return exactly one line and nothing else:

CODE REVIEW: <n> findings — specs/_plans/<plan-name>/code-review.md

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.