/forge:fg-adversarial-reviewfrom forge
Runs an adversarial review that assumes a result is wrong and hunts for evidence across six lenses: failure points, hidden assumptions, misread requirements, security/perf/data-loss, unexpected misuse, and weak decisions. Fix-needed findings become a fix-forward plan on approval.
Ships in forge. 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.
None: SKILL.md is the whole skill.
This is not a stage of the forge loop. It is an on-demand utility (like fg-map / fg-status) that sits between fg-run and the seal (fg-done): after a plan has run and its UAT has set verified:, you may optionally run an adversarial review before the retro. The loop shape (ask → run → done) is unchanged — this is a side utility, not a fifth stage (ADR-0007 rejected a formal stage here; ADR-0018 reintroduces it as an outside-the-loop option instead).
Its stance is deliberately hostile: the reviewer takes the position of the attacker, the contrarian, the user who triggers failure, and starts from "assume this result is wrong, and find the evidence." It is not a quality pat-down (that is ADR-0007's automatic code review inside the fg-run workflow); it is a deep, skeptical attempt to break the work.
Language: This skill file is authored in English, but you MUST write every message shown to the user — questions, menus, status/next-step lines, findings, and handoff text — in the user's language (detect it from the user's own messages), never mirroring this file's English. All documents this skill generates for the user's project (the review notes, any fix-forward plan, handoff messages) are written in the user's language.
Explaining forge: forge's vocabulary is not the user's — verified: failed, unsealed tail, a pillar or gate name means nothing unread. Always, never gated on eco: gloss a forge-specific term on first use in a message (a few words, not a paragraph), put the purpose before the mechanism, and lead with the answer, closing on what it means for the user. A gloss is not filler — with eco on, ECO.md's terse rules govern form (length, padding) while these govern vocabulary, so terseness never deletes a gloss.
Evidence and candor: every claim you make about code, state, or results — in a message or in a document you write (plan, run notes, retro, ADR) — carries its evidence in the same sentence (a file:line, a command and its output) or a label: Measured (you checked it this session), Inferred (reasoned from what you checked), Guess (a prediction or an unseen cause), rendered in the user's language. A label is not a license to skip a check — if a cheap check would settle it, run it; never hand the user a check you could run. Agreement is not the default: when asked whether to do something, invited to add scope, or shown an approach, give your real judgment first — the strongest objection, and "don't do it" when that is true. Change a recommendation only for a new fact or argument, never for repetition; the decision stays the user's — state the objection once, then follow their call without re-arguing or silently deviating. Output a deterministic script printed is already measured and needs no label.
Host contract: the six lenses fan out in parallel, so this skill needs the host's spawn_parallel capability. Read ../../core/HOST.md and ../../core/EXECUTION.md, then check ../../hosts/<host>/capabilities.json. When spawn_parallel is false or the host is unknown, run all six lenses serially — the lens set, the .forge/review.md record, the human-approval gate, and the non-gating rule are unchanged; only the delegation is.
Forge root: every .forge/... path below is relative to the resolved forge root — .forge/ on the default branch, .forge/branch/<branch>/ (git-tracked) on any other branch. Resolve it per ${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/skills/fg-run/FORGE-ROOT.md (skill-relative ../fg-run/FORGE-ROOT.md) before reading or writing state (ADR-0011).
Run it after fg-run has executed a plan — i.e. the active slot holds a run.md — when you want a hostile second look before sealing. It is purely optional — skipping it never blocks the seal (the seal gates are verified: and the retro, never reviewed:).
The review targets the active slot only. This keeps findings storage unambiguous: they always belong to the one task in the active slot. A task parked in executed/<slug>/ (Run-all work awaiting the seal) is not a review target, and fg-run cannot unpark a sealable parked task — its unpark path is deliberately limited to verified: failed recovery. Therefore run this review before choosing Run all / before the task parks. If it is already parked and sealable, seal it with fg-done; this skill does not invent a temporary unpark path. (Supporting per-task executed/<slug>/review.md storage was considered and rejected — it would add fg-done branching for a rare case; ADR-0018.)
If there is no run.md in the active slot, there is nothing to review — say so in one line and point to fg-run — do not invent a review target.
Read these as the review target:
.forge/plan.md — the intent, requirements, and design (the standard the work is judged against)..forge/run.md — plan-vs-actual divergences (where the executor already noticed friction).git diff (tracked) plus untracked files. forge does not force commits, so right after fg-run the work is usually uncommitted; this diff is the actual artifact to attack. (If the work was already committed, fall back to the most recent commit(s) for this task, or the plan's work scope.).forge/CONTEXT.md and the plan's referenced .forge/adr/* — the basis for judging "misread requirements" (a finding that the work contradicts a documented term or decision is far stronger than a vague worry).Each lens is an independent angle of attack. They are the dimensions of the fan-out below — one (or more) subagent per lens, each blind to the others so it surfaces what a single pass would miss:
The default posture for every lens: assume the artifact is wrong and produce the evidence. A lens that finds nothing real reports "no finding" — do not manufacture findings to fill a quota (restraint discipline, same as the retro promotion bar).
Collect the inputs above, then build a Dynamic Workflow that fans the six lenses out as parallel subagents. Adversarial review needs no human input mid-run (it is analysis, not grilling — so it does not violate pillar #1), which is exactly why a workflow fits: independent lenses in parallel are more thorough than one sequential pass (the Workflow tool's dimensions → find → adversarially-verify pattern).
Agent/Workflow) — no external hard dependency. If a review capability (e.g. a code-review skill, or specialized reviewer subagents) is available you may lean on it as optional reinforcement, but never hard-depend on one (ADR-0007 portability principle).{lens, title, severity (critical/major/minor), evidence, where (file:line), suggested fix, fix-needed (bool)}./workflows.When the workflow finishes, write the consolidated findings to .forge/review.md (volatile, in the active slot next to plan.md/run.md — written in the user's language). Carry the plan's <!-- forge-slug: <slug> --> on the first line so it pairs with the task. Structure: a one-line verdict (N findings, M fix-needed, by severity), then the findings grouped by lens with severity / evidence / where / suggested fix each. After §3's conversation, each fix-needed finding also carries one machine-readable line disposition: accepted | fix-forward | re-grill (the value stays English in any language) — accepted means the human kept it without a fix. fg-done's retro signal (c) is exactly a disposition: accepted line, so the judgment never parses prose; a finding with no disposition line is treated as undecided, not accepted. This file travels with the task: fg-done archives it into done/<date-slug>/ at seal, and fg-done reads it in its retro judgment (an accepted-but-unfixed finding is one of the signals that make a retro log mandatory).
Also record a reviewed: marker in the active-slot .forge/STATUS.md — for the record only, never a seal gate: reviewed: .forge/review.md (N findings, M→fix-forward) (or reviewed: skipped (<reason>) if the review was deliberately abandoned). Do not touch verified: or retro: — those remain the only gates.
Because the workflow can't take human input mid-run, the judgment happens here, conversationally. Present the findings and let the human decide each fix-needed one. Route by nature (reusing the existing fix loop — ADR-0009 routing, but driven from review findings):
.forge/backlog/<slug>-fix.md (or a descriptive slug) carrying <!-- generated-by: fg-adversarial-review --> and a fresh monotonic <!-- task: N --> (scan all task: markers across backlog/active/executed/done, max+1 — same rule as fg-ask / fg-loop fix-forward, ADR-0016). The original reviewed task still occupies the active slot, so seal the original task first (fg-done, which also decides its retro) and only then invoke fg-run for the fix-forward backlog plan. Calling fg-run first would hit the original task's duplicate-run guard instead of promoting the fix. The generated plan must follow PLAN-FORMAT.md's fix-forward eval rule — a persistent regression-check slice with a red → green DoD when the finding is mechanically checkable, or a one-line reason in the plan when it is not — and the <!-- eval: … --> marker that names the regression-check slice or the exemption reason (PLAN-FORMAT.md; checked by forge-plan-lint) (see ../fg-run/PLAN-FORMAT.md; ADR 260906-171420), and its fix-forward ADR rule (Related ADRs from the header triage; a fix that contradicts an accepted ADR is raised at the approval, never written silently)..forge/review.md and feed the retro fg-done writes at seal.Write each decision back into .forge/review.md as that finding's disposition: line (§2) before the handoff.
Plan generation is human-approved, never automatic — the workflow outputs findings; turning a finding into a backlog plan happens here, after the human confirms (forge's human-confirmation discipline). Do not auto-create fix-forward plans without sign-off.
The adversarial review is done; the loop resumes where it was. State (do not ask) the next step as the handoff table per ../fg-next/HANDOFF.md — the single definition of its shape; never restate that layout here. It closes §3's conversation: the routing above is the judgment, this table is where it lands.
Just did is the same whatever the verdict was: the one-line verdict (N findings, M fix-needed, by severity), that they are recorded in .forge/review.md, and that reviewed: was noted in STATUS — record-only, never a seal gate.
§3's routing decides the remaining rows — as a precedence rule, never a hard-coded next step (HANDOFF.md, "A conditional next step needs a precedence rule, never a hard-coded row"). Let the first matching case fill Next step / How to start, with its runner-up as Alternative:
Next step = fg-ask, to re-grill the plan; How to start = /forge:fg-ask; Alternative = sealing the original task first (fg-done), then re-grilling. This case wins even when code findings were raised too — the premise is settled before what was built on it. Retro-and-seal is never Next step here: that cell would hand the user a live trigger for sealing the very task whose plan this review just found wrong.Next step = the original task, still verified and unsealed — fg-done to seal it (its retro judgment takes the findings as fuel) and free the active slot for the fix-forward run; How to start = /forge:fg-done; omit Alternative. fg-run is deliberately not this cell: the original still holds the active slot, so calling it first hits that task's duplicate-run guard (§3) — the fix-forward's turn is stated below the table instead.Next step = fg-done to seal (it decides the retro); How to start = /forge:fg-done; omit Alternative.When a fix-forward plan was created, add one line below the table: it waits safely in the backlog and fg-run promotes it after the original seal. State that order explicitly — original seal first, fix-forward run second — and keep it out of Next step, which names the immediate step only (calling fg-run first hits the original task's duplicate-run guard, §3).
Do not chain into the next skill yourself (chaining is fg-next's job — ADR-0015); state the trigger and stop.
fg-adversarial-review
│
▼
active-slot run.md present?
│ no ──▶ "nothing to review" → point to fg-run (parked sealable tasks are unsupported here; review before parking) → stop
│ yes
▼
Gather inputs (plan · run.md · git diff+untracked · CONTEXT/ADR)
▼
Build Dynamic Workflow: 6 lenses fan out in parallel (+ optional adversarial-verify)
▼ (script approval → background run)
Consolidate findings → .forge/review.md (+ STATUS reviewed:, record-only)
▼
Handoff (conversational — workflow took no human input mid-run):
• code defect ──▶ (human approves) new fix-forward backlog plan (generated-by marker, monotonic task)
• design/req defect ──▶ point to fg-ask (re-grill — a wrong premise can't be patched)
• accepted/minor ──▶ stays in review.md → retro fuel
▼
Point back (first matching case): design/req defect ──▶ fg-ask (re-grill; seal-first is the Alternative)
otherwise ──▶ original task → fg-done (free slot) → then fix-forward → fg-run
(state triggers, don't chain)
fg-next all (ADR-0010) and fg-loop (ADR-0016) drive tasks unattended and never run this review — they skip it, since no human is there to judge the findings. The reason: an adversarial review's value is the human judging which findings are real and which deserve a fix, and an unattended drive cannot make that call. So the drives go straight run → verify → seal (fg-done deciding the retro unattended), and the review remains a thing a human invokes deliberately on a task they want to scrutinize.
The review is composed from the workflow's own Agent/Workflow subagents, so it has no external hard dependency — it works in any environment that runs forge. External review skills, if present, are optional reinforcement only (ADR-0007 principle). Never block the review on a specific external skill being installed.
.forge/review.md — consolidated adversarial findings (volatile, active slot; archived into done/<date-slug>/ by fg-done at seal, read by fg-done's retro judgment). Lazy creation.reviewed: in the active-slot .forge/STATUS.md — record-only, not a seal gate (the gates stay verified: and the retro)..forge/backlog/<slug>-fix.md (<!-- generated-by: fg-adversarial-review -->, monotonic task:) — picked up by fg-run..forge/plan.md or .forge/run.md (the review reads them; it does not rewrite the task's record).review.md, STATUS, backlog plan) are gitignored; on a non-default branch the branch root is tracked whole (ADR-0011).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
adversarial-review, red-teaming, code-review, security-review, forge
25 skills in this plugin
/fg-agendaA decision queue for foggy work — outside the forge loop. Settles the destination with you, grills breadth-first to surface what must be decided, and keeps it in .forge/agenda.md (destination · decided · open questions · fog · out of scope), resolving one question at a time via fg-ask until the way is clear, then deleting itself. The agent finds the decisions; you answer them. Use in contexts like 'forge agenda', '의제', '결정 대기열', '뭘 결정해야 하는지 정리해줘', '어디서 시작할지 모르겠다'./fg-agentsGenerates a project's domain agents — conversational grilling derives the recurring roles, then writes standard Claude Code subagent cards to .claude/agents/<role>.md (each `description` carrying a "when to use" so fg-run can dispatch a matching role as agentType). Cards load only at session start, so RESTART the session after generating them before fg-run can use them. On-demand utility outside the loop. Use in contexts like 'forge agents', '도메인 에이전트 만들어', '에이전트 팀 구성', 'create project agents', 'domain agents', 'agent roles'./fg-asknpx claudepluginhub gyuha/forge --plugin forgeOther plugins' skills for the same job