[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70FQ5WMW1KD7M408NCV6131":3,"skill-same:01M70FQ5WMW1KD7M408NCV6131":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":13,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M70FQ5WMW1KD7M408NCV6131","adversarial-fix-plan",null,"Automated adversarial fix-planning framework using Claude Code Agent Teams. Spawns 3 persistent teammates (Planner A, Planner B, Synthesizer C) to produce a vetted fix plan for a diagnosed bug through 4 rounds of isolated proposal, synthesis, critique, and reconciliation. A proposes a SURGICAL fix (minimum change to stop the diagnosed cause); B proposes a ROBUST fix (cause fixed + defenses against recurrence and adjacent fragility); C synthesizes; A and B critique C from their original contexts; C reconciles into a final fix-plan.md. Trusts the upstream diagnosis — does NOT re-investigate. Supports a revise mode for incorporating fix-review feedback. Trigger as the planning stage of a fix-pipeline, after adversarial-investigate has produced diagnosis.md.","SirTheOracle\u002Fforge-toolkit","SirTheOracle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F264051384?v=4","01M70FNRYMQR4XHVN77S3NJPAW","01M70FNRZAGW58XJ1CC6JRY1PA",0,"MIT","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"plan","adversarial","adversarial fix plan","fix","as","framework","stop","revise","bug","diagnosis","critique","change","review","code","mode","re","pipeline","agent teams","proposal","reconciliation","2026-11-10 10:12:30",false,"---\nname: adversarial-fix-plan\ndescription: >\n  Automated adversarial fix-planning framework using Claude Code Agent Teams.\n  Spawns 3 persistent teammates (Planner A, Planner B, Synthesizer C) to\n  produce a vetted fix plan for a diagnosed bug through 4 rounds of isolated\n  proposal, synthesis, critique, and reconciliation. A proposes a SURGICAL\n  fix (minimum change to stop the diagnosed cause); B proposes a ROBUST fix\n  (cause fixed + defenses against recurrence and adjacent fragility); C\n  synthesizes; A and B critique C from their original contexts; C reconciles\n  into a final fix-plan.md. Trusts the upstream diagnosis — does NOT\n  re-investigate. Supports a revise mode for incorporating fix-review feedback.\n  Trigger as the planning stage of a fix-pipeline, after adversarial-investigate\n  has produced diagnosis.md.\n---\n\n# Adversarial Fix Plan Framework\n\n## Overview\n\nThree persistent teammates produce a vetted patch plan for a diagnosed bug through 4 rounds. The critical design principle is **information isolation** — A and B each have their own context window and never see each other's work. Only Synthesizer C sees both. A and B critique C from their original contexts (in Round 3 they see only their own isolated review file).\n\nThis skill differs from `adversarial-investigate` in three important ways:\n\n1. **Inputs are narrow** — the upstream diagnosis is trusted as authoritative. The deliberation is about *how* to fix the known cause, not *what* the cause is.\n2. **Strategy pair is about scope** — Surgical vs. Robust. They argue about how broadly the fix should reach.\n3. **Two operating modes** — full mode (first invocation; runs all 4 rounds) and revise mode (second invocation; incorporates fix-review feedback into a v2 fix-plan).\n\nThe full tool-call sequence lives in `references\u002Fagent-teams-workflow.md`. **Read that file before orchestrating.** This document is the high-level guide.\n\n## When to Use\n\n- As the planning stage of a fix-pipeline, after `adversarial-investigate` has produced a CONVERGED or PARTIALLY CONVERGED diagnosis\n- As the revise stage when `fix-plan-reviewer` has produced fix-review.md and the orchestrator has determined the feedback warrants incorporation\n\n## When NOT to Use\n\n- **Diagnosis is INSUFFICIENT EVIDENCE.** Hard refusal — see Hard Rules. The fix-pipeline must escalate or gather data first.\n- **Trivial fixes.** One-line typo fixes don't need adversarial deliberation. Just fix them.\n- **The diagnosis appears wrong.** Hard Rule — this skill does NOT re-investigate. If A or B believes the diagnosis is wrong, they flag it as a BLOCKING_ITEM and the skill stops. The orchestrator decides whether to re-run investigate.\n- **Build-pipeline planning.** Use `adversarial-proposal` for forward-looking work.\n\n## Hard Rules\n\n1. **Trust the diagnosis.** This skill does not re-investigate, re-diagnose, or challenge the upstream root cause. If A or B encounters evidence that contradicts diagnosis.md during fix-planning, they note it as a BLOCKING_ITEM in their plan and stop. The skill does NOT silently re-do investigate's job.\n2. **Refuse INSUFFICIENT EVIDENCE diagnoses.** If `diagnosis.md` has `convergence_status: INSUFFICIENT EVIDENCE`, this skill stops in Phase 0 and reports. The orchestrator should not have invoked it; this is defense in depth.\n3. **PARTIALLY CONVERGED diagnoses force alternative-aware planning.** When the diagnosis is partial, the Robust planner MUST explicitly consider \"what if an alternative cause is actually right\" and propose defenses. The synthesis must explicitly note which alternatives the fix does or does not cover.\n4. **Always produce fix-plan.md, even when blocked.** A skill that stops mid-flight still writes fix-plan.md with the blocking reason and a non-zero BLOCKING_ITEMS count. Silent failure is forbidden.\n5. **Single output deliverable.** fix-plan.md is the only artifact downstream stages (fix-review, fix-coding) consume. Working artifacts (planA, planB, planC, reviews) are intermediate.\n6. **No code changes.** This skill produces a plan. It does not modify source code. fix-coding does that.\n\n## Prerequisites\n\nRequires Claude Code Agent Teams:\n\n```bash\n# In ~\u002F.claude\u002Fsettings.json\n{ \"env\": { \"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS\": \"1\" } }\n```\n\nTakes effect on new Claude Code sessions. If Teams is not available, fall back to `references\u002Fsubagent-fallback.md`.\n\n## Modes\n\n| Mode | Detection | Behavior |\n|---|---|---|\n| **Full** | `fix-review.md` does NOT exist in `--output-dir` | Run all 4 rounds. Produce fix-plan.md (v1). |\n| **Revise** | `fix-review.md` exists in `--output-dir` | Skip Rounds 1-3. Synthesizer C reads the existing fix-plan.md + fix-review.md and produces fix-plan.md (v2) plus revision-notes.md. |\n| **Interactive** | `--interactive` flag | Within full mode: pauses after Round 1 (user reviews fixA\u002FfixB) and after Round 2 (user reviews fixC). Compatible with full mode only. |\n\nThe skill auto-detects full vs. revise based on the presence of `fix-review.md`. The orchestrator does not pass a mode flag.\n\n**Expected runtime**: ~15–25 min for full mode (planning is narrower than investigation — A and B don't need to trace causality, they design fixes against a known cause). Convergence-path runs are shorter (~8–12 min). Revise mode is ~5–10 min (single agent, narrow scope: incorporate review points into existing plan).\n\n## Inputs\n\nRequired:\n\n- `--output-dir` — path to the fix directory. `diagnosis.md` lives here; `fix-plan.md` will be written here.\n- `--env prod | dev` — which environment the bug exists in. Affects fix-strategy considerations (deployment risk for prod, iteration speed for dev).\n\nOptional:\n\n- `--original-slug` — slug of the original build pipeline whose feature has the bug. Enables read-only context access to that pipeline's `final-plan.md`, `implementation.md`, and `coder-report.md`.\n- `--interactive` — pause at Round 1 and Round 2 checkpoints for user review. Full mode only.\n\n## Architecture\n\n```\nROUND 0  Setup: read inputs → check diagnosis convergence_status → detect mode\n                → strategy pair → team → tasks\nROUND 1  planner-a + planner-b plan in parallel (isolated)\n           A: SURGICAL — minimum change to stop the diagnosed cause\n           B: ROBUST — cause fixed + defenses against recurrence\n           ─► fixA.md, fixB.md\n         ▼  quality gate + convergence check + (interactive) checkpoint 1\nROUND 2  synthesizer-c reads both → produces 3 artifacts\n           ─► fixC.md, review-for-A.md, review-for-B.md\n         ▼  artifact gate + (interactive) checkpoint 2\nROUND 3  A and B resume from Round 1 context, each reads ONLY its own\n         review file → SendMessage feedback back to lead\nROUND 4  synthesizer-c resumes → reconciles both critiques\n           ─► reconciliation-notes.md + fix-plan.md\nROUND 5  shutdown all teammates, TeamDelete, present to user\n\nREVISE MODE (when fix-review.md is present on entry):\nROUND 0  Setup: read inputs (including existing fix-plan.md and fix-review.md)\nROUND R  synthesizer-c reads existing fix-plan.md and fix-review.md, produces\n           ─► revision-notes.md (accept\u002Fpartial\u002Freject per review point)\n           ─► fix-plan.md (v2 — overwrites v1)\nROUND 5  shutdown, TeamDelete, present to user\n```\n\n### Strategy pair\n\n| Planner | Strategy | Focus | Catches |\n|---|---|---|---|\n| **A** | Surgical | Minimum change to stop the diagnosed cause | Over-engineering, scope creep, accidental refactors, fix-induced regressions from unnecessary changes |\n| **B** | Robust | Cause fixed + defenses against recurrence and adjacent fragility | Insufficient defense, missed related bugs, \"cause-fixed-but-symptom-still-possible\" outcomes |\n\nThe synthesis (Round 2 and Round 4) lands somewhere on the spectrum between them, justified by the diagnosis's confidence level, the deployment environment, and the blast radius of the affected code.\n\n### Why isolation works\n\nSame as adversarial-investigate. Each teammate has its own context window. A and B share no conversation history. All communication goes through the lead. Round 3 isolation is maintained via per-planner review files.\n\n---\n\n## How to Execute\n\nYou (the lead) orchestrate everything. The exact tool-call sequence is in `references\u002Fagent-teams-workflow.md`. Below is the orchestration checklist.\n\n### Step 0 — Gather context, validate diagnosis, detect mode\n\n**0A. Empty-args short-circuit.** If invoked without `--output-dir`, without `--env`, or `diagnosis.md` does not exist at `{output_dir}\u002Fdiagnosis.md`, stop immediately:\n\n> \"This skill requires --output-dir, --env (one of `prod` | `dev`), and an existing diagnosis.md in that directory. Provide --output-dir and --env, and ensure adversarial-investigate has run.\"\n\n**0B. Read inputs from `{output_dir}`:**\n\n- `diagnosis.md` — required\n- `problem-statement.md` — required (context)\n- `repro.md` — if present (context)\n- `fix-review.md` — if present, switches to REVISE mode\n- `fix-plan.md` — if present (only relevant in revise mode; this is the v1 being revised)\n\n**0C. Check diagnosis convergence_status.**\n\nParse the convergence status from diagnosis.md by locating the `## Convergence Status` header and reading the value on the line(s) immediately below (per `references\u002Fdiagnosis-format.md` from the adversarial-investigate skill). Expected values: `CONVERGED`, `PARTIALLY CONVERGED`, `INSUFFICIENT EVIDENCE`.\n\n- **CONVERGED** → proceed normally\n- **PARTIALLY CONVERGED** → proceed, but the Robust planner role is required to consider alternative causes (see role file)\n- **INSUFFICIENT EVIDENCE** → STOP (handled below)\n- **Missing or unparseable** → treat as defense-in-depth equivalent to INSUFFICIENT EVIDENCE: STOP and report. A diagnosis without a parseable convergence status cannot be safely planned against.\n\nFor **INSUFFICIENT EVIDENCE** or missing\u002Funparseable status, write fix-plan.md with:\n\n```\n# Fix Plan — BLOCKED\n\n## Status\nBLOCKED — diagnosis convergence_status is {INSUFFICIENT EVIDENCE | missing\u002Funparseable}.\nFix planning cannot proceed without a committed (or partially committed) root cause.\n\n## Required Action\nRe-run adversarial-investigate with additional data per the required_data\nsection of diagnosis.md, or escalate to the user for manual diagnosis.\n\nCONFIDENCE: N\u002FA\nBLOCKING_ITEMS: 1\n```\n\nThen exit. Do not spawn teammates.\n\n**Downstream contract:** when a downstream stage (orchestrator, fix-coding) sees `Status: BLOCKED` with `BLOCKING_ITEMS: 1`, it must NOT advance to fix-coding. The expected actions are: re-run adversarial-investigate with the data named in diagnosis.md's `required_data` section, OR escalate to the user. Silent advancement past a BLOCKED fix-plan is a contract violation.\n\n**0D. Read original pipeline artifacts (if `--original-slug` provided):**\n\nRead-only context from `.dev\u002Fproposals\u002F{original-slug}\u002F`:\n- `final-plan.md` — what the feature was supposed to do\n- `implementation.md` — what was actually built\n- `coder-report.md` — what was committed\n\nUsed to understand the surrounding code and avoid breaking adjacent functionality. NOT used to second-guess the diagnosis.\n\n**0E. Detect mode.**\n\n- If `fix-review.md` exists → REVISE mode. Skip to Step 9.\n- Otherwise → FULL mode. Proceed to Step 1.\n\n**0F. Confirm `--env`.** `prod` or `dev`. Affects:\n- Risk assessment weight (prod fixes have higher blast radius)\n- Rollback plan rigor (prod requires explicit rollback steps; dev can be looser)\n- Deployment considerations (prod requires staged rollout consideration; dev does not)\n\n**0G. Exploration budget.** Before spawning A and B, the lead reads **at most 3–5 files** to orient. The planners re-read source independently — that's the point. Over-exploration in the lead burns context that A\u002FB will duplicate anyway.\n\n### Step 1 — Team setup\n\n```\nTeamCreate(team_name=\"fixp-\u003Cshort-slug>\", description=\u003Cshort>)\n# Create 5 tasks (A, B, C, critique, reconcile) with dependency chain\n```\n\nDetails in `references\u002Fagent-teams-workflow.md` §\"Round 0\".\n\n### Step 2 — Round 1: Spawn A and B in parallel (same turn)\n\nTwo `Agent(team_name=..., name=\"planner-a\", ...)` calls in a single message. Each prompt embeds:\n\n- `agents\u002Ffix-planner.md` (the role)\n- `references\u002Ffix-plan-format.md` (the working artifact format)\n- The assigned strategy (Surgical for A, Robust for B)\n- Full content of `diagnosis.md`, `problem-statement.md`, `repro.md` (if present)\n- Original pipeline artifacts (if `--original-slug`) marked clearly as CONTEXT\n- The env mode and what it implies for risk\u002Frollback rigor\n- Output path: `{output_dir}\u002FfixA.md` (or `fixB.md`)\n- Isolation rule (see below)\n- Anti-second-guessing requirement: do NOT re-investigate. If diagnosis seems wrong, flag as BLOCKING_ITEM and stop.\n- For PARTIALLY CONVERGED diagnoses (B only): explicit instruction to consider alternative causes from diagnosis.md and propose defenses\n\nThen the lead idles.\n\n### Step 3 — Gates after Round 1\n\n**Artifact gate (required, run first)**: verify on disk that `fixA.md` and `fixB.md` both exist and are non-empty. If either is missing or empty, `SendMessage(to=\"planner-a|b\", message=\"Your plan file at {path} is missing or empty. Write your full plan to that path before signaling done.\")`. Do not proceed to the quality gate until both files exist on disk.\n\n**Quality gate**: each plan has required sections — diagnosis reference, fix approach, file-level changes, sequencing (when multi-file changes have ordering constraints), defenses (or \"none\" with rationale), test plan, rollback plan, risk assessment. Failure → `SendMessage(to=\"planner-a|b\", message=\"revise: \u003Cspecific>\")`.\n\n**Diagnosis-disagreement check**: if either A or B flagged the diagnosis as wrong (BLOCKING_ITEM), do NOT proceed. Stop and report to the orchestrator. The orchestrator decides whether to re-run investigate.\n\n**Convergence check**: did A and B independently land on the same fix approach with the same files touched? If yes, skip to §\"Convergence path\" — spawn C for lightweight review only, no Round 2\u002F3.\n\n**(Interactive) checkpoint 1**: pause for user review of fixA\u002FfixB.\n\n### Step 4 — Round 2: Synthesizer C\n\nSpawn `synthesizer-c` teammate. Prompt embeds `agents\u002Ffixp-synthesizer.md` and instructs:\n\n- Phase 0: read source files and diagnosis directly, before reading A or B's plans\n- Phase 1: read fixA.md and fixB.md\n- Phase 2: cross-verify the proposed fixes against the actual code (do they touch the right files? would they actually fix the diagnosed cause?)\n- Phase 3: synthesize into fixC.md with C's chosen position on the Surgical-Robust spectrum, justified\n- Phase 4: write isolated review files for A and B (no mention of the other planner)\n\n### Step 5 — Round 2 artifact gate (required)\n\nBefore Round 3, **verify on disk**:\n- `fixC.md` exists\n- `review-for-A.md` exists\n- `review-for-B.md` exists\n\nIf any is missing, `SendMessage(to=\"synthesizer-c\", message=\"\u003Cname the missing file>\")`. Do not proceed with partial artifacts.\n\n**(Interactive) checkpoint 2**: pause for user review of fixC.md.\n\n### Step 6 — Round 3: Critique (pinned teammate descriptions)\n\nTwo `SendMessage` calls in one turn, using these exact `description` values:\n- `\"Critic A: Round 3 feedback on fixA\"`\n- `\"Critic B: Round 3 feedback on fixB\"`\n\nEach message embeds `agents\u002Ffixp-critic.md` and the per-planner isolation rule (read ONLY own review file + own plan). Teammates resume with full Round 1 context.\n\nThe critic role specifically asks each planner: \"Does C's synthesis fairly represent your fix approach? Did C reject your defenses (or your minimalism) without sufficient justification? Does C's chosen position adequately address the diagnosed cause AND its environment-appropriate blast radius?\"\n\n### Step 7 — Round 4: Reconciliation\n\nWhen both critiques arrive, `SendMessage(to=\"synthesizer-c\", ...)` with both feedback bodies inline and `agents\u002Ffixp-reconciler.md` embedded.\n\nC produces TWO files:\n\n- `fix-plan.md` — the deliverable\n- `reconciliation-notes.md` — one line per critique: `A: \u003Cpoint> → ACCEPTED\u002FPARTIAL\u002FREJECTED — \u003Creason>`\n\n### Step 8 — Cleanup (full mode)\n\n```\nSendMessage(to=\"planner-a\", message={\"type\": \"shutdown_request\", ...})  # all three in parallel\nTeamDelete()\n```\n\nPresent `fix-plan.md` (+ `reconciliation-notes.md`) to the user.\n\n### Step 9 — Revise mode (when fix-review.md is present)\n\nREVISE mode skips Rounds 1-3 entirely. The team is single-agent (just synthesizer-c) because the deliberation is narrow: incorporate review feedback into an existing plan.\n\n**9A. Validate revise-mode preconditions** before spawning anything:\n\n- `fix-review.md` exists and is non-empty (size > 200 bytes — guards against accidentally-touched empty files)\n- `fix-review.md` contains structured review points (look for headers\u002Fbullets, not just freeform prose). If structure cannot be detected, surface to user: \"fix-review.md exists but does not appear to contain structured review points. Continue anyway, or have the reviewer re-issue?\" Wait for confirmation.\n- `fix-plan.md` exists (this is v1 — the plan being revised). If it does not, this is not a revise scenario; either fail with a clear message or fall through to full mode (orchestrator decision; default = fail).\n- `fix-review.md` mtime is newer than `fix-plan.md` mtime. If not, the review predates the current plan and may already have been incorporated — surface to user: \"fix-review.md is older than fix-plan.md. The review may already be incorporated. Continue anyway?\" Wait for confirmation.\n\nIf any precondition fails and the user does not confirm, do not enter revise mode.\n\n**9B. Spawn the reviser:**\n\n```\nTeamCreate(team_name=\"fixp-rev-\u003Cshort-slug>\", description=\"Revise fix-plan from review\")\n# Create 1 task (revise) — no dependencies\n```\n\nSpawn `synthesizer-c` with prompt embedding `agents\u002Ffixp-reviser.md`. The reviser role:\n\n- Phase 0: read the existing `fix-plan.md` (v1), `fix-review.md`, `diagnosis.md`\n- Phase 1: classify each review point — Accept (incorporate), Partial (incorporate with caveat), Reject (do not incorporate, justify)\n- Phase 2: write `revision-notes.md` with the classification\n- Phase 3: produce revised `fix-plan.md` (v2) — overwrites v1\n- Hard rule: rejecting a review point requires explicit justification in revision-notes.md\n- Hard rule: every review point must appear in revision-notes.md with a verdict — silent drops are forbidden\n\nOutput:\n- `fix-plan.md` — overwritten with v2\n- `revision-notes.md` — audit trail of which review points were accepted\u002Frejected\n\n**9C. Revise-mode quality gate.** After the reviser signals done, verify on disk before cleanup:\n\n- `fix-plan.md` exists, is non-empty, and contains all required sections per `fix-plan.md Structure` (Status, Diagnosis Reference, Environment, Fix Approach, Changes, Sequencing, Defenses, Test Plan, Rollback Plan, Risk Assessment, Confidence + Blocking Items)\n- `revision-notes.md` exists and is non-empty\n- `revision-notes.md` contains an entry for every substantive review point in `fix-review.md` (no silent drops)\n\nIf any check fails: `SendMessage(to=\"synthesizer-c\", message=\"\u003Cspecific gap>\")`. One retry; if it still fails, surface to user with what's incomplete.\n\n**9D. Archive consumed fix-review.md.** After the quality gate passes, rename the consumed review:\n\n```\nmv {output_dir}\u002Ffix-review.md {output_dir}\u002Ffix-review-{timestamp}.md\n```\n\nThis guards against re-entering revise mode on the next invocation when the v2 plan has not yet been re-reviewed. The orchestrator's next fix-plan-reviewer run produces a fresh `fix-review.md` if v2 needs revising; the timestamped archive preserves the audit trail.\n\n### Step 10 — Cleanup (revise mode)\n\nSame as Step 8 but with single teammate.\n\n---\n\n## Isolation Rule (embed verbatim in planner prompts)\n\n```\nISOLATION RULE — strict.\n\nAllowed reads:\n- Files listed under \"Source files\" in this prompt\n- diagnosis.md, problem-statement.md, repro.md in the current output directory\n- Files listed under \"Original pipeline context\" (if provided) — READ-ONLY, treat as\n  context for understanding the codebase, NOT as a list of suspects or fix locations\n\nForbidden reads, in the current output directory:\n- fixA.md, fixB.md, fixC.md  (except your own plan in Round 3)\n- review-for-A.md, review-for-B.md  (except your own review in Round 3)\n- fix-plan.md, reconciliation-notes.md, fix-review.md, revision-notes.md\n\nForbidden writes:\n- Any file under .dev\u002Fproposals\u002F{original-slug}\u002F  (read-only context)\n- Any source code file (this skill produces a plan, not code)\n\nDO NOT re-investigate or re-diagnose. The diagnosis is authoritative.\nIf you believe the diagnosis is wrong, write your plan with status \"BLOCKED\",\nflag the contradiction in BLOCKING_ITEMS, and stop. The orchestrator will decide\nwhether to re-run investigate.\n\nWhen you finish, SendMessage the team lead \"team-lead\" with a one-line plain-text\nsummary including your fix approach. Then go idle — do NOT exit. You will be\nmessaged again in Round 3 to critique a synthesis of your work.\n```\n\nRound 3 adds: \"Read ONLY review-for-A.md (or review-for-B.md for B) and your own fixA.md (or fixB.md). Do NOT read fixC.md, the other planner's review, or the other planner's plan.\"\n\n---\n\n## fix-plan.md Structure\n\n```markdown\n# Fix Plan — {slug}\n\n## Status\n{ACTIVE | BLOCKED}\n\n## Diagnosis Reference\n{Citation of the root cause from diagnosis.md being addressed.\n For PARTIALLY CONVERGED: explicit list of alternatives this plan considers (or doesn't).}\n\n## Environment\n{prod | dev}\n\n## Fix Approach\n{The chosen position on the Surgical-Robust spectrum, with rationale.\n If pure Surgical: why no defenses are warranted given the diagnosis confidence and blast radius.\n If pure Robust: why the broader scope is justified.\n Most likely: a synthesis that's surgical on the cause and robust on a small set of related fragilities.}\n\n## Changes\n{File-level overview. For each file:\n - Path\n - Nature of change (modify \u002F add \u002F remove)\n - Brief description (one or two sentences)\n - Whether the change is for the cause or a defense\n\nThis is NOT diff-level. The implementation stage produces diffs. This is the plan.}\n\n## Sequencing\n{Order of operations across the changes above. Required when there are multi-file\n changes with ordering constraints; \"single-file change\" or \"order does not matter\"\n is also a valid answer when true. Examples of constraints:\n - Migration must land before code that reads\u002Fwrites the new column\n - Feature flag must be added (default off) before gated reads\n - New service endpoint must deploy before client code that calls it\n The downstream fix-coding stage uses this section to construct commit groups.}\n\n## Defenses\n{What's being added beyond the minimum cause-fix.\n If \"none\": explicit rationale rooted in the diagnosis confidence and blast radius.\n Each defense: what fragility it guards against, why it's worth the additional change.}\n\n## Test Plan\n{What tests prove the fix works AND prove relevant regressions don't happen.\n - Tests that confirm the diagnosed cause is no longer reproducible (referencing repro.md if present)\n - Tests that confirm the defenses (if any) work\n - Regression tests for adjacent functionality the changes touch\n - Existing tests that must still pass}\n\n## Rollback Plan\n{How to back out the fix if it causes problems in prod.\n - For prod: explicit revert steps, deployment considerations, what to monitor post-deploy\n - For dev: lighter — what files to revert, what state to reset\n - Always present, never \"N\u002FA\"}\n\n## Risk Assessment\n{What could go wrong with this fix:\n - Blast radius (which other features could be affected)\n - Compatibility (API\u002Fschema changes? backward-compat concerns?)\n - Performance (could this fix slow something down?)\n - The most likely failure mode of the fix itself\n - For prod: deployment risk, traffic considerations}\n\n## Confidence + Blocking Items\nCONFIDENCE: HIGH | MEDIUM | LOW\nBLOCKING_ITEMS: N\n```\n\nWhen status is BLOCKED, sections after Status describe the blocking reason and the fix-plan.md is shorter — most sections may be N\u002FA. The skill MUST still write the file.\n\n---\n\n## Bias Mitigations\n\n**Diagnosis-second-guessing.**\nHard Rule. The role files explicitly forbid re-investigation. If a planner believes the diagnosis is wrong, the only valid action is to flag it as a BLOCKING_ITEM and stop.\n\n**Scope creep (Robust planner over-engineers).**\nRobust planner's role file requires explicit justification per defense — what fragility it guards against and why the additional change is worth it. The synthesizer's role file is required to challenge defenses that lack clear justification.\n\n**Under-engineering (Surgical planner ignores adjacent fragility).**\nSurgical planner's role file requires explicit answer to \"is the diagnosed cause likely to recur via a slightly different path? If so, why are no defenses warranted?\" Forces the question to be answered, not skipped.\n\n**Reconciler bias toward own synthesis.**\nSame mechanism as adversarial-investigate:\n- `agents\u002Ffixp-reconciler.md` includes steelman \u002F perspective-test guidance\n- `reconciliation-notes.md` (required) forces explicit accept\u002Fpartial\u002Freject for every critique point\n- `--interactive` mode lets user review fixC.md before Round 3 critiques\n\n**PARTIALLY CONVERGED complacency.**\nWhen the diagnosis has known alternatives, the easy thing is to ignore them and plan for the top hypothesis only. The Robust role file is required to address each alternative explicitly: either propose a defense, or justify why the alternative is unlikely enough to ignore.\n\n---\n\n## Known Tradeoffs\n\n**Lead context pressure.** Same as adversarial-investigate — discipline matters. Lead reads diagnosis.md, problem-statement.md, the three synthesis artifacts, and the final fix-plan.md. Source files are teammate-scoped.\n\n**The Surgical-Robust pair can underperform on architectural bugs.** If the diagnosed cause is a design-level issue (not a localized bug), both Surgical and Robust may converge on inadequate fixes. The synthesizer should detect this and flag in fixC.md — but the skill cannot architect a redesign. Architectural diagnoses should escalate to a build-pipeline (`adversarial-proposal`) for the redesign rather than a fix-pipeline.\n\n**Revise mode is single-agent.** Loses adversarial pressure on the revision pass. This is intentional — fix-review's feedback is itself adversarial, and revise mode is incorporating that feedback rather than re-deliberating. If a revision needs deeper deliberation, the orchestrator should re-run full mode.\n\n---\n\n## Invoking the Skill\n\n### Direct prompt (full mode)\n\n```\n\u002Fadversarial-fix-plan \\\n  --output-dir .dev\u002Ffixes\u002Fjwt-refresh-tokens\u002Fauth-token-refresh-race\u002F \\\n  --env prod \\\n  --original-slug jwt-refresh-tokens\n```\n\n### Direct prompt (revise mode — auto-detected by presence of fix-review.md)\n\n```\n\u002Fadversarial-fix-plan \\\n  --output-dir .dev\u002Ffixes\u002Fjwt-refresh-tokens\u002Fauth-token-refresh-race\u002F \\\n  --env prod \\\n  --original-slug jwt-refresh-tokens\n```\n\n(Same invocation. The skill detects fix-review.md in the output directory and switches modes.)\n\n### As a Claude Code command\n\n`~\u002F.claude\u002Fcommands\u002Fadversarial-fix-plan.md`:\n\n```\nRead .claude\u002Fskills\u002Fadversarial-fix-plan\u002FSKILL.md and\n.claude\u002Fskills\u002Fadversarial-fix-plan\u002Freferences\u002Fagent-teams-workflow.md,\nthen orchestrate the workflow.\n\nArguments: $ARGUMENTS\n```\n\n---\n\n## Output Directory\n\n```\n{output_dir}\u002F\n├── problem-statement.md         ← Input (from orchestrator)\n├── repro.md                     ← Input (from fix-reproducer, if it ran)\n├── diagnosis.md                 ← Input (from adversarial-investigate)\n├── fixA.md                      ← Round 1: Surgical (full mode only)\n├── fixB.md                      ← Round 1: Robust (full mode only)\n├── fixC.md                      ← Round 2: Synthesis (lead-only, full mode only)\n├── review-for-A.md              ← Round 2: A's eyes only (full mode only)\n├── review-for-B.md              ← Round 2: B's eyes only (full mode only)\n├── reconciliation-notes.md      ← Round 4: ACCEPT\u002FPARTIAL\u002FREJECT audit (full mode only)\n├── fix-plan.md                  ← Round 4 (full) OR Round R (revise): FINAL DELIVERABLE\n├── fix-review.md                ← Input from fix-plan-reviewer; its presence triggers revise mode (archived to fix-review-{ts}.md after consumption)\n├── fix-review-{ts}.md           ← (Post-revise) Archived review files preserved for audit\n└── revision-notes.md            ← (Revise mode only) Audit trail of accept\u002Freject per review point\n```\n\nThe presence or absence of intermediate files signals which path ran:\n- **Full run**: fixA, fixB, fixC, reviews, reconciliation-notes, fix-plan.md\n- **Convergence run** (A and B agreed): fixA, fixB, fix-plan.md only\n- **Revise run**: fix-plan.md (overwritten v2), revision-notes.md\n- **Blocked run** (INSUFFICIENT EVIDENCE diagnosis): fix-plan.md only with BLOCKED status\n\n---\n\n## Reference Files\n\n| File | When to read | Purpose |\n|---|---|---|\n| `references\u002Fagent-teams-workflow.md` | Before orchestrating | Exact tool-call sequence for all rounds (full and revise) |\n| `references\u002Ffix-plan-format.md` | When building planner\u002Fsynthesizer prompts | Working artifact template for fixA\u002FfixB\u002FfixC |\n| `references\u002Ffix-plan-final-format.md` | When building reconciler\u002Freviser prompts | Final fix-plan.md template (matches structure above) |\n| `references\u002Fsubagent-fallback.md` | Only if Teams is unavailable | Task-based fallback with file coordination |\n| `agents\u002Ffix-planner.md` | Building A\u002FB prompts | Planner role + strategy assignment + diagnosis-trust requirement + bias mitigations |\n| `agents\u002Ffixp-synthesizer.md` | Building C's Round 2 prompt | Synthesis role with 3-file output spec |\n| `agents\u002Ffixp-critic.md` | Building Round 3 messages | Critique guidance |\n| `agents\u002Ffixp-reconciler.md` | Building Round 4 message | Bias-aware reconciliation + fix-plan.md spec |\n| `agents\u002Ffixp-reviser.md` | Building revise-mode prompt | Single-agent revise role + revision-notes.md spec |\n\n## Agent Roles Summary\n\n| Agent | File | Used in | Purpose |\n|---|---|---|---|\n| Planner | `agents\u002Ffix-planner.md` | Round 1 (A, B) | Independent fix planning with assigned strategy + diagnosis-trust requirement |\n| Synthesizer | `agents\u002Ffixp-synthesizer.md` | Round 2 (C) | Independent verification, synthesis, isolated review files |\n| Critic | `agents\u002Ffixp-critic.md` | Round 3 (A, B) | Review own isolated critique, defend or concede |\n| Reconciler | `agents\u002Ffixp-reconciler.md` | Round 4 (C) | Bias-aware reconciliation + final fix-plan.md |\n| Reviser | `agents\u002Ffixp-reviser.md` | Round R (revise mode) | Single-agent incorporation of fix-review feedback into v2 |\n","# Adversarial Fix Plan Framework\n\n## Overview\n\nThree persistent teammates produce a vetted patch plan for a diagnosed bug through 4 rounds. The critical design principle is **information isolation** — A and B each have their own context window and never see each other's work. Only Synthesizer C sees both. A and B critique C from their original contexts (in Round 3 they see only their own isolated review file).\n\nThis skill differs from `adversarial-investigate` in three important ways:\n\n1. **Inputs are narrow** — the upstream diagnosis is trusted as authoritative. The deliberation is about *how* to fix the known cause, not *what* the cause is.\n2. **Strategy pair is about scope** — Surgical vs. Robust. They argue about how broadly the fix should reach.\n3. **Two operating modes** — full mode (first invocation; runs all 4 rounds) and revise mode (second invocation; incorporates fix-review feedback into a v2 fix-plan).\n\nThe full tool-call sequence lives in `references\u002Fagent-teams-workflow.md`. **Read that file before orchestrating.** This document is the high-level guide.\n\n## When to Use\n\n- As the planning stage of a fix-pipeline, after `adversarial-investigate` has produced a CONVERGED or PARTIALLY CONVERGED diagnosis\n- As the revise stage when `fix-plan-reviewer` has produced fix-review.md and the orchestrator has determined the feedback warrants incorporation\n\n## When NOT to Use\n\n- **Diagnosis is INSUFFICIENT EVIDENCE.** Hard refusal — see Hard Rules. The fix-pipeline must escalate or gather data first.\n- **Trivial fixes.** One-line typo fixes don't need adversarial deliberation. Just fix them.\n- **The diagnosis appears wrong.** Hard Rule — this skill does NOT re-investigate. If A or B believes the diagnosis is wrong, they flag it as a BLOCKING_ITEM and the skill stops. The orchestrator decides whether to re-run investigate.\n- **Build-pipeline planning.** Use `adversarial-proposal` for forward-looking work.\n\n## Hard Rules\n\n1. **Trust the diagnosis.** This skill does not re-investigate, re-diagnose, or challenge the upstream root cause. If A or B encounters evidence that contradicts diagnosis.md during fix-planning, they note it as a BLOCKING_ITEM in their plan and stop. The skill does NOT silently re-do investigate's job.\n2. **Refuse INSUFFICIENT EVIDENCE diagnoses.** If `diagnosis.md` has `convergence_status: INSUFFICIENT EVIDENCE`, this skill stops in Phase 0 and reports. The orchestrator should not have invoked it; this is defense in depth.\n3. **PARTIALLY CONVERGED diagnoses force alternative-aware planning.** When the diagnosis is partial, the Robust planner MUST explicitly consider \"what if an alternative cause is actually right\" and propose defenses. The synthesis must explicitly note which alternatives the fix does or does not cover.\n4. **Always produce fix-plan.md, even when blocked.** A skill that stops mid-flight still writes fix-plan.md with the blocking reason and a non-zero BLOCKING_ITEMS count. Silent failure is forbidden.\n5. **Single output deliverable.** fix-plan.md is the only artifact downstream stages (fix-review, fix-coding) consume. Working artifacts (planA, planB, planC, reviews) are intermediate.\n6. **No code changes.** This skill produces a plan. It does not modify source code. fix-coding does that.\n\n## Prerequisites\n\nRequires Claude Code Agent Teams:\n\n```bash\n# In ~\u002F.claude\u002Fsettings.json\n{ \"env\": { \"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS\": \"1\" } }\n```\n\nTakes effect on new Claude Code sessions. If Teams is not available, fall back to `references\u002Fsubagent-fallback.md`.\n\n## Modes\n\n| Mode | Detection | Behavior |\n|---|---|---|\n| **Full** | `fix-review.md` does NOT exist in `--output-dir` | Run all 4 rounds. Produce fix-plan.md (v1). |\n| **Revise** | `fix-review.md` exists in `--output-dir` | Skip Rounds 1-3. Synthesizer C reads the existing fix-plan.md + fix-review.md and produces fix-plan.md (v2) plus revision-notes.md. |\n| **Interactive** | `--interactive` flag | Within full mode: pauses after Round 1 (user reviews fixA\u002FfixB) and after Round 2 (user reviews fixC). Compatible with full mode only. |\n\nThe skill auto-detects full vs. revise based on the presence of `fix-review.md`. The orchestrator does not pass a mode flag.\n\n**Expected runtime**: ~15–25 min for full mode (planning is narrower than investigation — A and B don't need to trace causality, they design fixes against a known cause). Convergence-path runs are shorter (~8–12 min). Revise mode is ~5–10 min (single agent, narrow scope: incorporate review points into existing plan).\n\n## Inputs\n\nRequired:\n\n- `--output-dir` — path to the fix directory. `diagnosis.md` lives here; `fix-plan.md` will be written here.\n- `--env prod | dev` — which environment the bug exists in. Affects fix-strategy considerations (deployment risk for prod, iteration speed for dev).\n\nOptional:\n\n- `--original-slug` — slug of the original build pipeline whose feature has the bug. Enables read-only context access to that pipeline's `final-plan.md`, `implementation.md`, and `coder-report.md`.\n- `--interactive` — pause at Round 1 and Round 2 checkpoints for user review. Full mode only.\n\n## Architecture\n\n```\nROUND 0  Setup: read inputs → check diagnosis convergence_status → detect mode\n                → strategy pair → team → tasks\nROUND 1  planner-a + planner-b plan in parallel (isolated)\n           A: SURGICAL — minimum change to stop the diagnosed cause\n           B: ROBUST — cause fixed + defenses against recurrence\n           ─► fixA.md, fixB.md\n         ▼  quality gate + convergence check + (interactive) checkpoint 1\nROUND 2  synthesizer-c reads both → produces 3 artifacts\n           ─► fixC.md, review-for-A.md, review-for-B.md\n         ▼  artifact gate + (interactive) checkpoint 2\nROUND 3  A and B resume from Round 1 context, each reads ONLY its own\n         review file → SendMessage feedback back to lead\nROUND 4  synthesizer-c resumes → reconciles both critiques\n           ─► reconciliation-notes.md + fix-plan.md\nROUND 5  shutdown all teammates, TeamDelete, present to user\n\nREVISE MODE (when fix-review.md is present on entry):\nROUND 0  Setup: read inputs (including existing fix-plan.md and fix-review.md)\nROUND R  synthesizer-c reads existing fix-plan.md and fix-review.md, produces\n           ─► revision-notes.md (accept\u002Fpartial\u002Freject per review point)\n           ─► fix-plan.md (v2 — overwrites v1)\nROUND 5  shutdown, TeamDelete, present to user\n```\n\n### Strategy pair\n\n| Planner | Strategy | Focus | Catches |\n|---|---|---|---|\n| **A** | Surgical | Minimum change to stop the diagnosed cause | Over-engineering, scope creep, accidental refactors, fix-induced regressions from unnecessary changes |\n| **B** | Robust | Cause fixed + defenses against recurrence and adjacent fragility | Insufficient defense, missed related bugs, \"cause-fixed-but-symptom-still-possible\" outcomes |\n\nThe synthesis (Round 2 and Round 4) lands somewhere on the spectrum between them, justified by the diagnosis's confidence level, the deployment environment, and the blast radius of the affected code.\n\n### Why isolation works\n\nSame as adversarial-investigate. Each teammate has its own context window. A and B share no conversation history. All communication goes through the lead. Round 3 isolation is maintained via per-planner review files.\n\n---\n\n## How to Execute\n\nYou (the lead) orchestrate everything. The exact tool-call sequence is in `references\u002Fagent-teams-workflow.md`. Below is the orchestration checklist.\n\n### Step 0 — Gather context, validate diagnosis, detect mode\n\n**0A. Empty-args short-circuit.** If invoked without `--output-dir`, without `--env`, or `diagnosis.md` does not exist at `{output_dir}\u002Fdiagnosis.md`, stop immediately:\n\n> \"This skill requires --output-dir, --env (one of `prod` | `dev`), and an existing diagnosis.md in that directory. Provide --output-dir and --env, and ensure adversarial-investigate has run.\"\n\n**0B. Read inputs from `{output_dir}`:**\n\n- `diagnosis.md` — required\n- `problem-statement.md` — required (context)\n- `repro.md` — if present (context)\n- `fix-review.md` — if present, switches to REVISE mode\n- `fix-plan.md` — if present (only relevant in revise mode; this is the v1 being revised)\n\n**0C. Check diagnosis convergence_status.**\n\nParse the convergence status from diagnosis.md by locating the `## Convergence Status` header and reading the value on the line(s) immediately below (per `references\u002Fdiagnosis-format.md` from the adversarial-investigate skill). Expected values: `CONVERGED`, `PARTIALLY CONVERGED`, `INSUFFICIENT EVIDENCE`.\n\n- **CONVERGED** → proceed normally\n- **PARTIALLY CONVERGED** → proceed, but the Robust planner role is required to consider alternative causes (see role file)\n- **INSUFFICIENT EVIDENCE** → STOP (handled below)\n- **Missing or unparseable** → treat as defense-in-depth equivalent to INSUFFICIENT EVIDENCE: STOP and report. A diagnosis without a parseable convergence status cannot be safely planned against.\n\nFor **INSUFFICIENT EVIDENCE** or missing\u002Funparseable status, write fix-plan.md with:\n\n```\n# Fix Plan — BLOCKED\n\n## Status\nBLOCKED — diagnosis convergence_status is {INSUFFICIENT EVIDENCE | missing\u002Funparseable}.\nFix planning cannot proceed without a committed (or partially committed) root cause.\n\n## Required Action\nRe-run adversarial-investigate with additional data per the required_data\nsection of diagnosis.md, or escalate to the user for manual diagnosis.\n\nCONFIDENCE: N\u002FA\nBLOCKING_ITEMS: 1\n```\n\nThen exit. Do not spawn teammates.\n\n**Downstream contract:** when a downstream stage (orchestrator, fix-coding) sees `Status: BLOCKED` with `BLOCKING_ITEMS: 1`, it must NOT advance to fix-coding. The expected actions are: re-run adversarial-investigate with the data named in diagnosis.md's `required_data` section, OR escalate to the user. Silent advancement past a BLOCKED fix-plan is a contract violation.\n\n**0D. Read original pipeline artifacts (if `--original-slug` provided):**\n\nRead-only context from `.dev\u002Fproposals\u002F{original-slug}\u002F`:\n- `final-plan.md` — what the feature was supposed to do\n- `implementation.md` — what was actually built\n- `coder-report.md` — what was committed\n\nUsed to understand the surrounding code and avoid breaking adjacent functionality. NOT used to second-guess the diagnosis.\n\n**0E. Detect mode.**\n\n- If `fix-review.md` exists → REVISE mode. Skip to Step 9.\n- Otherwise → FULL mode. Proceed to Step 1.\n\n**0F. Confirm `--env`.** `prod` or `dev`. Affects:\n- Risk assessment weight (prod fixes have higher blast radius)\n- Rollback plan rigor (prod requires explicit rollback steps; dev can be looser)\n- Deployment considerations (prod requires staged rollout consideration; dev does not)\n\n**0G. Exploration budget.** Before spawning A and B, the lead reads **at most 3–5 files** to orient. The planners re-read source independently — that's the point. Over-exploration in the lead burns context that A\u002FB will duplicate anyway.\n\n### Step 1 — Team setup\n\n```\nTeamCreate(team_name=\"fixp-\u003Cshort-slug>\", description=\u003Cshort>)\n# Create 5 tasks (A, B, C, critique, reconcile) with dependency chain\n```\n\nDetails in `references\u002Fagent-teams-workflow.md` §\"Round 0\".\n\n### Step 2 — Round 1: Spawn A and B in parallel (same turn)\n\nTwo `Agent(team_name=..., name=\"planner-a\", ...)` calls in a single message. Each prompt embeds:\n\n- `agents\u002Ffix-planner.md` (the role)\n- `references\u002Ffix-plan-format.md` (the working artifact format)\n- The assigned strategy (Surgical for A, Robust for B)\n- Full content of `diagnosis.md`, `problem-statement.md`, `repro.md` (if present)\n- Original pipeline artifacts (if `--original-slug`) marked clearly as CONTEXT\n- The env mode and what it implies for risk\u002Frollback rigor\n- Output path: `{output_dir}\u002FfixA.md` (or `fixB.md`)\n- Isolation rule (see below)\n- Anti-second-guessing requirement: do NOT re-investigate. If diagnosis seems wrong, flag as BLOCKING_ITEM and stop.\n- For PARTIALLY CONVERGED diagnoses (B only): explicit instruction to consider alternative causes from diagnosis.md and propose defenses\n\nThen the lead idles.\n\n### Step 3 — Gates after Round 1\n\n**Artifact gate (required, run first)**: verify on disk that `fixA.md` and `fixB.md` both exist and are non-empty. If either is missing or empty, `SendMessage(to=\"planner-a|b\", message=\"Your plan file at {path} is missing or empty. Write your full plan to that path before signaling done.\")`. Do not proceed to the quality gate until both files exist on disk.\n\n**Quality gate**: each plan has required sections — diagnosis reference, fix approach, file-level changes, sequencing (when multi-file changes have ordering constraints), defenses (or \"none\" with rationale), test plan, rollback plan, risk assessment. Failure → `SendMessage(to=\"planner-a|b\", message=\"revise: \u003Cspecific>\")`.\n\n**Diagnosis-disagreement check**: if either A or B flagged the diagnosis as wrong (BLOCKING_ITEM), do NOT proceed. Stop and report to the orchestrator. The orchestrator decides whether to re-run investigate.\n\n**Convergence check**: did A and B independently land on the same fix approach with the same files touched? If yes, skip to §\"Convergence path\" — spawn C for lightweight review only, no Round 2\u002F3.\n\n**(Interactive) checkpoint 1**: pause for user review of fixA\u002FfixB.\n\n### Step 4 — Round 2: Synthesizer C\n\nSpawn `synthesizer-c` teammate. Prompt embeds `agents\u002Ffixp-synthesizer.md` and instructs:\n\n- Phase 0: read source files and diagnosis directly, before reading A or B's plans\n- Phase 1: read fixA.md and fixB.md\n- Phase 2: cross-verify the proposed fixes against the actual code (do they touch the right files? would they actually fix the diagnosed cause?)\n- Phase 3: synthesize into fixC.md with C's chosen position on the Surgical-Robust spectrum, justified\n- Phase 4: write isolated review files for A and B (no mention of the other planner)\n\n### Step 5 — Round 2 artifact gate (required)\n\nBefore Round 3, **verify on disk**:\n- `fixC.md` exists\n- `review-for-A.md` exists\n- `review-for-B.md` exists\n\nIf any is missing, `SendMessage(to=\"synthesizer-c\", message=\"\u003Cname the missing file>\")`. Do not proceed with partial artifacts.\n\n**(Interactive) checkpoint 2**: pause for user review of fixC.md.\n\n### Step 6 — Round 3: Critique (pinned teammate descriptions)\n\nTwo `SendMessage` calls in one turn, using these exact `description` values:\n- `\"Critic A: Round 3 feedback on fixA\"`\n- `\"Critic B: Round 3 feedback on fixB\"`\n\nEach message embeds `agents\u002Ffixp-critic.md` and the per-planner isolation rule (read ONLY own review file + own plan). Teammates resume with full Round 1 context.\n\nThe critic role specifically asks each planner: \"Does C's synthesis fairly represent your fix approach? Did C reject your defenses (or your minimalism) without sufficient justification? Does C's chosen position adequately address the diagnosed cause AND its environment-appropriate blast radius?\"\n\n### Step 7 — Round 4: Reconciliation\n\nWhen both critiques arrive, `SendMessage(to=\"synthesizer-c\", ...)` with both feedback bodies inline and `agents\u002Ffixp-reconciler.md` embedded.\n\nC produces TWO files:\n\n- `fix-plan.md` — the deliverable\n- `reconciliation-notes.md` — one line per critique: `A: \u003Cpoint> → ACCEPTED\u002FPARTIAL\u002FREJECTED — \u003Creason>`\n\n### Step 8 — Cleanup (full mode)\n\n```\nSendMessage(to=\"planner-a\", message={\"type\": \"shutdown_request\", ...})  # all three in parallel\nTeamDelete()\n```\n\nPresent `fix-plan.md` (+ `reconciliation-notes.md`) to the user.\n\n### Step 9 — Revise mode (when fix-review.md is present)\n\nREVISE mode skips Rounds 1-3 entirely. The team is single-agent (just synthesizer-c) because the deliberation is narrow: incorporate review feedback into an existing plan.\n\n**9A. Validate revise-mode preconditions** before spawning anything:\n\n- `fix-review.md` exists and is non-empty (size > 200 bytes — guards against accidentally-touched empty files)\n- `fix-review.md` contains structured review points (look for headers\u002Fbullets, not just freeform prose). If structure cannot be detected, surface to user: \"fix-review.md exists but does not appear to contain structured review points. Continue anyway, or have the reviewer re-issue?\" Wait for confirmation.\n- `fix-plan.md` exists (this is v1 — the plan being revised). If it does not, this is not a revise scenario; either fail with a clear message or fall through to full mode (orchestrator decision; default = fail).\n- `fix-review.md` mtime is newer than `fix-plan.md` mtime. If not, the review predates the current plan and may already have been incorporated — surface to user: \"fix-review.md is older than fix-plan.md. The review may already be incorporated. Continue anyway?\" Wait for confirmation.\n\nIf any precondition fails and the user does not confirm, do not enter revise mode.\n\n**9B. Spawn the reviser:**\n\n```\nTeamCreate(team_name=\"fixp-rev-\u003Cshort-slug>\", description=\"Revise fix-plan from review\")\n# Create 1 task (revise) — no dependencies\n```\n\nSpawn `synthesizer-c` with prompt embedding `agents\u002Ffixp-reviser.md`. The reviser role:\n\n- Phase 0: read the existing `fix-plan.md` (v1), `fix-review.md`, `diagnosis.md`\n- Phase 1: classify each review point — Accept (incorporate), Partial (incorporate with caveat), Reject (do not incorporate, justify)\n- Phase 2: write `revision-notes.md` with the classification\n- Phase 3: produce revised `fix-plan.md` (v2) — overwrites v1\n- Hard rule: rejecting a review point requires explicit justification in revision-notes.md\n- Hard rule: every review point must appear in revision-notes.md with a verdict — silent drops are forbidden\n\nOutput:\n- `fix-plan.md` — overwritten with v2\n- `revision-notes.md` — audit trail of which review points were accepted\u002Frejected\n\n**9C. Revise-mode quality gate.** After the reviser signals done, verify on disk before cleanup:\n\n- `fix-plan.md` exists, is non-empty, and contains all required sections per `fix-plan.md Structure` (Status, Diagnosis Reference, Environment, Fix Approach, Changes, Sequencing, Defenses, Test Plan, Rollback Plan, Risk Assessment, Confidence + Blocking Items)\n- `revision-notes.md` exists and is non-empty\n- `revision-notes.md` contains an entry for every substantive review point in `fix-review.md` (no silent drops)\n\nIf any check fails: `SendMessage(to=\"synthesizer-c\", message=\"\u003Cspecific gap>\")`. One retry; if it still fails, surface to user with what's incomplete.\n\n**9D. Archive consumed fix-review.md.** After the quality gate passes, rename the consumed review:\n\n```\nmv {output_dir}\u002Ffix-review.md {output_dir}\u002Ffix-review-{timestamp}.md\n```\n\nThis guards against re-entering revise mode on the next invocation when the v2 plan has not yet been re-reviewed. The orchestrator's next fix-plan-reviewer run produces a fresh `fix-review.md` if v2 needs revising; the timestamped archive preserves the audit trail.\n\n### Step 10 — Cleanup (revise mode)\n\nSame as Step 8 but with single teammate.\n\n---\n\n## Isolation Rule (embed verbatim in planner prompts)\n\n```\nISOLATION RULE — strict.\n\nAllowed reads:\n- Files listed under \"Source files\" in this prompt\n- diagnosis.md, problem-statement.md, repro.md in the current output directory\n- Files listed under \"Original pipeline context\" (if provided) — READ-ONLY, treat as\n  context for understanding the codebase, NOT as a list of suspects or fix locations\n\nForbidden reads, in the current output directory:\n- fixA.md, fixB.md, fixC.md  (except your own plan in Round 3)\n- review-for-A.md, review-for-B.md  (except your own review in Round 3)\n- fix-plan.md, reconciliation-notes.md, fix-review.md, revision-notes.md\n\nForbidden writes:\n- Any file under .dev\u002Fproposals\u002F{original-slug}\u002F  (read-only context)\n- Any source code file (this skill produces a plan, not code)\n\nDO NOT re-investigate or re-diagnose. The diagnosis is authoritative.\nIf you believe the diagnosis is wrong, write your plan with status \"BLOCKED\",\nflag the contradiction in BLOCKING_ITEMS, and stop. The orchestrator will decide\nwhether to re-run investigate.\n\nWhen you finish, SendMessage the team lead \"team-lead\" with a one-line plain-text\nsummary including your fix approach. Then go idle — do NOT exit. You will be\nmessaged again in Round 3 to critique a synthesis of your work.\n```\n\nRound 3 adds: \"Read ONLY review-for-A.md (or review-for-B.md for B) and your own fixA.md (or fixB.md). Do NOT read fixC.md, the other planner's review, or the other planner's plan.\"\n\n---\n\n## fix-plan.md Structure\n\n```markdown\n# Fix Plan — {slug}\n\n## Status\n{ACTIVE | BLOCKED}\n\n## Diagnosis Reference\n{Citation of the root cause from diagnosis.md being addressed.\n For PARTIALLY CONVERGED: explicit list of alternatives this plan considers (or doesn't).}\n\n## Environment\n{prod | dev}\n\n## Fix Approach\n{The chosen position on the Surgical-Robust spectrum, with rationale.\n If pure Surgical: why no defenses are warranted given the diagnosis confidence and blast radius.\n If pure Robust: why the broader scope is justified.\n Most likely: a synthesis that's surgical on the cause and robust on a small set of related fragilities.}\n\n## Changes\n{File-level overview. For each file:\n - Path\n - Nature of change (modify \u002F add \u002F remove)\n - Brief description (one or two sentences)\n - Whether the change is for the cause or a defense\n\nThis is NOT diff-level. The implementation stage produces diffs. This is the plan.}\n\n## Sequencing\n{Order of operations across the changes above. Required when there are multi-file\n changes with ordering constraints; \"single-file change\" or \"order does not matter\"\n is also a valid answer when true. Examples of constraints:\n - Migration must land before code that reads\u002Fwrites the new column\n - Feature flag must be added (default off) before gated reads\n - New service endpoint must deploy before client code that calls it\n The downstream fix-coding stage uses this section to construct commit groups.}\n\n## Defenses\n{What's being added beyond the minimum cause-fix.\n If \"none\": explicit rationale rooted in the diagnosis confidence and blast radius.\n Each defense: what fragility it guards against, why it's worth the additional change.}\n\n## Test Plan\n{What tests prove the fix works AND prove relevant regressions don't happen.\n - Tests that confirm the diagnosed cause is no longer reproducible (referencing repro.md if present)\n - Tests that confirm the defenses (if any) work\n - Regression tests for adjacent functionality the changes touch\n - Existing tests that must still pass}\n\n## Rollback Plan\n{How to back out the fix if it causes problems in prod.\n - For prod: explicit revert steps, deployment considerations, what to monitor post-deploy\n - For dev: lighter — what files to revert, what state to reset\n - Always present, never \"N\u002FA\"}\n\n## Risk Assessment\n{What could go wrong with this fix:\n - Blast radius (which other features could be affected)\n - Compatibility (API\u002Fschema changes? backward-compat concerns?)\n - Performance (could this fix slow something down?)\n - The most likely failure mode of the fix itself\n - For prod: deployment risk, traffic considerations}\n\n## Confidence + Blocking Items\nCONFIDENCE: HIGH | MEDIUM | LOW\nBLOCKING_ITEMS: N\n```\n\nWhen status is BLOCKED, sections after Status describe the blocking reason and the fix-plan.md is shorter — most sections may be N\u002FA. The skill MUST still write the file.\n\n---\n\n## Bias Mitigations\n\n**Diagnosis-second-guessing.**\nHard Rule. The role files explicitly forbid re-investigation. If a planner believes the diagnosis is wrong, the only valid action is to flag it as a BLOCKING_ITEM and stop.\n\n**Scope creep (Robust planner over-engineers).**\nRobust planner's role file requires explicit justification per defense — what fragility it guards against and why the additional change is worth it. The synthesizer's role file is required to challenge defenses that lack clear justification.\n\n**Under-engineering (Surgical planner ignores adjacent fragility).**\nSurgical planner's role file requires explicit answer to \"is the diagnosed cause likely to recur via a slightly different path? If so, why are no defenses warranted?\" Forces the question to be answered, not skipped.\n\n**Reconciler bias toward own synthesis.**\nSame mechanism as adversarial-investigate:\n- `agents\u002Ffixp-reconciler.md` includes steelman \u002F perspective-test guidance\n- `reconciliation-notes.md` (required) forces explicit accept\u002Fpartial\u002Freject for every critique point\n- `--interactive` mode lets user review fixC.md before Round 3 critiques\n\n**PARTIALLY CONVERGED complacency.**\nWhen the diagnosis has known alternatives, the easy thing is to ignore them and plan for the top hypothesis only. The Robust role file is required to address each alternative explicitly: either propose a defense, or justify why the alternative is unlikely enough to ignore.\n\n---\n\n## Known Tradeoffs\n\n**Lead context pressure.** Same as adversarial-investigate — discipline matters. Lead reads diagnosis.md, problem-statement.md, the three synthesis artifacts, and the final fix-plan.md. Source files are teammate-scoped.\n\n**The Surgical-Robust pair can underperform on architectural bugs.** If the diagnosed cause is a design-level issue (not a localized bug), both Surgical and Robust may converge on inadequate fixes. The synthesizer should detect this and flag in fixC.md — but the skill cannot architect a redesign. Architectural diagnoses should escalate to a build-pipeline (`adversarial-proposal`) for the redesign rather than a fix-pipeline.\n\n**Revise mode is single-agent.** Loses adversarial pressure on the revision pass. This is intentional — fix-review's feedback is itself adversarial, and revise mode is incorporating that feedback rather than re-deliberating. If a revision needs deeper deliberation, the orchestrator should re-run full mode.\n\n---\n\n## Invoking the Skill\n\n### Direct prompt (full mode)\n\n```\n\u002Fadversarial-fix-plan \\\n  --output-dir .dev\u002Ffixes\u002Fjwt-refresh-tokens\u002Fauth-token-refresh-race\u002F \\\n  --env prod \\\n  --original-slug jwt-refresh-tokens\n```\n\n### Direct prompt (revise mode — auto-detected by presence of fix-review.md)\n\n```\n\u002Fadversarial-fix-plan \\\n  --output-dir .dev\u002Ffixes\u002Fjwt-refresh-tokens\u002Fauth-token-refresh-race\u002F \\\n  --env prod \\\n  --original-slug jwt-refresh-tokens\n```\n\n(Same invocation. The skill detects fix-review.md in the output directory and switches modes.)\n\n### As a Claude Code command\n\n`~\u002F.claude\u002Fcommands\u002Fadversarial-fix-plan.md`:\n\n```\nRead .claude\u002Fskills\u002Fadversarial-fix-plan\u002FSKILL.md and\n.claude\u002Fskills\u002Fadversarial-fix-plan\u002Freferences\u002Fagent-teams-workflow.md,\nthen orchestrate the workflow.\n\nArguments: $ARGUMENTS\n```\n\n---\n\n## Output Directory\n\n```\n{output_dir}\u002F\n├── problem-statement.md         ← Input (from orchestrator)\n├── repro.md                     ← Input (from fix-reproducer, if it ran)\n├── diagnosis.md                 ← Input (from adversarial-investigate)\n├── fixA.md                      ← Round 1: Surgical (full mode only)\n├── fixB.md                      ← Round 1: Robust (full mode only)\n├── fixC.md                      ← Round 2: Synthesis (lead-only, full mode only)\n├── review-for-A.md              ← Round 2: A's eyes only (full mode only)\n├── review-for-B.md              ← Round 2: B's eyes only (full mode only)\n├── reconciliation-notes.md      ← Round 4: ACCEPT\u002FPARTIAL\u002FREJECT audit (full mode only)\n├── fix-plan.md                  ← Round 4 (full) OR Round R (revise): FINAL DELIVERABLE\n├── fix-review.md                ← Input from fix-plan-reviewer; its presence triggers revise mode (archived to fix-review-{ts}.md after consumption)\n├── fix-review-{ts}.md           ← (Post-revise) Archived review files preserved for audit\n└── revision-notes.md            ← (Revise mode only) Audit trail of accept\u002Freject per review point\n```\n\nThe presence or absence of intermediate files signals which path ran:\n- **Full run**: fixA, fixB, fixC, reviews, reconciliation-notes, fix-plan.md\n- **Convergence run** (A and B agreed): fixA, fixB, fix-plan.md only\n- **Revise run**: fix-plan.md (overwritten v2), revision-notes.md\n- **Blocked run** (INSUFFICIENT EVIDENCE diagnosis): fix-plan.md only with BLOCKED status\n\n---\n\n## Reference Files\n\n| File | When to read | Purpose |\n|---|---|---|\n| `references\u002Fagent-teams-workflow.md` | Before orchestrating | Exact tool-call sequence for all rounds (full and revise) |\n| `references\u002Ffix-plan-format.md` | When building planner\u002Fsynthesizer prompts | Working artifact template for fixA\u002FfixB\u002FfixC |\n| `references\u002Ffix-plan-final-format.md` | When building reconciler\u002Freviser prompts | Final fix-plan.md template (matches structure above) |\n| `references\u002Fsubagent-fallback.md` | Only if Teams is unavailable | Task-based fallback with file coordination |\n| `agents\u002Ffix-planner.md` | Building A\u002FB prompts | Planner role + strategy assignment + diagnosis-trust requirement + bias mitigations |\n| `agents\u002Ffixp-synthesizer.md` | Building C's Round 2 prompt | Synthesis role with 3-file output spec |\n| `agents\u002Ffixp-critic.md` | Building Round 3 messages | Critique guidance |\n| `agents\u002Ffixp-reconciler.md` | Building Round 4 message | Bias-aware reconciliation + fix-plan.md spec |\n| `agents\u002Ffixp-reviser.md` | Building revise-mode prompt | Single-agent revise role + revision-notes.md spec |\n\n## Agent Roles Summary\n\n| Agent | File | Used in | Purpose |\n|---|---|---|---|\n| Planner | `agents\u002Ffix-planner.md` | Round 1 (A, B) | Independent fix planning with assigned strategy + diagnosis-trust requirement |\n| Synthesizer | `agents\u002Ffixp-synthesizer.md` | Round 2 (C) | Independent verification, synthesis, isolated review files |\n| Critic | `agents\u002Ffixp-critic.md` | Round 3 (A, B) | Review own isolated critique, defend or concede |\n| Reconciler | `agents\u002Ffixp-reconciler.md` | Round 4 (C) | Bias-aware reconciliation + final fix-plan.md |\n| Reviser | `agents\u002Ffixp-reviser.md` | Round R (revise mode) | Single-agent incorporation of fix-review feedback into v2 |\n",{"name":5,"description":7},"main","50bb36677eced958128cea262c304bf9ceee4d4e","skills\u002Fadversarial-fix-plan","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit","https:\u002F\u002Fgithub.com\u002FSirTheOracle","2026-10-20 00:50:37",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add SirTheOracle\u002Fforge-toolkit --skill adversarial-fix-plan",{"tool":55,"command":56},"bunx","bunx skills add SirTheOracle\u002Fforge-toolkit --skill adversarial-fix-plan",{"tool":58,"command":59},"pnpm","pnpm dlx skills add SirTheOracle\u002Fforge-toolkit --skill adversarial-fix-plan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002FSKILL.md",true,[63,69,73,77,81,85,89,93,97],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"agents\u002Ffix-planner.md","REFERENCE","参考文档",7853,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002Fagents\u002Ffix-planner.md",{"path":70,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":71,"sourceHtmlUrl":72},"agents\u002Ffixp-critic.md",4667,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002Fagents\u002Ffixp-critic.md",{"path":74,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":75,"sourceHtmlUrl":76},"agents\u002Ffixp-reconciler.md",5734,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002Fagents\u002Ffixp-reconciler.md",{"path":78,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":79,"sourceHtmlUrl":80},"agents\u002Ffixp-reviser.md",5320,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002Fagents\u002Ffixp-reviser.md",{"path":82,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":83,"sourceHtmlUrl":84},"agents\u002Ffixp-synthesizer.md",7945,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002Fagents\u002Ffixp-synthesizer.md",{"path":86,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fagent-teams-workflow.md",19371,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002Freferences\u002Fagent-teams-workflow.md",{"path":90,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Ffix-plan-final-format.md",6498,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002Freferences\u002Ffix-plan-final-format.md",{"path":94,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Ffix-plan-format.md",7262,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002Freferences\u002Ffix-plan-format.md",{"path":98,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fsubagent-fallback.md",10796,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fadversarial-fix-plan\u002Freferences\u002Fsubagent-fallback.md",[102,128,149,169,190,207],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":38},"01M70FS350DG1MT6NBPYRPBFBQ","forge-orchestrator","tmux-based orchestrator for multi-agent building. Coordinates work across Claude Code and two Codex workers via forge-bridge. Translates user requests into dispatched tasks with structured audit logging. Replaces forge-dispatch, forge-state.yml, and stage-routing-map.yml.","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fforge-orchestrator\u002FSKILL.md",[],[109,110,111,112,113,31,114,115,116,117,118,119,120,121,122,123,124,125,126,127],"forge","orchestrator","forge orchestrator","bridge","map","tasks","across","work","audit","multi-agent","logging","tmux","for","audit logging","workers","stage","with","multi","state",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":38},"01M70FRYFZC51YWHVNNS3862PY","forge-fix-runner","Drain the GitHub `forge-fix` issue queue through the forge fix pipeline, one service at a time. Tallies actionable issues worst-first, scouts a service into a routing plan (clusters + quick\u002Ffull tiers), gets human approval, then dispatches fixes (quick = dispatched fix-code; full = forge-pipeline), gating every `Closes #N` on per-issue verification. Trigger when the user wants to fix triaged QA issues, \"work the forge-fix queue\", or \"run the fix runner\".","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fforge-fix-runner\u002FSKILL.md",[],[135,21,109,136,137,34,138,139,140,141,142,143,31,144,116,18,145,146,147,148],"runner","forge fix runner","quick","actionable","time","issues","qa","gating","when","verification","human","run","at","issue",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":38},"01M70FRVVW3JAGQQK3FFR2VYRC","forge-coder","Procedural coding skill. Reads implementation.md, validates diffs against the codebase, applies changes in execution order, runs tests after each commit group, and produces a coder-report.md artifact.","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fforge-coder\u002FSKILL.md",[],[109,156,157,158,159,160,161,162,163,164,165,166,167,168],"forge coder","coder","diffs","tests","execution","commit","changes","artifact","procedural","report","codebase","implementation","coding",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":38},"01M70FRRYF6E22ECC8AGYYJEQ7","fix-reproducer","Optional first stage of the fix-pipeline. Verifies a reported bug is reproducible and captures deterministic repro steps, environment state, and evidence. Single procedural executor — does not spawn sub-agents and does not diagnose. Branches by environment: dev path runs the bug locally; prod path gathers observational evidence from the deployed environment. Always writes repro.md, even on NOT REPRODUCED. Trigger when the user invokes a fix-pipeline with the reproduce step enabled.","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ffix-reproducer\u002FSKILL.md",[],[176,177,21,178,179,180,181,34,182,183,184,185,186,187,188,143,124,125,127,189],"reproducer","fix reproducer","deterministic","evidence","executor","diagnose","Reproducible","environment","trigger","branches","dev","single","repro","first",{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":38},"01M70FRN8THYBT2DJVX99XQ3CM","fix-plan-reviewer","Single-agent adversarial reviewer for fix plans. Reads diagnosis.md and fix-plan.md, verifies the plan actually addresses the diagnosed cause, attacks the plan from multiple angles (cause coverage, defense adequacy, scope correctness, regression risk, rollback integrity, test plan integrity, risk honesty), and produces fix-review.md with severity-rated issues. Does NOT propose fixes for the issues — that is the revise mode of adversarial-fix-plan. Does NOT re-investigate the diagnosis. Trigger as the review stage of a fix-pipeline, after adversarial-fix-plan has produced fix-plan.md.","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ffix-plan-reviewer\u002FSKILL.md",[],[197,21,198,18,199,200,201,202,34,33,32,140,30,27,203,204,205,25,206,22],"fix plan reviewer","reviewer","plan reviewer","coverage","scope","regression","defense","integrity","addresses","attacks",{"skillNo":208,"name":209,"nameZh":6,"description":210,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":211,"categories":212,"keywords":213,"publishedAt":38},"01M70FRHGG6HN0VW483NDKX161","fix-coder","Mechanical single-executor that applies a vetted fix plan to the codebase. Reads fix-plan.md (the Changes, Defenses, and Test Plan sections), translates file-level changes into concrete diffs, applies them, runs the test plan, validates that the bug is no longer reproducible (dev) or that the test exercising the failing path passes (prod), and produces a single fix commit. Stays strictly in scope: does NOT modify the plan, does NOT re-investigate, does NOT touch files outside the plan. Always writes fix-coder-report.md, even on failure. Trigger as the implementation stage of a fix-pipeline, after fix-plan-reviewer has approved fix-plan.md.","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ffix-coder\u002FSKILL.md",[],[21,214,157,180,201,34,33,215,216,158,217,161,198,18,26,218,22,219,182,184],"fix coder","failing","mechanical","files","path","test plan"]