Agent skill

Review

by garagon in garagon/nanostack

Use after writing code to get a thorough code review. An agent skill from garagon/nanostack.

Apache-2.0Auto-check: notesDevelopment

Install Review

skills CLI
$ npx skills add garagon/nanostack --skill review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install garagon/nanostack review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/garagon/nanostack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/review .claude/skills/review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
review
GitHub stars
207
Token cost
~3.5k tokens
SKILL.md length
1,502 words
Files
4
Skills in repo
14
Repo updated
First seen
Licence
Apache-2.0

At a glance

Use after writing code to get a thorough code review. An agent skill from garagon/nanostack.

  • Works in 2 steps: Resolve Context → 5: Scope Drift Check
  • Tasks that involve Code review
  • SKILL.md covers Telemetry preamble, Intensity Mode, Setup and Local Mode, plus 14 more sections
  • Runs Shell scripts from its folder; calls jq

What it does

Review is an agent skill from garagon/nanostack. Use after writing code to get a thorough code review. Runs two passes — structural correctness then adversarial edge-case hunting. Scales depth by diff size. Supports --quick, --standard, --thorough modes. Triggers on /review.

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `agents/openai.yaml`, `bin/suggest-security.sh` and `checklist.md`).

It sits in Development, covering Code review. It works with Git. The repository describes itself as: A workflow harness that helps AI coding agents plan, review, test, and ship safer code. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Code review

Example prompts

  • “/review”

Requirements

  • A Bash shell

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Resolve Context
  2. 5: Scope Drift Check

What it can do on your machine

Read from SKILL.md and the folder at commit 0372aed. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Review loads about 3.5k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 1,502 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:41
    hes `auth`/`payment`/`security`/`infra`/`.env`/`Dockerfile` → suggest `--thorough`

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from garagon/nanostack at commit 0372aed, republished under its Apache-2.0 licence (© garagon). 1,502 words, ~3,479 tokens.

Download SKILL.mdSave it as .claude/skills/review/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
review
description
Use after writing code to get a thorough code review. Runs two passes — structural correctness then adversarial edge-case hunting. Scales depth by diff size. Supports --quick, --standard, --thorough modes. Triggers on /review.
concurrency
read
depends_on
build
summary
Two-pass code review. Structural correctness then adversarial edge-case hunting. Scope drift detection.
estimated_tokens
400

/review — Two-Pass Code Review

You are a skeptical senior engineer who has seen production go down because someone skipped the second look. Two passes, two mindsets. Do not blend them. Report findings and proposed repairs without editing product files, including mechanical fixes.

Telemetry preamble

Defensive telemetry init. No-op if telemetry is disabled via NANOSTACK_NO_TELEMETRY=1, ~/.nanostack/.telemetry-disabled, or if the helpers are removed.

bash
_P="$HOME/.claude/skills/nanostack/bin/lib/skill-preamble.sh"
[ -f "$_P" ] && . "$_P" review
unset _P

Intensity Mode

If the user specifies a mode flag, use it. Otherwise, check bin/init-config.sh for preferences.default_intensity. If no config, suggest a mode based on the diff:

ModeFlagWhen to useConfidence gate
Quick--quickTrivial changes: typos, config, docs, < 50 lines in non-code files9/10 — only report the obvious
Standard(default)Normal changes: features, bug fixes, 50-500 lines7/10 — report anything reasonable
Thorough--thoroughCritical changes: auth, payments, infra, 500+ lines, or touches security-sensitive paths3/10 — flag anything suspicious

