forge
Skill18 starsChanged 8 months agoMITView on GitHub
Spec-driven development workflow that takes a change from problem to shipped, verified code in four phases: specify, design, plan, execute — plus a `fix` command to correct course mid-stream. Auto-sizes from one-line fixes to multi-repo refactors. Invoke with `/forge specify|design|plan|execute|fix`. TRIGGER when: the user asks to ship/build/implement a feature, write a PRD or spec or requirements, design architecture, write a technical design, break work into tasks or an implementation plan, run TDD or write acceptance criteria, or correct/adjust an in-flight change — a misstated requirement, a design or implementation detail that's wrong, or a bug found while testing. SKIP for: trivial one-off edits the user already has fully specified, pure code review, or questions about how forge itself works.
54 other projects use a version of this.
Adopted by
Most recently taken up by
- pche-broken-artist/forge-of-thoughttheir own version, first seen Oct 4, 2026
- Rynaro/magicitetheir own version, first seen Sep 29, 2026
- brightstack/forgetheir own version, first seen Sep 29, 2026
- venhdev/skillstheir own version, first seen Sep 28, 2026
- MohammedAtya/guardrail-forgetheir own version, first seen Sep 27, 2026
- SubliminalCoding/bilbroswagginz-skillstheir own version, first seen Sep 27, 2026
Used with
Projects with it also use forge-docs, forge-review and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
weselbenSkillforge-docs
Load before code changes, before writing docs or an ADR, when a user question exposes a missing how-to, and when closing a chunk of work; also loaded by forge after each squash-merge and by deep-research after a report.
Also in 3 projects that use this
tonmoy007Skillforge-review
Run a multi-dimensional parallel code review over the current change.
Also in 3 projects that use this
yike-gunshiSkillforge-ship
发布上线:PR only(建 PR 即停)或 Full ship(合并 PR + 同步本地基础分支);测试失败不发布、不 force push,状态汇报严格区分提交/推送/合并/部署。 触发方式:用户说"ship"、"发布"、"合并上线"、"发 PR"。
Also in 3 projects that use this
WordPressSkillblueprint
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps/resources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.
Also in 3 projects that use this
AnthropicSkillbrief
Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.
Also in 3 projects that use this
OpenAISkillaudit
Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.
Also in 4 projects that use this
Other versions54 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 54
- cwinvestments/memstack★ 422same name
- swyxio/skills★ 171same name
- simota/agent-skills★ 87same name
- GadaaLabs/claude-code-on-steroids★ 67same name
- alp82/forge★ 38same name
- TT-Wang/forge★ 34same name
- MetalLegBob/solana-vibes-kit★ 19same name
- Webba-Creative-Technologies/forge★ 19same name
- kecoma1/MQL5-SKILLS★ 17same name
- yz5e/agent-skills★ 17same name
44 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- commit-message-generatorSkill
- create-adrSkill
- create-rfcSkill
- diagnoseSkill
- grillSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 44 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Read the first argument as the phase verb.
- Distinctive: line 44
If no verb is given, infer the phase from the request and confirm it.
- Very specific: line 63
Every change is one of three sizes.
- Very specific: line 94
If the resolved root points inside another repo's .specs/ (e.g.
- Very specific: line 98
All work for a change lives under ./.specs/<slug>/ (create it if missing):
- Distinctive: line 134
Subagents are stateless: Put everything they need in the prompt (file paths, section refs, constraints).
- Distinctive: line 142
Every subagent dispatch picks two dials.
- Distinctive: line 200
Never claim a task or gate passed without running it.
“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Forge
Forge runs spec-driven development as four phases. You invoke one phase at a time. Each
phase does its work, updates shared state, and recommends (but does not run) the next
phase. A fifth command, fix, re-enters the flow to correct course at any layer. Every
phase's depth auto-sizes to the change — see Sizing.
/forge specify <name> Understand the problem + capture requirements → spec.md
/forge design Architecture, contracts, verification gates → design.md
/forge plan Atomic tasks, dependencies, AC traces → plan.md
/forge execute Implement, then run independent verifiers → working code
/forge fix <change> Correct course mid-stream, keep the chain aligned → aligned artifacts + codeDispatch
Read the first argument as the phase verb. Read the matching reference file fully before acting — it is the step-by-step playbook for that phase.
| Verb | Read | Produces |
specify | references/specify.md (+ references/review.md) | ./.specs/<slug>/spec.md |
design | references/design.md (+ references/review.md) | ./.specs/<slug>/design.md |
plan | references/plan.md | ./.specs/<slug>/plan.md |
execute | references/execute.md (+ references/verification.md) | code + commits |
fix | references/fix.md | re-aligned artifacts + code |
If no verb is given, infer the phase from the request and confirm it. Never fail because a verb is missing or unknown. Common mappings:
| Request pattern | Phase |
| "write a PRD", "what should this do", problem with no proposed solution | specify |
| "design this", "how should we build X", architecture question | design |
| "break this into tasks", "plan the work" | plan |
| "implement X", "build this", spec + plan already exist | execute |
| "this detail is wrong", "correct course", "I don't like this design", "found a bug while testing", change to an in-flight spec/design/plan/code | fix |
specify takes a feature name. If absent, ask for one and derive a kebab-case slug.
Forge does not orchestrate phase transitions — you do. Start at any phase. A phase that finds no earlier artifacts gathers the minimum context it needs; each reference describes its own fallback.
Sizing
Every change is one of three sizes. The size controls how deep each phase goes and
which phases are needed at all. See references/sizing.md for the full rubric.
| Size | Roughly | Pipeline |
| quick | one file/function, no new interface/schema/dep | inline spec → execute (skip design + plan) |
| standard | one component/module, a few files | full spec → light design → phased plan → execute |
| complex | crosses components/repos, new subsystem, ambiguous | full pipeline, all gates |
The first phase to run picks the size and writes it to state.md. Size can only go up.
Any later phase may promote it with a logged reason. A downgrade requires the user's
confirmation — ratcheting prevents work from quietly skipping rigor a later phase
already showed it needed. Each phase ends by listing which downstream phases the
current size needs or lets you skip.
Artifacts and state
Artifact root (session CWD)
All ./.specs/* paths in this skill resolve against the session CWD — the
directory the agent was invoked in — not the shell's current directory at
the moment of the write. Subsequent cds do not move the artifact root.
At the start of every phase, resolve the artifact root once and reuse it.
Capture the session CWD as an absolute path (pwd at the very first Bash call
of the session, or the harness-provided starting directory) and set
SPECS_ROOT="<abs>/.specs". Every read, write, mkdir, and ls inside this
skill must go through $SPECS_ROOT/.... Never use a bare .specs/... after
that resolution — a bare path would be interpreted against the current shell
CWD and drift into a subfolder.
If the resolved root points inside another repo's .specs/ (e.g. the user
invoked the skill from a nested package), stop and confirm with the user
before writing.
All work for a change lives under ./.specs/<slug>/ (create it if missing):
./.specs/<slug>/spec.md what & why (requirements, acceptance criteria, scope)
./.specs/<slug>/design.md how (architecture, contracts, verification gates)
./.specs/<slug>/plan.md tasks grouped into phases (parallel within a phase, AC-traced)
./.specs/<slug>/state.md size, decisions log, task status, handoff — the source of truth
./.specs/<slug>/lessons.md what went wrong here and the rule going forwardTemplates for each are in templates/. state.md is the single source of truth.
Re-read it at the start of every phase. Do not assume the runtime preserves its own
internal state across phases — if it is not in state.md, it did not happen.
Acceptance criteria are written once, in spec.md, with stable IDs (PREFIX-NN).
Design, plan, and execute reference those IDs; they never restate the criterion text.
Lessons
Each change keeps its own ./.specs/<slug>/lessons.md with ## Standing Rules (short
imperatives, always loaded) and ## Log (tagged, append-only). Load it at the start of
every phase. Append only when something non-obvious was learned: a hack, a gotcha,
a corrected wrong assumption, a skipped gate. Routine success writes nothing. See
references/lessons.md.
Orchestration (canonical — references should cite, not restate)
- Use subagents for parallel or heavy work. They run in Claude Code and OpenCode. They keep the main agent's context small and give independent perspectives (execute's verifiers depend on this).
- Workflow is an optional speed-up for dispatching many subagents at once, where the runtime supports it. Plain sequential subagent calls always work as a backup. Never require Workflow.
- Match model tier and reasoning effort to the task — don't pay frontier rates for mechanical work. See Model & effort selection below. This is the primary cost lever.
- One level of delegation. Subagents do not spawn subagents.
- Subagents are stateless. Put everything they need in the prompt (file paths, section refs, constraints). Outputs over ~100 lines go to a file; return the path, not the content.
- Prefer
AskUserQuestionwhen available, with a recommended default per question. Fall back to a single plain-text question otherwise. Never bundle unrelated questions.
Model & effort selection (canonical — references cite, not restate)
Every subagent dispatch picks two dials. Set them explicitly per task; never let the whole fan-out default to the most expensive model. This is agent-agnostic — map the tiers to whatever your runtime exposes.
Tier — the model's capability class:
| Tier | Use for | Claude Code | OpenCode |
| economy | mechanical, well-scoped, low-ambiguity work with a clear pass/fail or a precedent to mirror | haiku | cheapest capable model configured |
| standard | ordinary implementation and verification needing moderate reasoning | sonnet | the default agent model |
| frontier | ambiguous synthesis, cross-cutting design, adversarial judgment, hard trade-offs | opus | strongest model configured |
Pass the tier via the runtime's per-subagent model control (model on the Agent tool
or Workflow agent(), model in a subagent definition's frontmatter, or the OpenCode
agent's model field). If a runtime exposes no per-subagent model control, skip this dial
and rely on effort alone — never block on it.
Effort — reasoning/thinking budget, where the runtime supports a reasoning-effort or
thinking-budget setting: low for mechanical tasks, medium for ordinary work, high
only for genuinely hard reasoning (adversarial refutation, ambiguous design). Where the
runtime has no effort dial, fold the intent into tier choice.
Defaults by work type (start here, adjust for the specific task):
| Work | Tier | Effort |
Read-only codebase scouting (specify), mirror-a-precedent implementer with a reuses pointer | economy | low |
Mechanical [P] implementer task with a clear task gate | economy | low–medium |
| Ordinary implementer task, most single-verifier runs | standard | medium |
| Design/architecture synthesis, plan decomposition for a complex change | frontier | high |
| Adversarial or cross-cutting verification (the AC-trace / integration verifier) | standard→frontier | high |
Size interacts with tier. A quick change should almost never dispatch a frontier
subagent; a complex change earns frontier for its design and adversarial gates but
still routes mechanical tasks to economy. When unsure between two tiers, pick the lower
and let a failed gate promote it — the same ratchet as sizing.
Universal rules (apply to every phase)
State hygiene
- Re-read
state.mdat the start of every phase. Write size, decisions, and status changes there as they happen, not at the end. Write surgically. Edit only the target section — replace the content between its
##header and the next##or end-of-file. Never regenerate the whole file or reorder sections; that silently clobbers append-only or update-in-place sections you did not mean to touch. Section write modes:Section Write mode ## Decisionsappend-only (never edit existing rows) ## Tasksupdate-in-place (status, evidence) ## Validation deltaclear-on-resolve ## Verification evidenceappend-on-PASS ## Handoffoverwrite
Honesty
- Never claim a task or gate passed without running it. Done means you saw it pass, not that you believe it would.
- Record honestly. Open questions, skipped gates, and assumptions stay visible. Never cover a gap with an invented answer.
Hand-off
- Each phase finishes, reports, and recommends the next verb — it never runs the
next phase. The one documented exception is
fix: for a contained correction it re-aligns the artifacts and runs the code delta end-to-end in the same invocation (seereferences/fix.md); a larger correction still only recommends the phase chain. /create-rfcand/create-adrare separate skills. Use/create-rfcwhen a significant decision needs stakeholder alignment; use/create-adrwhen an architectural choice deserves a standalone record. Reach for either at any point in the flow.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

