cap-review

cap-review is a skill for Claude Code from RainFlashPoint/capital-agent-skills. It costs 371 tokens per session (8,555 once invoked), scanned A, original, MIT.

A structured code-review process with multiple specialist perspectives, scope checks, and security checks. It records findings and evidence separately from any code fixes.

In plain words
What is it for?
Use it to review changed code, assign relevant review roles, classify and resolve findings, run security gates, and record the final review state.
Why use it?
It helps catch incomplete work, changes outside the agreed scope, security issues, and unverified fixes before release.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is 入口先执行 `../cap/SKILL.md` 的“研发上下文门禁”:`.cap` 检查不可跳过,知识库注入失败可记录后离线继续。.

Part of the capital-agent-skills plugin — 10 skills shipped together

Good fit Use it to review changed code, assign relevant review roles, classify and resolve findings, run security gates, and record the final review state.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/RainFlashPoint/capital-agent-skills
agentmods
npx agentmods add skills/rainflashpoint/capital-agent-skills/cap-review

Made for: Claude Code.

Or install capital-agent-skills, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cap-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/rainflashpoint/capital-agent-skills/cap-review/github.svg)](https://agentmods.dev/skills/rainflashpoint/capital-agent-skills/cap-review)
Your own site
<a href="https://agentmods.dev/skills/rainflashpoint/capital-agent-skills/cap-review"><img src="https://agentmods.dev/badge/skills/rainflashpoint/capital-agent-skills/cap-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cap-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/rainflashpoint/capital-agent-skills/cap-review"><img src="https://agentmods.dev/badge/skills/rainflashpoint/capital-agent-skills/cap-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 371 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,555 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00371 $0.08555
Opus 5 $0.00186 $0.04278
Sonnet 5 $0.00074 $0.01711
Haiku 4.5 $0.00037 $0.00856

Measured 4d ago against content hash 44124492e755, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

cap-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cap-review/SKILL.md · 460 lines

How it starts

The opening of the file, as written. The whole thing — 460 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cap-review — 多角色评审 + 验证收尾

入口先执行 ../cap/SKILL.md 的“研发上下文门禁”:.cap 检查不可跳过,知识库注入失败可记录后离线继续。

全程契约:开始实质工作前读取并执行 ../cap-flow/references/progress-protocol.md../cap-flow/references/task-reconnaissance.md。先播报当前动作和下一步;新任务没有新鲜 .cap/task-context.md 时,先调查当前仓库代码,不能只依赖 PROFILE。

同时读取 ../cap-flow/references/harness-action-protocol.md。Review Run 默认只读源码:只产 Findings 和 Review Evidence;任何修复都必须进入独立 Patch Action,新 Commit 再走新的 Test/Review,禁止“边审边改再给自己 PASS”。 高风险改动还必须读取并执行 ../cap-flow/references/independent-review.md 的 fresh-context 独立复核门。

你正在执行研发主线的评审阶段。目标:在改动落地前,从改动代码自动选出的多个专业角色视角审一遍, 做完整性 / 范围审计与安全门控,把每条问题分类处置,产出可审计的 findings,并把门控结论写回 STATE.md

引擎 = 一个能 Read/Edit/Bash/Grep 的模型。 所有知识在纯文件里(cap-flow/references/roles/*.md、本文)。 不依赖子代理人格 / 特定目录约定 / 富交互控件。 可移植铁律:交互用纯文本编号列表,并行能并行就并行、不能就串行(见 §0)。


0. 可移植前置(每次入口先做)

共享 references 的位置:本文引用的 role-routing.mdroles/<role>.mdreceiving-feedback.md 物理上 都在编排器目录 cap-flow/references/ 下,不在本阶段目录里。解析路径一律指向 cap-flow/references/... (相对 skills 根)或经软链接定位,别当相对本目录去 Read。

0.1 交互降级 —— 纯文本编号选项

凡需向用户提问(确认 scope-drift 处置、批准 fix、确认接受风险),优先用纯文本编号列表:

我需要你选一个:
  1) 选项 A —— 说明
  2) 选项 B —— 说明
回复编号即可。

宿主有结构化提问控件可用,但回退路径必须是上面这种编号文本。默认按编号文本写。

0.2 并行降级 —— 能并行就并行,不能就串行

多角色评审天然可并行。探测有无并行能力:

  • 有并行能力 → fan-out:每个角色一个独立分支,各自只写 review/<role>.md,最后由主流程合并。
  • 无并行能力(纯 Codex 等)→ 串行 inline:逐个角色加载该角色卡当透镜,顺序产 findings,逐个写 review/<role>.md

单写者原则:STATE.md 永远只由主流程写;并行角色只写各自的 review/<role>.md,绝不并发写 STATE。

0.3 非交互 / headless 变体

当本阶段被子代理、workflow、CI 或 headless 调起(无人应答):

  • 不发任何编号提问。所有需要用户裁决的点,改为:按"安全默认"处置 + 把待决项写进 finding 的 disposition: needs-human
  • 安全默认 = Review 不修改被审源码,机械问题也生成 Patch Action;不替用户接受安全风险(open 安全项 → 阻断, 不放行)。
  • 全部 findings 落 review/<role>.md,门控结论落 STATE,正文最后输出机器可读的 ## REVIEW SUMMARY(§7)。

1. 入口条件(进入本阶段的前提)

进入 cap-review 前应满足(由 cap-flow 或上一阶段保证;若不满足,先回对应阶段):

  1. 有改动可审:git diff 相对 base 非空。若为空 → 输出 Nothing to review — 工作区与 base 无差异 并停。
  2. build 已 green:STATE.gatestests written (red)implement (green) 已勾(或当前确实有实现 diff)。
  3. verify 已跑(推荐但不强制):STATE.verify-checks 已解析,.cap/verify/ 下有对应报告。
    • 若 verify 未跑且改动触及用户可见面 / AI 策略 → 提示"建议先跑 cap-test",但不阻断 review(review 可独立跑)。
  4. 能定位状态:<target-repo>/.cap/STATE.md 可读(没有则按 stage=review 新建一份骨架,见 §5)。

Read the full file on GitHub · 460 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +19 lines · +26 tokens per session 44124492e755
  2. 5d ago Changed · +2 lines 8b94f1a14fb8
  3. 9d ago First seen · 439 lines · 345 tokens per session scan A 0b91c2a067cb

Subscribe to this mod's changes

cap-review is a skill published in the GitHub repository RainFlashPoint/capital-agent-skills (2 stars, last pushed 5d ago), licensed MIT. It adds 371 tokens to every session and 8,555 once invoked, about $0.0019 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.