review

A command for reviewing the current local Git changes with reasoning and code snippets, then recording accepted findings in a rules library. Git changes are edits made in the project that have not yet been finalized or shared.

In plain words
What is it for?
Use it to inspect a local diff, run the project’s review checks, record confirmed or deferred findings, and update the review history. It also checks specific Vue risks such as unsafe HTML rendering and missing loop keys.
Why use it?
It provides a documented review process for finding problems and deciding what to do with them. It can cross-check findings and keeps unconfirmed issues out of the project rules.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/wei63w/pm-manager/review
Clone the repo
git clone --depth 1 https://github.com/wei63w/pm-manager
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 704 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00019 $0.00704
Opus 5 $0.00010 $0.00352
Sonnet 5 $0.00004 $0.00141
Haiku 4.5 $0.00002 $0.00070

Measured 3d ago against content hash 0316ffd6c7e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 3d 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.

Origin

This is a copy

100% identical to pm-review — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/pm-manager/templates/commands/review.md · 54 lines

What it actually says

User Input

$ARGUMENTS

Accepted extra words: confirm REV-xxx | false_positive REV-xxx | later REV-xxx | annotate REV-xxx | --cross | --path=... | --verbose.

Outline

/pm-review 是可见的质量闭环。用户以中文交互时用中文回复。未确认不改业务代码。

A. New review (no disposition words)

  1. Require .pm/。缺则建议 /pm-init
  2. 先跑 pm gate --path <root>pm review --path <root>。读 .pm/state/review-draft.mdguard.md。无 diff 则说 没有可评的变更 并停止,不许编造通过。
  3. 地图优先。加载 .pm/engineering/rules.md 启用规则。对照旧/新行为。碰到 risk_files 必须打断并单独成行。
  4. 只润色或补合格行(summary + reasoning + snippet + severity + file/line)。缺推理或片段禁止落盘。
  5. 建议再跑 pm review --cross,对照 .pm/state/cross-review.md 用另一套检查单(安全 vs 完成度/文档),禁止复制初评空话、禁止同一 snippet 再标 new。
  6. P0 打断。P1/P2 进报告。单测缺口只警告。
  7. 若当前仓库为 Vue:额外核对 v-html(XSS)与 v-for:key;结论仍须推理链 + 片段。
  8. 请用户回复 confirm REV-xxx / false_positive REV-xxx / later REV-xxx。回填用 pm review annotate REV-xxx(只写 .pm/reviews/annotations/)。

B. Disposition

  • confirmpm review confirm REV-xxx(或最新 unset)。仅合格行可进 rules.md
  • false_positive → 不进规范。
  • later → 待优化,留在表里。

C. After write

刷新总览待处置数。追加审计(含推理)。Closing:_closing.md 完整档。

Done When

  • 无 diff 时说了没有可评的变更
  • 每条落盘发现有推理 + 片段
  • 仅 confirmed 进入 rules.md
  • 回填未写入业务树
  • 业务代码未改,除非用户另确认修复

Shared Workflow

Map-first. Redact snippets. Confirm-before-write. Design baseline: docs/prd.md + 宪章。

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. 3d ago First seen · 54 lines · 19 tokens per session scan A 0316ffd6c7e8

Subscribe to this mod's changes

review is a command published in the GitHub repository wei63w/pm-manager (96 stars, last pushed 3d ago), licensed MIT. It adds 19 tokens to every session and 704 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to pm-review, differing in 0 lines, and is treated as a copy.