前端审查
- 作者仓库星标 0
- 作者更新于 实时读取
- 作者仓库 skills-registry
- 领域
- 工程开发
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- Token 消耗评级
- 中等消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 允许外网请求
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: iterative-review
description: Plan → code → review → re-code feedback loop with persistent state across iterations. Spawns the…
category: 工程开发
runtime: 无特殊运行时
---
# iterative-review 输出预览
## PART A: 任务判断
- 适用问题:代码实现、重构、调试或代码审查。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“Usage / State Files / Process”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于代码实现、重构、调试或代码审查,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“Usage / State Files / Process”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、会按任务需要访问外部网络、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;会按任务需要访问外部网络;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文出现了 `/team`、`/iterative-review`、`/develop`、`/factory` 这类斜杠命令;如果你的 Agent 支持命令触发,优先用命令开场,再补充目标和边界。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“Usage / State Files / Process”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: iterative-review
description: Plan → code → review → re-code feedback loop with persistent state across iterations. Spawns the…
category: 工程开发
source: tomevault-io/skills-registry
---
# iterative-review
## 什么时候使用
- 用于审阅代码、文档或方案并给出可执行反馈 适合处理工程开发场景下的代码实现、调试、重构、测试或代码审查,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤;通常…
- 面向代码实现、重构、调试或代码审查,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Usage / State Files / Process」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;会按任务需要访问外部网络;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "iterative-review" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Usage / State Files / Process
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件、执行终端命令 | 会按任务需要访问外部网络
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Iterative Review — The Feedback Loop
A sustained plan/code/review/re-code cycle on the current branch. Each pass:
- Plans (or replans) the change
- Implements the plan
- Spawns
review-coordinatorto synthesize parallel reviewer findings - Persists findings to
.claude/state/review-state-<branch>.json(append-only) - On the next pass, the coordinator sees prior findings and tracks fixed/unfixed/won't-fix
This is the framework's primary inner loop for non-trivial work. Use /team review for one-shot reviews; use /iterative-review when you expect multiple iterations.
Usage
/iterative-review — start or continue the loop on the current branch
/iterative-review --plan-only — produce/refresh the plan; do not implement or review
/iterative-review --review-only — skip planning + coding; just spawn coordinator
/iterative-review --reset — discard state for this branch and start fresh
/iterative-review --override [reason] — break glass; force APPROVE without review (tracked)
Break-glass override. For hotfixes when a real review would block a critical merge, --override tells review-coordinator to skip Steps 2–6, write a single APPROVE iteration to state with "override": "break-glass", and exit. The override is tracked in review-state-<branch>.json for retrospective analysis. The next iteration without --override runs the full review normally.
Equivalent: a comment containing break glass in the user's prompt to the skill triggers the same path. Use sparingly; review-coordinator's verdict rubric already biases toward APPROVE for legitimate cases.
State Files
All state lives in .claude/state/ (gitignored). Per branch:
| File | Purpose | Lifecycle |
|---|---|---|
plan-<branch>.md |
The current implementation plan | Rewritten on --plan-only |
review-context-<branch>.md |
Shared context every sub-reviewer reads | Rewritten by coordinator each iteration |
review-state-<branch>.json |
Append-only findings history | Coordinator appends, never rewrites |
Branch names with / are sanitized to - for filenames (e.g., feature/auth → feature-auth).
Process
Phase 1: Plan
If .claude/state/plan-<branch>.md doesn't exist, or --plan-only was passed:
- Read the ticket / user intent from the conversation context
- Spawn the
architectagent with prompt: "Produce an implementation plan for the current task. Identify changed surfaces, risks, and the minimum coherent scope. Output in markdown with sections: Goal, Changes, Risks, Out-of-scope." - Write architect's output to
.claude/state/plan-<branch>.md - Show the plan to the user. If
--plan-only, exit here.
If the plan exists and --plan-only was not passed, read and reuse it. The plan stays stable across iterations unless the user explicitly refreshes.
Phase 2: Implement
Make the changes per the plan. This phase runs as the main agent (you), not a sub-agent — the user sees code as it lands.
Apply project rules from .claude/rules/ automatically. Run {{TEST_COMMAND}} and {{FORMAT_COMMAND}} as you go.
If --review-only, skip this phase.
Phase 3: Review (Coordinator)
Spawn the review-coordinator agent:
Spawn review-coordinator on the current branch. It will:
- classify the diff into trivial/lite/full
- select sub-reviewers
- spawn them in parallel
- read prior state from .claude/state/review-state-<branch>.json
- merge, dedup, filter their findings
- append to state and render the consolidated report
The coordinator handles all sub-agent orchestration — do not spawn individual reviewers from this skill.
Phase 4: Surface Verdict and Next Action
Read the coordinator's report. Show the user:
- Tier and agents used (so they know what was checked)
- Findings grouped by severity (collapsed for nits)
- Verdict (APPROVE / APPROVE_WITH_NOTES / REQUEST_CHANGES / NEEDS_DISCUSSION)
- Suggested next action:
REQUEST_CHANGES→ "Run/iterative-reviewagain after addressing critical findings"APPROVE_WITH_NOTES→ "Optional improvements remain; run/iterative-reviewagain or proceed to commit"APPROVE→ "Ready to commit"NEEDS_DISCUSSION→ list the disputed findings with developer pushback
Phase 5: Iterate
When the user runs /iterative-review again after making changes:
- Coordinator reads prior
review-state-<branch>.json - Findings that no longer reproduce → marked
fixed, shown in "Resolved" section - Findings still present → carried forward
- New issues introduced by the fixes → flagged as new
The state file is append-only, so iteration history is preserved (useful for PR retrospectives).
Caching-Friendly Prompt Shape
Sub-reviewers and the coordinator are given prompts that follow this order to maximize prompt cache hit rate:
- System rules (stable across all runs)
CLAUDE.md/AGENTS.mdexcerpts (stable across iterations on this repo)review-context-<branch>.md(stable across all sub-agents within one iteration)- Prior findings state (stable per iteration)
- Current diff or specific question (most volatile, last)
Volatile data (timestamps, current SHA, random IDs) is always at the end. Never embed Date.now() or similar in the static prefix.
Marking a Finding "Won't Fix"
When the user disagrees with a finding, two ways to record it:
Option A — In the state file (recommended, machine-readable):
Edit .claude/state/review-state-<branch>.json and add to the top-level user_decisions map:
"user_decisions": {
"src/auth.ts:42:auth-security:fail-open": {
"status": "wont_fix",
"reason": "Behind feature flag, not yet enabled in any environment"
}
}
Option B — Tell the assistant in conversation, and ask it to update the state file. The coordinator respects these on the next iteration and does not re-raise unless severity is critical.
Edge Cases
| Scenario | Behavior |
|---|---|
| No diff against base branch | "Nothing to review" — exit without spawning agents |
| Coordinator fails | Show the partial output; user can retry |
.claude/state/ is in gitignore but doesn't exist |
Create it; warn if .gitignore doesn't list .claude/state/ |
| User switches branches mid-loop | New branch gets its own state file; old state stays put |
Plan in plan-<branch>.md is stale (e.g., user pivoted) |
User runs --plan-only to regenerate |
| State file grows large (many iterations) | Coordinator only loads the most recent iteration's findings + user_decisions for matching; full history is preserved but not parsed every time |
Related
review-coordinatoragent — the synthesizer this skill orchestrates (templates/agents/review-coordinator.md)docs/finding-schema.md— finding schema every sub-reviewer emits/team review— one-shot multi-agent review without state/develop— the broader dev cycle (fetch ticket → implement → validate → PR); use/iterative-reviewwithin/developfor tight loops/factory— end-to-end pipeline; calls/iterative-reviewautomatically when more than one review pass is expected
Source: BostonOrange/claude-code-framework — distributed by TomeVault.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核