Auto-suggest logic (recommend, don't enforce):

  • Diff < 50 lines AND only .md/.txt/.yml/.json → suggest --quick
  • Diff 50-500 lines OR code changes → --standard (default)
  • Diff > 500 lines OR touches auth/payment/security/infra/.env/Dockerfile → suggest --thorough

Setup

Calibrate depth by diff size: Small (< 100 lines, quick pass) / Medium (100-500, full two-pass) / Large (500+, full + architecture).

Local Mode

Run source bin/lib/git-context.sh && detect_git_mode. If local (no git):

  • File source: use context_checkpoint.key_files from the plan artifact instead of git diff. If no plan artifact, list files in the project directory.
  • Skip: scope drift check (no diff to compare), PR preview.
  • Language: replace jargon with plain terms. "Revise N archivos. Encontre X cosas:" instead of "Diff: N files, X findings." Explain what is wrong, why it matters, and the proposed repair. Do not claim a reported issue has already been fixed.
  • Next steps: do NOT list slash commands. Instead: "¿Querés que revise la seguridad antes de darlo por terminado?"
  • Everything else stays the same: two passes (structural + adversarial), severity levels, mechanical repairs versus decisions needing user input.

Step 0: Resolve Context

Load plan artifact, matched solutions, conflict precedents, and diarizations in one call:

bash
~/.claude/skills/nanostack/bin/resolve.sh review --diff

The output is JSON with upstream_artifacts (plan path), solutions (ranked by file overlap with current diff), conflict_precedents (path to precedents doc), diarizations (matching module briefs), and config.

From the plan artifact (if present), read these fields:

  • planned_files[] → used by scope drift check (below)
  • risks[] → create a risk checklist. For each risk, actively probe the code for that specific failure mode during your adversarial pass. These risks were identified during planning and should be verified.
  • out_of_scope[] → verify none of these were implemented. If the code touches something explicitly marked out of scope, flag it as scope creep.

From solutions: read the summaries first, then load only those relevant to the current review. If past solutions exist, check whether the current code follows the documented resolutions. If it contradicts a past solution, flag it.

From diarizations: if a module brief exists for files in the diff, read it for recurring issues and unresolved tensions. Focus your adversarial pass on what the diarization flags.

Graduated Rules

<!-- Auto-maintained by bin/graduate.sh. Do not edit manually. -->
<!-- Each rule was promoted from a solution with 3+ applications and validation. -->
<!-- END GRADUATED RULES -->

Check these rules during your structural pass. Each one represents a proven pattern from past sprints.

Step 0.5: Scope Drift Check

Always run if a recent plan artifact exists. In --quick mode, drift is informational. In --standard, drift is informational. In --thorough, drift is BLOCKING.

Run the scope drift script:

bash
~/.claude/skills/nanostack/bin/scope-drift.sh

The script returns JSON with status (clean / drift_detected / requirements_missing), out_of_scope_files, and missing_files. Config/lock files are automatically exempt.

  • --thorough: drift is Blocking — ask user to confirm scope change before proceeding
  • --standard: drift is Informational — note it and continue

Pass 1: Structural Review

For each changed file, evaluate:

  • Correctness: Does the code do what it claims? Are there off-by-one errors, nil dereferences, race conditions, missing error handling at system boundaries?
  • Consistency: Does it follow the patterns already established in this codebase? Check naming, file organization, error handling style.
  • Completeness: Are there missing edge cases? What happens with empty input, nil, zero, max values?
  • Tests: Do the tests actually test the behavior change? Are they testing implementation details instead of behavior?

Read review/checklist.md for the detailed checklist. Use it as a reference, not a script — skip items that don't apply.

Pass 2: Adversarial Review

Now forget everything you just read. Approach the code as if you are trying to break it.

  • What input would crash this? Think about malicious input, not just malformed input.
  • What happens under load? Concurrent access, large payloads, slow dependencies.
  • What happens when dependencies fail? Network errors, timeouts, partial responses.
  • What state can this leave behind if it fails halfway? Partial writes, leaked resources, inconsistent caches.
  • What will confuse the next developer? Implicit assumptions, magic numbers, non-obvious control flow.
  • Security surface: SQL injection, command injection, path traversal, XSS, SSRF, secrets in code. See /security for a full audit.

Output Format

Classify each proposed repair as MECHANICAL or ASK:

MECHANICAL (high confidence, no design decision needed): dead code, missing error return, off-by-one, stale imports, typos in strings. Describe the repair for the build step; do not apply it during review.

ASK (needs judgment, design decision, or user context): race conditions, API contract changes, removing functionality, security tradeoffs. Show the problem, recommend a fix, wait for approval.

Open with a summary line:

Review: 5 findings (2 mechanical repairs, 2 decisions, 1 nit). 3 things done well.

Then group by severity: Blocking (must fix), Should Fix (tech debt, confusion), Nitpicks (prefix "nit:"), What's Good (always include, be specific about what the code does right).

Show full SKILL.md (630 more words)Show less

Conflict Detection

After completing both passes, check for conflicts with prior /security findings. The resolver output from Step 0 includes conflict_precedents (path to the precedents doc). If a security artifact exists from a prior sprint (check .nanostack/security/), cross-reference your findings against it.

When a conflict is detected, mark it inline:

- **Error messages are too vague**
  ⚠️ CONFLICT with SEC-003 → RESOLUTION: structured errors (code + generic msg to user, details to logs)

In --quick mode: Apply default precedence (security > review) without documenting. In --standard mode: Document conflicts inline in output. In --thorough mode: Document conflicts AND flag as Blocking until user confirms resolution.

After completing both passes and conflict detection, save the artifact. Run this command now — do not skip it. The save is validated against the per-phase schema (see reference/artifact-schema.md); a review artifact requires summary (object), scope_drift (object with at least status), findings (array), and context_checkpoint. bin/sprint-journal.sh reads .scope_drift.status, so the object shape is not optional.

bash
REVIEW_JSON=$(jq -n \
  --arg     mode        "$REVIEW_MODE" \
  --argjson summary     '{"blocking":0,"should_fix":0,"nitpicks":0,"positive":0}' \
  --argjson scope_drift '{"status":"clean","planned_files":[],"actual_files":[],"out_of_scope_files":[],"missing_files":[]}' \
  --argjson findings    '[]' \
  --argjson conflicts   '[]' \
  --arg     checkpoint_summary "Review found N issues, scope drift status, conflict count." \
  '{
     phase: "review",
     mode: $mode,
     summary: $summary,
     scope_drift: $scope_drift,
     findings: $findings,
     conflicts: $conflicts,
     context_checkpoint: {
       summary: $checkpoint_summary,
       key_files: [],
       decisions_made: [],
       open_questions: []
     }
   }')
~/.claude/skills/nanostack/bin/save-artifact.sh review "$REVIEW_JSON"

Mode Summary

AspectQuickStandardThorough
Pass 1 (structural)Correctness onlyFull checklistFull checklist + architecture
Pass 2 (adversarial)SkipStandardDeep + threat model
Scope driftInformationalInformationalBLOCKING on drift
Conflict detectionAuto-resolveDocument inlineBLOCKING until resolved
OutputBlocking issues onlyAll categoriesAll + rationale per finding

Session state

Read profile, run_mode, autopilot, and plan_approval per reference/session-state-contract.md. When run_mode == report_only, do not apply any fix or write any file as part of review; only report what would change.

Next Step

After the review is complete and the artifact is saved, proceed:

If autopilot == true (or plan_approval == "auto"): Return the artifact and findings to the caller. Do not invoke another specialist. /feature owns continuation and waits for the whole verification batch.

If blocking issues are found: Report them without repairing product files. The caller handles repairs in the build step after all verification readers have stopped.

Otherwise: Read the next action from session state. Do not encode the wording here:

bash
~/.claude/skills/nanostack/bin/next-step.sh --json

Use .user_message for the prose to show the user (it is profile-aware). Use .next_phase to know which phase comes next.

The legacy positional form (next-step.sh review) still works and emits a space-separated list of pending phases for the autopilot logging line below; prefer --json for everything else.

When profile == "guided", the user-facing output follows the four-block skeleton in reference/plain-language-contract.md (Result / How to try / What was checked / What remains). Whether it is safe to try goes inside Result; do not add a separate block. Use plain words (no "review", "findings", "blocking"). Example:

<!-- guided-output:start -->
Resultado: El trabajo esta solido y se entiende bien.

Como verlo:
1. Corre el comando que te indique mas arriba y segui las instrucciones.

Que revise:
- La logica principal hace lo que tiene que hacer.
- Los casos comunes quedan cubiertos, sin cabos sueltos.
- El codigo es claro para la proxima persona que lo toque.

Pendiente:
- Anote un par de detalles menores para mas adelante.
- No mire casos muy poco frecuentes.
<!-- guided-output:end -->

Final Headline

After the user-facing message above, print one summary line as the very last thing — useful for autopilot logs and quick scanning:

[review] OK: <N findings, M blocking>. Next: <first pending skill or "/ship">.

Use WARN instead of OK if there are any blocking findings.

Gotchas

  • If you find zero issues, say so. Don't manufacture findings to look thorough. "This looks correct and well-structured" is a valid review.
  • Don't inflate severity. A missing comment is not "Should Fix." A style preference is not "Blocking." Calibrate honestly.
  • Don't review code you haven't read in context. If a function changed, read the callers. If a type changed, check all usages.
  • Don't flag style issues that aren't established in the codebase. If the codebase uses camelCase and the new code uses camelCase, don't suggest snake_case because you prefer it.
  • Don't suggest refactors that aren't related to the change. "While you're here, you should also..." is scope creep. File a separate issue.
  • Scale adversarial effort by diff size. A 10-line utility function doesn't need a threat model. A new API endpoint does.
  • Scope drift is informational, not punitive. Drift happens for good reasons. The point is visibility, not blocking.

Telemetry finalize

Before returning control:

bash
_F="$HOME/.claude/skills/nanostack/bin/lib/skill-finalize.sh"
[ -f "$_F" ] && . "$_F" review success
unset _F

Pass abort or error instead of success if the review did not complete normally.

Hook: Security Suggestion

The review/bin/suggest-security.sh hook runs after Bash tool uses during review. If changed files touch security-sensitive paths (auth, payment, env, infra), it outputs SECURITY_SENSITIVE with the matching files. When this happens, suggest running /security before /ship.

© garagon, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files in review of garagon/nanostack.

  • SKILL.md
  • agents/openai.yaml
  • bin/suggest-security.sh
  • checklist.md

Open the folder on GitHubat commit 0372aed

Compare with similar skills

Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Review this skillgaragon/nanostack207—~3.5kAutomated safety check: NotesApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT
Open Code Review CLIalibaba/open-code-review46k—~3.1kAutomated safety check: PassApache-2.0
Understand Diff AnalysisEgonex-AI/Understand-Anything86k—~1.4kAutomated safety check: PassMIT
Open Code Review Delegatealibaba/open-code-review46k—~2.3kAutomated safety check: PassApache-2.0
Code Reviewflutter/flutter179k—~1.4kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Open Code Review CLI

    alibaba/open-code-review

    Runs the ocr command-line tool to review Git changes, a commit or a branch comparison with an AI model, returning line-level comments and optionally applying fixes.

    46k GitHub stars~3.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    86k GitHub stars~1.4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Open Code Review Delegate

    alibaba/open-code-review

    Has the host agent do the code review itself while the ocr CLI handles file selection and rule lookup, covering workspace changes, branch ranges or single commits.

    46k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Review

    flutter/flutter

    Performs a comprehensive, multi-step code review of pull requests or local code changes, using iterative refinement (generation, critique, synthesis) to ensure high-quality, actionable feedback.

    179k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    Fetches a pull request's canonical review state as JSON, validates it, and renders markdown, a text summary and triage target files from it using bundled scripts.

    48k GitHub stars~767 tokensUpdated today
    DevelopmentAuto-check passed

More from garagon/nanostack

All 14 skills in this repo
  • Nano

    garagon/nanostack

    A skill your agent uses when starting non-trivial work (touching 3+ files, new features, refactors, bug investigations).

    207 GitHub stars~3.3k tokensUpdated 29 days ago
    Auto-check passed
  • Nano Run

    garagon/nanostack

    First-time setup and guided sprint. An agent skill from garagon/nanostack.

    207 GitHub stars~3k tokensUpdated 29 days ago
    Auto-check passed
  • Security

    garagon/nanostack

    Use before shipping to production. An agent skill from garagon/nanostack.

    207 GitHub stars~3.7k tokensUpdated 29 days ago
    Auto-check: notes
  • Ship

    garagon/nanostack

    A skill your agent uses when code is ready to ship — creates PRs, merges, deploys, and verifies.

    207 GitHub stars~4.2k tokensUpdated 29 days ago
    Auto-check passed
  • Compound

    garagon/nanostack

    Document what you learned during this sprint. An agent skill from garagon/nanostack.

    207 GitHub stars~2.2k tokensUpdated 29 days ago
    Auto-check passed
  • Conductor

    garagon/nanostack

    Orchestrate parallel agent sessions through a sprint. An agent skill from garagon/nanostack.

    207 GitHub stars~2.6k tokensUpdated 29 days ago
    Auto-check passed

Works with

Categories

Questions about Review

What does Review do?

Use after writing code to get a thorough code review. An agent skill from garagon/nanostack. Review is an agent skill from garagon/nanostack. Use after writing code to get a thorough code review.

When should I use Review?

Review fits situations like: tasks that involve Code review.

How do I install Review in Claude Code?

Run `npx skills add garagon/nanostack --skill review -a claude-code`. Or copy the skill folder (review in garagon/nanostack) into .claude/skills/review in your project. Claude Code loads it when a task matches its description.

How do I install Review in Codex?

Run `npx skills add garagon/nanostack --skill review -a codex`. Or copy the skill folder (review in garagon/nanostack) into .agents/skills/review in your project. Codex loads it when a task matches its description.

Can I use Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add garagon/nanostack --skill review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/review, .gemini/skills/review, .github/skills/review and .opencode/skills/review in your project.

What does Review need to run?

Going by SKILL.md and its folder, Review needs a shell for the scripts in its folder and the command-line tools its instructions call (jq). Our summary lists: A Bash shell.

Does Review access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Review safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Review use?

Review is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Review use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Review?

Skills that share tags, products or a category with Review: Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Open Code Review CLI (alibaba/open-code-review, 46k stars), Understand Diff Analysis (Egonex-AI/Understand-Anything, 86k stars) and Open Code Review Delegate (alibaba/open-code-review, 46k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Review?

garagon (a GitHub user) maintains it in garagon/nanostack, which has 207 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on September 10, 2026.

Source: garagon/nanostack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.