/forge:fg-cleanupfrom forge
Retires stale or superseded ADRs from the active decision set by proposing candidates with rationale, then moving them to .forge/adr/retired/ on approval. On-demand utility for ADR cleanup.
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 (fg-ask → fg-run → fg-done). It is an on-demand utility — like fg-map and fg-merge — that tends the permanent-doc fuel: it retires ADRs that no longer apply so the active decision set in .forge/adr/ stays current, while preserving the why of every past decision. Sealing a finished task (closing its STATUS, archiving, emptying the active slot) is fg-done, not this skill (see ADR-0012 for why the name moved here).
Language: This skill file is authored in English, but you MUST write every message shown to the user — questions, menus, status/next-step lines, and handoff text — in the user's language (detect it from the user's own messages), never mirroring this file's English. The candidate list, rationale, and any confirmation question 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.
Forge root: ADRs live under the resolved forge root — .forge/adr/ on the default branch, .forge/branch/<branch>/adr/ 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 moving any ADR.
The utterance forge cleanup used to seal a finished task — that job is now fg-done. So before doing anything, open with one line, in the user's language, so they aren't surprised: "This is the ADR-retirement utility — it retires stale ADRs, it does not seal a task (use fg-done for that). Proceed?" If they actually wanted to seal a task, point them to fg-done and stop.
Retirement is human-approved, never automatic. Whether an ADR "no longer applies" is a meaning judgment; an LLM deciding it alone risks killing a live decision. So this skill only proposes, with evidence — the same restraint as fg-merge's "mechanical auto, genuine conflict asks the human."
.forge/adr/*.md at the top level (not retired/). For each, look for retirement signals: another ADR that supersedes/contradicts it, a ## Status already reading superseded by ADR <id> (ADR-FORMAT.md's "Superseding an ADR"), or a decision the codebase has clearly moved past.For each approved ADR:
.forge/adr/retired/<id>-slug.md — same filename, keep the directory under adr/ (so the !.forge/adr/ gitignore whitelist still tracks it; create retired/ lazily on first retirement).## Status section (directly under the title, per ADR-FORMAT.md; add it if missing): superseded by ADR <id> when there is a successor, or retired (<reason>) when the decision simply no longer applies (no successor required). If the file also carries a legacy top-of-file Status: … line, remove it — the ## Status section replaces it, and keeping both leaves two status lines that can disagree.0003 even under retired/. New ADRs no longer mint from a max+1 counter — they use time-based IDs (YYMMDD-HHMMSS, a letter only on a same-second collision; see ADR-FORMAT.md), so there is no "gap" left behind by retirement; but a retired ID (whether a grandfathered NNNN or a time-based one) is still never reused — when minting, the retired/ scan must be included to avoid a collision. Reconciling a merge-time ID collision (next-free-letter, not a cascade renumber) is fg-merge's job for branch merges — a different situation — and is not done here.ADR-0003 or ADR-260716-14a), so moving the file to retired/ does not break those citations — path rewriting (fg-merge style) would be over-engineering.Retired ADRs drop out of fg-ask's grilling fuel: fg-ask reads only .forge/adr/*.md (top level) as source of truth and does not read retired/. The history stays on disk for archaeology ("why did we decide that back then?") — retirement is removal from the active set, not deletion.
forge cleanup
│
▼
Confirm intent (this retires ADRs; sealing a task is fg-done) ── wanted to seal? ──▶ point to fg-done → stop
│ proceed
▼
Scan .forge/adr/*.md (top level) → propose retirement candidates with rationale (or "none")
│
▼
Human approves a subset (possibly none)
│ none ──▶ report "nothing retired" → end
│ some
▼
For each: move → .forge/adr/retired/<id>-slug.md + ## Status (superseded by ADR <id> / retired (reason))
│ (numbers unchanged, not reused; no cross-ref rewrite; nothing deleted)
▼
Report what was retired and where → end
.forge/adr/<id>-slug.md → .forge/adr/retired/<id>-slug.md and sets their ## Status. Lazy-creates retired/.plan/run/STATUS/backlog/done) is touched. This is a permanent-doc utility, not a loop stage..forge/adr/ (including retired/) is git-tracked via the !.forge/adr/ whitelist, so retirements are committed like any other ADR change.For the ADR format, read ${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/skills/fg-ask/ADR-FORMAT.md (skill-relative ../fg-ask/ADR-FORMAT.md) — do not copy it here.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gyuha/forge --plugin forge25 skills in this plugin
/fg-adversarial-reviewOptional adversarial review between fg-run and the seal (fg-done) — a reviewer assumes the result is WRONG and hunts for evidence across six lenses (failure points, hidden assumptions, misread requirements, security/perf/data-loss, unexpected misuse, weak decisions), fanning out as parallel subagents; fix-needed findings become a fix-forward plan on your approval. Outside the loop, never a seal gate, always skipped in fg-next all / fg-loop. Use in contexts like 'adversarial review', '적대적 리뷰', '이 결과 공격적으로 검토', '허점 찾아줘', 'red team this'./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-askGrilling session that stress-tests your plan against the project's domain model, terminology, and documented decisions, updating CONTEXT.md/ADRs inline. The forge loop's entry point (the plan-grilling stage), always conversational. Use to start or refine a task — "start a new task", "start with forge", "let's work on this", "refine the plan", '새 작업 시작', '계획 다듬자', '이 계획 그릴링해줘'./fg-configUnified settings surface for forge — every key in .forge/config.json: `simple` (auto-seal — fg-run verifies then seals in the same turn, no questions), `eco` (sonnet-capped subagents + ECO.md discipline), `tdd` (test-first default), `driveCommit`/`driveCommitMessage`, `defaultBranch`, `monitorRetention`. `fg-config` (no arg) shows all and offers changes via a menu; `fg-config <key> <value>` sets one directly. Outside the loop. Use in contexts like 'forge config', '설정', 'simple mode', '심플 모드', 'eco on', 'eco off', '에코 모드', 'tdd on', 'tdd off', 'TDD 켜', 'TDD 꺼'./fg-debugConversational diagnosis for hard bugs and performance regressions, vendored from mattpocock/skills diagnosing-bugs. Build a red-capable loop, reproduce and minimise, rank hypotheses with the human, then instrument. Diagnosis only — an active verified failure returns to fg-run fix-and-re-run; an independent diagnosis routes a trivial fix to fg-quick or an approved non-trivial fix to a new plan. Always skipped in fg-next all / fg-loop. Use for 'debug this', 'diagnose', '디버깅해줘', '버그 잡아줘', '왜 안 되지', '왜 느리지'.Other plugins' skills for the same job