From forge
Use when the user types /forge <subcommand> or /forge <task description>. Unified dispatcher entry point that routes to 32 sub-skills via lib instructions.md. Handles tier routing, branch protection, and phase auto-advance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/forge:forgeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
! Current context: read `.forge/status.md` for active task, phase, and branch.
lib/abort/instructions.mdlib/abort/references/cmux.mdlib/abort/references/function-contracts.mdlib/accept/instructions.mdlib/accept/references/boundary-with-test.mdlib/accept/references/runners.mdlib/accept/references/scenario-format.mdlib/build-light/instructions.mdlib/build-light/references/function-contracts.mdlib/build/instructions.mdlib/build/references/anti-drift.mdlib/build/references/branch-gate.mdlib/build/references/bugfix-method-library.mdlib/build/references/bugfix-mode.mdlib/build/references/change-summary.mdlib/build/references/closure-probes.mdlib/build/references/cmux.mdlib/build/references/context-budget.mdlib/build/references/context-exhaustion.mdlib/build/references/dependency-discipline.md! Current context: read .forge/status.md for active task, phase, and branch.
Forge's sole registered skill. All 32 sub-skills live under skills/forge/lib/<sub>/instructions.md and are dispatched through the 10-step chokepoint in src/forge-dispatcher.ts. Users invoke via /forge <sub> (direct) or /forge <description> (router-analyzed).
build review
plan build review test ship
decide spec plan build review test ship learn
debug loop status resume abort zoom-out recap grill storm mutate router verify accept refactor fix pack decide-teams build-light fix-conflicts control-cli control-ui forge-cmux-browser-qa forge-cmux-loop-signals forge-cmux-sidebar-sync
Tier is logical, not physical — a sub can appear in multiple tiers. Routing logic in skills/forge/lib/router/instructions.md.
Every /forge <topic> invocation follows this sequence (implemented in src/forge-dispatcher.ts,不可绕过):
.forge/config.md skills.dispatcher_mode (default: collapsed)${CLAUDE_PLUGIN_ROOT} ?? cwd dual-mode (R2.2)manifest.json sha256 (R2.6)allowed_tools (R2.3)fork or inline per R3.5 table<untrusted> fence (R2.4)Agent (fork) or Read (inline)${CLAUDE_PLUGIN_DATA}/forge/audit/dispatch.log (R2.7)Each sub's dispatch_mode is declared in skills/forge/lib/<sub>/instructions.md frontmatter. registry.toml is the derived index verified by CI.
Agent tool spawns fresh subagent. For: learn, decide, decide-teams, debug, grill, storm, recap, mutate, zoom-out, review, build, plan, spec, ship, test, loop, accept, pack.Reads instructions then executes. For: build-light, router, status, resume, abort, verify, refactor, fix, fix-conflicts, control-cli, control-ui.Complete allocation: spec R3.5 table.
See skills/forge/lib/router/instructions.md for full routing logic. Summary:
| Condition | Command Sequence |
|---|---|
| Light (≤1 file, ≤20 lines) | build → review |
| Standard (clear req or spec exists) | plan → build → review → test → ship |
| Full (new service / auth / unclear) | decide → spec → plan → build → review → test → ship → learn |
User override takes precedence. No tier-skipping within a sequence.
.forge/config.md → skills.dispatcher_mode:
| Value | Behavior |
|---|---|
collapsed (default) | Reads skills/forge/lib/<sub>/instructions.md |
legacy | v2.4 compatibility (migration-period only) |
Every dispatch appends a tamper-evident HMAC-chained NDJSON entry to ${CLAUDE_PLUGIN_DATA}/forge/audit/dispatch.log (outside workspace). See src/forge-dispatcher/audit-log.ts.
.kiro/specs/forge-single-entry-skills-collapse/spec.md (locked).kiro/specs/forge-single-entry-skills-collapse/plan.md (approved)src/forge-dispatcher.tsnpx claudepluginhub kkkman22/forge --plugin forgeGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.