agentleFS
alanvaa06alanvaa06/forge-master/skills/forge/SKILL.md

forge

Skill2 starsChanged 5 months agoMITView on GitHub

Umbrella entry point for the full forge-master pipeline — chains prd-design, optional spec-design, plan-design, and run in one invocation while keeping every human gate intact. Detects existing artifacts (PRD, spec, plan) and offers to enter at the right stage instead of redoing work. Use when the user says "/forge-master:forge", "forge this", or wants the whole idea-to-execution loop from a single command.

78 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use forge-ship, forge-review and 10 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.
  • redteamlifeSkill

    forge-ship

    Use when the user asks to merge, release, promote, reconcile, or close out work in a repo containing `docs/forge/` or governed by FORGE. Not for per-task commits; those complete inside forge-execute-task.

    Also in 6 projects that use this

  • tonmoy007Skill

    forge-review

    Run a multi-dimensional parallel code review over the current change.

    Also in 8 projects that use this

  • weselbenSkill

    forge-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

  • DailenGSkill

    forge-design

    Design, UX, and polish discipline for the forge lifecycle. Covers the design tier, the design brief in docs/DESIGN.md, UX requirements and their verification methods, the per-slice design pass, the UX defect register, and the release polish pass. Load whenever work touches a user-facing surface (GUI, terminal, library API, or operated service), whenever a UX observation needs disposing of, and whenever a release is in reach.

    Also in 3 projects that use this

  • DshamirSkill

    forge-plan

    Takes analysis.json + budget cap → derives the full phase sequence, hyperparameters, instance type, cost estimate, and acceptance thresholds. Emits plan.md (the single human gate document) and plan.json (the machine-readable spec that dispatch-v2 consumes). Refuses to plan if estimated cost exceeds budget×1.2.

    Also in 4 projects that use this

  • tonmoy007Skill

    forge-build

    Run Stage 6 of the Forge pipeline — implementation. Use when the user says

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 67 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting from scratch, list what already exists and ask the user where to enter:

    line 12
  2. Very specific:

    After PRD approval, ask the spec-or-plan question exactly as prd-design/prd-import specify — a lettered list with one option marked …

    line 28
  3. Distinctive:

    Never skip a gate: No stage starts without the previous stage's explicit user approval, even if the user seems eager — the gates ARE the …

    line 37
  4. Very specific:

    If the user aborts at any gate, stop cleanly and say what artifact exists and how to re-enter later (/forge-master:forge re-detects in …

    line 39

“Common” is measured: kept by at least 6 in 10 of the 67 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

forge — Full Pipeline (Umbrella)

You chain the four stages below in order. You are a dispatcher, not a shortcut: never skip a gate — each stage's human approval is required before the next stage starts, exactly as if the user had invoked the stage skill directly.

Stage 0 — Detect existing artifacts (enter at the right stage)

Before starting from scratch, list what already exists and ask the user where to enter:

  • docs/forge/prd/NNN-*.md present and relevant to the user's request → offer to reuse the existing artifact and enter at Stage 2 (or Stage 1.5) instead of redoing the PRD. If the user provided an external/unnormalized spec document, route Stage 1 through prd-import instead of prd-design.
  • docs/forge/specs/spec-NNN.md present for that PRD → offer to enter at Stage 2.
  • docs/forge/plans/plan-NNN.md present and approved → offer to enter at Stage 3.
  • Partial run state for that plan (docs/forge/runs/plan-NNN.state.md with non-terminal entries, or plan entries a pre-0.17 run left in docs/context/todo.md) → this is a resume; go straight to Stage 3 (run INIT handles resume detection). Under worktree isolation the state lives in the run worktree: check git worktree list for ../<repo-dirname>-forge-NNN.

Present the entry point as a lettered list of only the stages that apply given what you found, mark one Recommended with a concrete why (the furthest-along stage matching the request — reusing approved artifacts beats redoing them), and let the user pick by letter. Never assume the entry stage. Example:

Found docs/forge/prd/002-billing.md (approved) and spec-002.md. Enter at: a) Stage 2 — plan-design using the existing PRD + spec — Recommended, both artifacts already approved b) Stage 1.5 — revise the spec first c) Stage 1 — start a fresh PRD (ignores existing)

Stage 1 — PRD (human gate 1)

Invoke the prd-design skill (or prd-import for an existing document) and follow it fully — divergent exploration, convergent interview, hard AC rules. Stop at its approval gate. Do not continue until the user explicitly approves the PRD.

Stage 1.5 — Spec (optional, human gate 1.5)

After PRD approval, ask the spec-or-plan question exactly as prd-design/prd-import specify — a lettered list with one option marked Recommended, user decides. If the user chooses a spec, invoke the spec-design skill and stop at its approval gate.

Stage 2 — Plan (human gate 2)

Invoke the plan-design skill and follow it fully — decomposition, tagging, total coverage proof. For a large or heavy plan, optionally hand off to the budget skill before approval to estimate token cost and fill phase_budget / run_budget. Stop at the approval gate. The approved plan (budgets included) is the frozen execution contract.

Stage 3 — Run

Invoke the run skill. From here the loop's own autonomy contract governs: autonomous mode asks nothing mid-run; attended mode pauses only at its defined points. The pipeline ends with the run's final report.

Rules

  • Never skip a gate. No stage starts without the previous stage's explicit user approval, even if the user seems eager — the gates ARE the product.
  • One stage at a time; never pre-generate a later stage's artifact while an earlier gate is open.
  • If the user aborts at any gate, stop cleanly and say what artifact exists and how to re-enter later (/forge-master:forge re-detects in Stage 0).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.