/mstack:m-reviewfrom mstack
Performs multi-angle defect review on diffs/branches before merge. Finds correctness, security, and quality issues with reproducible commands. Returns APPROVE or REQUEST CHANGES verdict.
Ships in mstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Find what is actually wrong with a change, ranked by severity, with enough detail to act. The reviewer is a separate context from the author (principle 6). A finding counts only when a command reproduced it. m-review does not edit or merge. It ends with one verdict — APPROVE or REQUEST CHANGES — and under REQUEST CHANGES lists the blocking findings. The caller (m-goal, m-ship, or the user) gates on that verdict; REQUEST CHANGES is a rejected review.
Intent and standards are their own verdicts, not more defect bullets. Intent: does the diff meet the plan or spec? Standards: does it follow the repo's own rules? Do not cross-rank those axes.
Use it after the change exists, before merge, on "review this diff", or when a branch looks risky.
Do not use it (hand off instead):
m-think / m-plan.m-debug and m-ship act.m-verify.m-dispatch clusters exact diffs and sends the set to a verifier. That verifier follows the comparison rules below; do not start a second panel unless a full review was asked for.First line you say: Using m-review: find defects another context can reproduce.
No finding without a repro command and its output.
Closed loopholes: "looks risky", a finding about a line the diff did not add, a verdict formed after reading the author's rationale, and extra findings added because the list looks short. None of them is a finding. Breaking the letter of this rule is breaking its spirit.
git diff <base>...HEAD, or git diff plus git ls-files --others --exclude-standard. Untracked files are in scope. Name the base and the plan or spec. Read the whole diff before commenting.references/review-template.md before any reviewer starts. Report only lines the diff adds or replaces. An intentional break whose blast radius is explicit goes under Cleared. Pre-existing code outside the diff is out of scope. So are style, naming and formatting, unless the request asks for them.file:line | problem | failure scenario plus repro: <command> → <actual output>. Classify with node "<this skill dir>/scripts/split-findings.mjs" <report.md> --diff <diff>, run from the project root. <this skill dir> is the directory this SKILL.md was loaded from (Claude Code shows it as the skill base directory; in the mstack repo it is skills/m-review). If that script cannot be found, classify by hand and say so in the report. The script parses; it does not run the repro. It treats untracked files (git ls-files --others --exclude-standard) as in scope, so an empty git diff does not drop a finding in a new file. No repro → Unconfirmed, and it does not count. Confirmed but outside the diff and not untracked (script exit 1) → drop it..mstack/reviews/<date>-<slug>.md. End that file, and the user-facing summary, with the verdict in Output.references/guide-and-test-signal.md; neither blocks the verdict.User-facing summary in Chinese (§4): one-line conclusion → what you found (file:line) → how you checked (command + output) → what you did not assess.
Also include:
pass / issues / not-assessed / not-applicable. Intent quotes the criterion sentence. Standards names the file and the rule.file:line or a test when a finding is wrong.APPROVE when no confirmed in-scope finding remains and no axis is issues. REQUEST CHANGES otherwise; under it list each blocking finding as file:line and each axis marked issues. Unconfirmed and Cleared do not block. not-assessed and not-applicable do not block by themselves. The caller gates on this line.| You will be tempted to think… | Reality |
|---|---|
| "The diff is empty, so there is nothing to flag in the new file." | Untracked files are in scope; the classifier once dropped every finding in them (reviews/2026-11-06-round2.md #3). |
Red flags, check the repro before you write it down: the finding has no command output; it is about code outside the diff; your reviewer prompt names the author or says the answer; you are agreeing because the other writeup is longer.
Exactly three things end the review early, and each produces output instead of a question:
REVIEW BLOCKED: <what failed> and end.not-assessed, quote what is missing. Standards and defect review continue.disputed. Never promote a disputed finding to confirmed.Everything else is decided inside the review and logged in the report file as Ruling: decision | reason | cost if wrong. Cap the loop at 5 review rounds per change; after that, report the open findings and stop.
m-reviewer (Claude Code subagent_type: "mstack:m-reviewer", opus, no Write/Edit). Pick a judge from a family other than the author's.Agent. Prefer a type that denies Write and Edit. Locally installed reviewer definitions for code-reviewer and verifier set disallowedTools: Write, Edit (read from those files, not from a live tool call). Pass the type string the session actually lists. A stock install may reject the bare name — say so, and use a listed type with the same deny list (explore has it in that same set). Bash is not in the deny list, so the prompt must forbid shell writes. Set model to the tier (sonnet or opus); if the tool rejects the slug, report the error and use the closest slug it names. Use run_in_background when the tool offers it. gh for PR context.subagent / subagent_fork. No tool-deny flag is documented for those calls; forbid edits in the prompt and do not give the reviewer a writable worktree. For a high-risk refuter, use another model family (subagent_codex or subagent_claude_code) when one is available. If it is not, say so and continue with a different context (see references/decisions.md).codex exec "<task>" with the diff path inside the prompt. No further flags are documented here.What SKILL.md sets; muted values are Claude Code's defaults
A change or branch needs a correctness/security/quality audit before merge, or the user asks for code review.
Three short reads, in order
17 skills in this plugin
/m-cuaDrive a real desktop app, Android device or browser to prove L3/L4 acceptance. Use for 点一下/操作界面/真机验收/computer use./m-debugRoot-cause a bug or failing test: reproduce, competing hypotheses, regression test. Use for debug一下/为什么报错/这个测试挂了./m-deslop删掉 AI 味和冗余——多余注释、死代码、无谓抽象、套话堆砌,先保护行为再减。Use when the user says "deslop / 去AI味 / 删冗余 / 这段太啰嗦 / 精简一下", or a diff feels bloated./m-dispatchFan independent subtasks out to Claude subagents, DSH headless, Codex or Orca; isolate, merge, verify. Use for 分派/并行/开N个agents.npx claudepluginhub mola-maker/mstack --plugin mstackOther plugins' skills for the same job