review
Skill207 starsChanged 8 months agoApache-2.0View on GitHub
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.
- Reads credentials
193 other projects use a version of this.
Adopted by
Most recently taken up by
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- joi-fairshare/agentic-workflowtheir own version, first seen Oct 5, 2026
- kurofune/claudittheir own version, first seen Oct 5, 2026
- kopp0510/claude-ddtheir own version, first seen Oct 5, 2026
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- dzhng/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use cso, plan-devex-review and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ayudaySkillcso
Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".
Also in 11 projects that use this
seek888Skillplan-devex-review
Interactive developer experience plan review. Explores developer personas, benchmarks against competitors, designs magical moments, and traces friction points before scoring. Three modes: DX EXPANSION (competitive advantage), DX POLISH (bulletproof every touchpoint), DX TRIAGE (critical gaps only). Use when asked to "DX review", "developer experience audit", "devex review", or "API design review". Proactively suggest when the user has a plan for developer-facing products (APIs, CLIs, SDKs, libraries, platforms, docs). (gstack) Voice triggers (speech-to-text aliases): "dx review", "developer experience review", "devex review", "devex audit", "API design review", "onboarding review".
Also in 9 projects that use this
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 5 projects that use this
ayudaySkillsetup-deploy
Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".
Also in 11 projects that use this
Kit4SomeSkillunfreeze
Also in 12 projects that use this
AICreator-WindSkilldesign-consultation
设计合作伙伴工具。构建完整设计系统,提供专业设计建议。
Also in 12 projects that use this
- +1 more from seek888
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- garrytan/gstack★ 143ksame name
- anthropics/claude-for-legal★ 9.6ksame name
- vercel/eve★ 5.5ksame name
- microsoft/FluidFramework★ 4.9ksame name
- ccch1mneyyy/dsh-TUI★ 4ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- dzhng/jevgrep★ 2.3ksame name
- getsentry/sentry-react-native★ 1.8ksame name
- skyllwt/AutoSci★ 1.7ksame name
- nagisanzenin/engram★ 1.4ksame name
183 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. 0 are common, 10 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
If the user specifies a mode flag, use it.
- Very specific: line 49
Run source bin/lib/git-context.sh && detect_git_mode.
- Very specific: line 50
File source: use context_checkpoint.key_files from the plan artifact instead of git diff.
- Distinctive: line 53
Next steps: do NOT list slash commands.
- Distinctive: line 81
Check these rules during your structural pass.
- Very specific: line 85
Always run if a recent plan artifact exists.
- Distinctive: line 87
Run the scope drift script:
- Distinctive: line 105
Tests: Do the tests actually test the behavior change?
- Very specific: line 107
Read review/checklist.md for the detailed checklist.
- Very specific: line 137
After completing both passes, check for conflicts with prior /security findings.
- Distinctive: line 139
When a conflict is detected, mark it inline:
- Very specific: line 146
In
--standardmode: Document conflicts inline in output. - Very specific: line 147
In
--thoroughmode: Document conflicts AND flag as Blocking until user confirms resolution. - Very specific: line 188
Read profile, run_mode, autopilot, and plan_approval per reference/session-state-contract.md.
- Distinctive: line 192
After the review is complete and the artifact is saved, proceed:
- Distinctive: line 198
Otherwise: Read the next action from session state.
- Very specific: line 204
Use .user_message for the prose to show the user (it is profile-aware).
- Very specific: line 208
When profile == "guided", the user-facing output follows the four-block skeleton in reference/plain-language-contract.md (Result / How to …
- Distinctive: line 230
After the user-facing message above, print one summary line as the very last thing — useful for autopilot logs and quick scanning:
- Very specific: line 236
Use WARN instead of OK if there are any blocking findings.
- Distinctive: line 240
If you find zero issues, say so: Don't manufacture findings to look thorough.
- Distinctive: line 242
Don't review code you haven't read in context: If a function changed, read the callers.
“Common” is measured: kept by at least 6 in 10 of the 167 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/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.
_P="$HOME/.claude/skills/nanostack/bin/lib/skill-preamble.sh"
[ -f "$_P" ] && . "$_P" review
unset _PIntensity 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:
| Mode | Flag | When to use | Confidence gate |
| Quick | --quick | Trivial changes: typos, config, docs, < 50 lines in non-code files | 9/10 — only report the obvious |
| Standard | (default) | Normal changes: features, bug fixes, 50-500 lines | 7/10 — report anything reasonable |
| Thorough | --thorough | Critical changes: auth, payments, infra, 500+ lines, or touches security-sensitive paths | 3/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_filesfrom 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:
~/.claude/skills/nanostack/bin/resolve.sh review --diffThe 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:
~/.claude/skills/nanostack/bin/scope-drift.shThe 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
/securityfor 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).
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.
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
| Aspect | Quick | Standard | Thorough |
| Pass 1 (structural) | Correctness only | Full checklist | Full checklist + architecture |
| Pass 2 (adversarial) | Skip | Standard | Deep + threat model |
| Scope drift | Informational | Informational | BLOCKING on drift |
| Conflict detection | Auto-resolve | Document inline | BLOCKING until resolved |
| Output | Blocking issues only | All categories | All + 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:
~/.claude/skills/nanostack/bin/next-step.sh --jsonUse .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
camelCaseand the new code usescamelCase, don't suggestsnake_casebecause 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:
_F="$HOME/.claude/skills/nanostack/bin/lib/skill-finalize.sh"
[ -f "$_F" ] && . "$_F" review success
unset _FPass 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.
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.

