forge-spec
Skill2 starsChanged 5 months agoMITView on GitHub
Run Stage 4 of the Forge pipeline — technical specification. Use when the
2 other projects use a version of this.
Adopted by
Most recently taken up by
- brightstack/forgetheir own version, first seen Nov 8, 2026
- DailenG/forge-workflowtheir own version, first seen Jul 25, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- brightstack/forge★ 13same name
- DailenG/forge-workflow★ 0same name
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 repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- forge-opencode/CLAUDE.mdCLAUDE.md
- forge-adoptSkill
- forge-arch-proSkill
- forge-archSkill
- forge-autopilotSkill
- forge-autopilot-stopSkill
- forge-build-proSkill
- forge-buildSkill
- forge-deploySkill
- forge-doctorSkill
- dreamer-runSkill
- forge-evalSkill
- forge-feedbackSkill
- flowSkill
- forge-force-advanceSkill
- graduateSkill
- health-checkSkill
- forge-initSkill
- forge-monitorSkill
- forge-orchestrateSkill
- forge-plan-proSkill
- forge-planSkill
- preflightSkill
- forge-product-proSkill
- forge-productSkill
- forge-releaseSkill
- forge-resolveSkill
- forge-resumeSkill
- forge-retroSkill
- forge-reviewSkill
- forge-rulesSkill
- forge-set-profileSkill
- skill-creatorSkill
- forge-spec-proSkill
- forge-sprint-proSkill
- forge-sprintSkill
- forge-srs-proSkill
- forge-srsSkill
- forge-statusSkill
- forge-trace-matrixSkill
- forge-uninstallSkill
- forge-validateSkill
- watchSkill
- watch-stopSkill
- forge-whySkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 1 is distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
If it exits non-zero, STOP: present its message verbatim and do not proceed — the prior stage must be completed first (or use …
- Very specific: line 30
Read pipeline/state.md — confirm Forge project.
- Distinctive: line 32
If stage > 4, ask if the user wants to revise the spec.
- Very specific: line 33
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/load-profile.py --cwd .
- Very specific: line 37
Read agents/spec-writer.md to load the Spec Writer persona.
- Very specific: line 39
Read the architecture in either layout (single-file or split per REQ-LARGEDOC-001) via the resolver — never hard-code the .md path:
- Very specific: line 45
Read pipeline/01-srs/srs.md for REQ-ID traceability.
- Very specific: line 46
Follow the Spec Writer workflow: enumerate interfaces, define types, write API specs, trace to REQ-IDs.
- Very specific: line 48
Write pipeline/04-spec/technical-spec.md and any profile-specified extra artifacts per the Output Contract.
- Very specific: line 49
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py advance --to 4 to mark Stage 4 active.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/forge:spec — Technical Specification
When to Use
- User says
/forge:spec - User wants precise interface definitions, API contracts, type schemas, or behavioral contracts
- Working in a Forge project at Stage 3 or 4
Pre-flight Check
Entry gate (REQ-GATE-ENTRY-001) — before adopting the persona, verify the prior stage's artifact exists:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py preflight --stage 4If it exits non-zero, STOP: present its message verbatim and do not proceed —
the prior stage must be completed first (or use /forge:force-advance to skip
intentionally).
- Read
pipeline/state.md— confirm Forge project. - Confirm
pipeline/03-architecture/architecture.mdexists. If not: "Complete Stage 3 first (/forge:arch)." - If stage > 4, ask if the user wants to revise the spec.
- Run
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/load-profile.py --cwd . --stage 4to load project-type overrides. Note anyadditional_artifacts(e.g., ML: model-spec.md, data-spec.md) andadditional_concerns(e.g., library: public-vs-internal API, semver commitment, bundle budget).
Steps
- Read
agents/spec-writer.mdto load the Spec Writer persona. - Adopt that persona — you are now the Spec Writer.
- Read the architecture in either layout (single-file or split per
REQ-LARGEDOC-001) via the resolver — never hard-code the
.mdpath:
Also read its ADRs.python3 ${CLAUDE_PLUGIN_ROOT}/scripts/read-doc.py pipeline/03-architecture/architecture - Read
pipeline/01-srs/srs.mdfor REQ-ID traceability. - Follow the Spec Writer workflow: enumerate interfaces, define types, write API specs, trace to REQ-IDs. Add the profile's
additional_artifactsand addressadditional_concernsin the spec. - Outline, then confirm (REQ-INTERACTIVE-CONFIRM-001). Before generating the full technical spec, present a short OUTLINE / table of contents — the module breakdown, the interfaces and endpoints you intend to specify, the data schemas, and any profile extra artifacts. Then PAUSE and ask the user to confirm ("Shall I write the full spec, or adjust the outline first?"). Do not write the full document until the user confirms — this gives them a cheap chance to redirect before the expensive generation.
- Write
pipeline/04-spec/technical-spec.mdand any profile-specified extra artifacts per the Output Contract. If the spec grows large, split it perreferences/large-doc-layout.md(atechnical-spec/directory with anindex.mdmanifest); downstream stages read it throughread-doc.pyeither way. - Run
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py advance --to 4to mark Stage 4 active.
Verification
After running, confirm:
pipeline/04-spec/technical-spec.mdexists with typed interfaces and REQ-ID tracespipeline/state.mdshowscurrent_stage: 4
Next Step
Derive the hint from the canonical stage table — never hardcode it (REQ-NEXTHINT-001, single source of truth). Run the helper and present its output to the user verbatim:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py next-hint --stage 4Does 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.

