Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

review审查

Agent Skill

review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

303

周安装

13

GitHub Stars

182

下载量

106
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:review(审查)
来源仓库:https://github.com/garagon/nanostack
仓库路径:skills/review
安装命令:
npx skills add https://github.com/garagon/nanostack --skill review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/garagon/nanostack --skill review

简介

review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配或来源线索梳理等研究检索场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

/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. You own the findings: if something is mechanical, fix it yourself. If it needs judgment, ask.

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

Step 0: Read Plan Context and Past Solutions

Find the plan artifact and extract context for the review:

~/.claude/skills/nanostack/bin/find-artifact.sh plan 2

Search for past solutions related to the files being changed:

~/.claude/skills/nanostack/bin/find-solution.sh --file <changed-file-path>
~/.claude/skills/nanostack/bin/find-solution.sh "<relevant-keywords>"

The output shows ranked summaries. Read the summaries first, then load only the solutions 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.

If found, 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.

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.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 every finding as AUTO-FIX or ASK:

AUTO-FIX (mechanical, high confidence, no judgment needed): dead code, missing error return, off-by-one, stale imports, typos in strings. Fix it, report what you did.

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 auto-fixed, 2 ask, 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:

~/.claude/skills/nanostack/bin/find-artifact.sh security 30

If an artifact is found, cross-reference your findings against it. Read reference/conflict-precedents.md for known conflict patterns and resolutions.

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:

~/.claude/skills/nanostack/bin/save-artifact.sh review '<json with phase, mode, summary, scope_drift, findings, conflicts, context_checkpoint including summary, key_files, decisions_made, open_questions>'

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

Next Step

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

If AUTOPILOT is active and no blocking issues found: Proceed directly to the next pending skill (/security or /qa). Show: Autopilot: review complete (X findings, 0 blocking). Running /security...

If AUTOPILOT is active but blocking issues found: Stop and ask the user to resolve. Show the blocking issues and wait. After resolution, continue autopilot.

Otherwise: Tell the user:

Review complete. Remaining steps: - /security to audit for vulnerabilities (if not done yet) - /qa to test that everything works (if not done yet) - /ship to create the PR (after review, security and qa pass)

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.

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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.08%
按下载量换算39

Claude

31.97%
按下载量换算34

Cursor

18.09%
按下载量换算19

Gemini CLI

8.94%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills