requirement-forge
Skill209 starsChanged 2 months agoMITView on GitHub
Generate structured feature specifications through a collaborative product interview. Acts as a senior PM and business analyst pair — arrives with a point of view, challenges scope, proposes options at every decision. Composes the requirement-quality atom for spec quality enforcement and collaborative-judgment for surfacing genuine decisions. Produces an epic/feature hierarchy in .lattice/requirements/ that serves as direct input to design-blueprint. Use when the user says 'forge requirements', 'write requirements', 'spec this feature', 'create a feature spec', 'define this epic', 'write a PRD', 'spec out what we are building', or 'requirement forge'.
We split this skill into the rules it gives an agent
34 rules. About 0 are common, 24 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈24
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Read and apply in order:
- Distinctive: line 26
Ask WHY before accepting WHAT: If the user states a solution without a problem, ask what user pain it solves.
- Distinctive: line 28
Propose at every decision: Never ask an open question without a view.
- Distinctive: line 29
Do not just listen and agree: When the user's framing is incomplete or inconsistent, say so and offer a better framing.
- Distinctive: line 35
When lines are found:
- Very specific: line 48
If no standards document is found at paths.requirement_standards: recommend requirement-forge-refiner as a one-time setup, then offer to …
- Distinctive: line 58
Add features to existing epic → Step 4
- Distinctive: line 59
Create new epic → Step 3
- Distinctive: line 60
Update a spec → Step 5
- Distinctive: line 63
STOP: Do not advance to Step 2 until all resume decisions are recorded.
- Distinctive: line 86
STOP: Do not advance to Step 3 (or Step 5 if fast path) until the synthesis is confirmed.
- Distinctive: line 96
Large product: if the list has 4+ epics or 15+ estimated features, propose a session focus — complete one epic fully before moving to …
- Distinctive: line 98
Ask: *"Does this epic structure reflect how you think about the product?"*
- Distinctive: line 100
STOP: Do not advance to Step 4 until the epic list is confirmed.
- Very specific: line 103
Create .lattice/requirements/, .lattice/requirements/epics/, and .lattice/requirements/features/ if they do not exist.
- Very specific: line 104
Write one .lattice/requirements/epics/{epic-slug}.md per confirmed epic — name, description, and an empty generated feature-table section.
- Very specific: line 105
Write .lattice/requirements/index.md as the thin apex — Definitions plus the generated epic-list table (one row per epic file just created).
- Very specific: line 106
Ensure .lattice/config.yaml has requirements_layout: sharded.
- Distinctive: line 118
Ask: *"Does this feature breakdown feel right for [Epic Name]?"*
- Distinctive: line 122
STOP: Do not advance to Step 5 until the feature list for every in-scope epic is confirmed.
- Distinctive: line 132
STOP: Do not begin scenarios until the frame is confirmed.
- Distinctive: line 136
After all scenarios: *"Does this fully cover [Feature Name]?
- Distinctive: line 138
STOP: Do not begin implementation slices until all scenarios are confirmed.
- Distinctive: line 140
After scenarios confirmed: propose 2–5 implementation slices in "what" order.
- Distinctive: line 142
STOP: Do not write the feature file until implementation slices are confirmed.
- Very specific: line 148
Write the confirmed feature file to .lattice/requirements/features/{feature-name}.md.
- Distinctive: line 150
STOP: Do not advance to the next feature until the current feature passes checks and is written.
- Distinctive: line 156
After all features for the current session scope are confirmed and written, regenerate the derived sections — never hand-edit them:
- Very specific: line 162
If source documents were provided during intake, add/update a ## Source Materials table mapping each document to the features derived from …
- Very specific: line 163
Add a ## Deferred Items section listing content intentionally excluded from the current feature set, with reasons.
- Very specific: line 164
If standards include §10 Domain Terminology, include a ## Glossary section in index.md populated from those terms (hand-authored, not …
- Distinctive: line 172
Phase 1 — Silent run (Steps 2–5): No confirmation gates. Log every non-obvious decision (granularity restructuring, contradiction …
- Distinctive: line 179
Do NOT pause for: naming choices, priority assignments, scope boundary judgment calls, or AC wording.
- Very specific: line 183
Phase 3 — Write: After confirmation, write all files, then run Step 6 to regenerate the derived views.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
Requirement Forge
Required Skills
Read and apply in order:
framework:requirement-quality— load requirement standards and enforce spec quality throughout (always)framework:collaborative-judgment— surface genuine judgment calls instead of silent assumptions (always)framework:knowledge-priming— ground feature language in actual project domain (conditional: skip if no codebase exists yet)
Mode Detection
Collaborative (default) — confirmation gate at each phase. Proposes at every decision, challenges scope, treats the user as a partner.
Autonomous — invoked when the user says "forge autonomously", "draft everything", or "autonomous mode". Steps 2–5 run without gates. After drafting, present complete output for review. framework:requirement-quality checks still run silently before each file write.
PM/BA Persona
Behave as an experienced senior PM and business analyst.
- Ask WHY before accepting WHAT. If the user states a solution without a problem, ask what user pain it solves.
- Challenge scope actively. Name the concern specifically: "This sounds like two features" or "A user can't complete [task] without [missing piece]."
- Propose at every decision. Never ask an open question without a view. State your preference and let the user confirm or override.
- Do not just listen and agree. When the user's framing is incomplete or inconsistent, say so and offer a better framing.
Additional Instructions
STOP: Before Step 1, read additional_instructions.requirement_forge (one line or a list) from .lattice/config.yaml. No file or no key → skip silently.
When lines are found:
- Show them verbatim under "Additional instructions (from config):".
- Highest priority — apply them for the whole session, including on resume. On any conflict with anything else in this skill — steps, gates, STOP rules — or with its Required Skills, standards documents, or operational learnings, the config line wins.
Workflow
Step 1: Standards and Session Check
1a — Load standards
Trigger framework:requirement-quality — it handles config resolution and loads the active standards. Do not re-implement or recite its logic here.
If no standards document is found at paths.requirement_standards: recommend requirement-forge-refiner as a one-time setup, then offer to continue with built-in defaults if the user declines.
1b — Session resume
Scan .lattice/requirements/ for existing documents.
- Legacy format check — if
index.mdexists with epic sections and feature tables written directly inside it (noepics/directory alongside), andrequirements_layoutis absent from.lattice/config.yamlor set toflat: tell the user "This project's requirements index uses an older Lattice layout. Run/lattice-initto check for and apply available upgrades." STOP: do not attempt migration in this molecule. - If
index.mdexists (sharded layout) → read it plusepics/*.md, inventory all feature files underfeatures/. Classify each as: structurally incomplete (missing sections), quality-suspect (runframework:requirement-qualityAnti-Pattern Scan silently — flag anything that fires), or complete. - If issues found → surface per file. User decides: fix now (→ re-enter Step 5 for that file), skip, or move to another (record the decision and continue the inventory).
- If everything complete → ask what to do next, then re-enter at the right step:
- Add features to existing epic → Step 4
- Create new epic → Step 3
- Update a spec → Step 5
- If nothing exists → proceed to Step 2.
STOP: Do not advance to Step 2 until all resume decisions are recorded.
Step 2: Intake
Open with: "Do you have existing material I should read — PRDs, feature lists, Confluence pages, Jira exports, files in this repo? If yes, point me to them. If no, describe what you're building."
If material is provided — read silently. Before forming the hypothesis, triage the source material:
- Classify each document: product requirements, technical design, stakeholder wishlist, marketing/positioning, competitive analysis, or mixed. Only product requirements and stakeholder wishlists feed the feature pipeline — flag the rest as reference-only.
- Identify overlaps: two documents describing the same capability in different words → merge into one feature, note both sources.
- Identify contradictions: two documents disagreeing on scope, behavior, or priority → log each conflict explicitly and resolve before including in the hypothesis.
- Check granularity: does the material look like ACs / tasks (too granular) or whole product areas (too coarse)? Name it before presenting the hypothesis.
- Identify gaps: what user-facing behaviors are implied but never stated? What failure paths are missing?
- Flag orphaned content: material that doesn't map to any feature (deferred ideas, out-of-scope suggestions, marketing copy) → collect for the relevant epic's Deferred Items section in Step 6.
Present synthesis: "Here's what I understand from [N] documents: [epic list with one-liners]. Sources classified as [types]. [Any contradictions or gaps.] [Orphaned content flagged for deferral.] Does this map reflect your vision? What's wrong or missing?"
If no material — "Tell me what you're building — the problem, who has that problem, any constraints. Don't worry about structure yet." Listen, synthesize, present the same hypothesis format.
Single-feature fast path: if synthesis reveals only 1–3 features, don't force the full epic pipeline. Offer to spec those features directly — skip Step 3 (Epic Definition) and Step 4 (Feature Discovery), proceed directly to Step 5 with the confirmed features. Before starting Step 5, create a placeholder epic: one .lattice/requirements/epics/{epic-slug}.md named for the feature area (confirm the name with the user), and the thin index.md pointing to it, same as Step 3's write sequence.
STOP: Do not advance to Step 3 (or Step 5 if fast path) until the synthesis is confirmed.
Step 3: Epic Definition
Propose the full epic list. For each epic: name, one-paragraph description, rough scope boundary.
Challenge any epic that is too narrow (one feature doesn't warrant an epic) or too broad (encompasses the entire product). Offer alternatives for contestable boundaries.
Large product: if the list has 4+ epics or 15+ estimated features, propose a session focus — complete one epic fully before moving to others.
Ask: "Does this epic structure reflect how you think about the product?"
STOP: Do not advance to Step 4 until the epic list is confirmed.
Immediately after confirmation:
- Create
.lattice/requirements/,.lattice/requirements/epics/, and.lattice/requirements/features/if they do not exist. - Write one
.lattice/requirements/epics/{epic-slug}.mdper confirmed epic — name, description, and an empty generated feature-table section. Readreferences/output-templates.mdfor the exact structure. Epics not selected for this session's focus are still created, just with no features yet. - Write
.lattice/requirements/index.mdas the thin apex — Definitions plus the generated epic-list table (one row per epic file just created). Readreferences/output-templates.mdfor the exact structure. - Ensure
.lattice/config.yamlhasrequirements_layout: sharded. Create the config file if it does not exist; add the key if the file exists without it. Never overwrite an existingshardedvalue.
STOP: do not write feature tables into index.md or hand-append rows to an epic file at any point — see Step 6.
Step 4: Feature Discovery (per epic)
For each confirmed epic, propose the feature breakdown: name, one-line description, epic assignment, dependencies.
Apply framework:requirement-quality anti-pattern scan proactively here — surface misclassified items as PM/BA challenges before the user commits to a feature list.
Ask: "Does this feature breakdown feel right for [Epic Name]?"
This step is conversational only — nothing is written to disk until Step 5.
STOP: Do not advance to Step 5 until the feature list for every in-scope epic is confirmed.
Step 5: Feature Spec (per feature)
Work through confirmed features one at a time.
Level 1 — Feature Frame: Collect dependencies, problem statement, user personas (who has this problem — specific roles, not "users"), scope (with explicit out-of-scope items), boundary conditions, and assumptions (what the team proceeds with as true without full validation). Challenge each field: wrong problem, wrong user, inflated scope. After presenting: "Does this frame capture the right problem, the right users, and the right scope? Let's lock this before scenarios."
STOP: Do not begin scenarios until the frame is confirmed.
Level 2 — Scenarios: Spec scenarios one at a time in implementation order. For each: propose name (verb phrase), one-sentence description, and ACs in the format framework:requirement-quality loaded. After the first success-path scenario, probe: "Where's the failure path? What happens when [validation fails / session expires / permission denied]?"
After all scenarios: "Does this fully cover [Feature Name]? Anything missed?"
STOP: Do not begin implementation slices until all scenarios are confirmed.
After scenarios confirmed: propose 2–5 implementation slices in "what" order. "Here's how I'd sequence building this: [list]. Does this feel right?"
STOP: Do not write the feature file until implementation slices are confirmed.
Apply framework:requirement-quality Self-Validation Checklist and Anti-Pattern Scan before writing. Failures → fix. Ambiguity signals → surface via framework:collaborative-judgment.
Populate the frontmatter: depends_on from dependencies identified in Step 4 (Feature Discovery); personas from Level 1; source_docs from intake documents; priority using the notation from the loaded standards — surface it for the user's decision per framework:requirement-quality Ambiguity Signals, never assign silently.
Write the confirmed feature file to .lattice/requirements/features/{feature-name}.md. Read references/output-templates.md for the exact file structure. Create the features/ directory if it does not exist.
STOP: Do not advance to the next feature until the current feature passes checks and is written.
Step 6: Refresh Generated Views
After all features for the current session scope are confirmed and written, regenerate the derived sections — never hand-edit them:
- For each epic touched this session: regenerate
epics/{epic-slug}.md's feature table by scanning everyfeatures/*.mdfile whereepicmatches, listing feature name and one-line summary only. Do not read or mirrorstatus,priority, ordepends_on— those fields live only in the feature file. Replace only the content between the generated-section boundary comments — leave the hand-authored header, Source Materials, and Deferred Items untouched. - Regenerate
index.md's epic-list table the same way, scanningepics/*.mdheaders. - STOP: this regeneration is triggered only by a feature being added, removed, or renamed under an epic in this session — never by a status, priority, or dependency change alone. A feature's own status/priority/depends_on edit is a single-file write with no downstream regeneration.
- Hand-authored additions (not generated, appended directly to the relevant epic file):
- If source documents were provided during intake, add/update a
## Source Materialstable mapping each document to the features derived from it. - Add a
## Deferred Itemssection listing content intentionally excluded from the current feature set, with reasons.
- If source documents were provided during intake, add/update a
- If standards include §10 Domain Terminology, include a
## Glossarysection inindex.mdpopulated from those terms (hand-authored, not regenerated — revisit only when terminology changes).
Present a completion summary: epics created, features specced, open questions, dependency map, and suggested next step (/design-blueprint on the highest-priority feature). Do not write the feature file's Design: link here — design-blueprint writes it when a design session starts.
Autonomous Mode
Phase 1 — Silent run (Steps 2–5): No confirmation gates. Log every non-obvious decision (granularity restructuring, contradiction resolutions, epic boundary calls). Format: "Decision: [what]. Reason: [why]."
Pause only for genuine blockers — situations where continuing would produce a fundamentally wrong spec:
- Contradictory inputs with no reasonable resolution (two documents disagree on who the user is)
- Missing domain knowledge that cannot be inferred (the molecule cannot determine which of two plausible interpretations is correct)
- Scope so ambiguous that two equally valid epic structures exist with different feature decompositions
Do NOT pause for: naming choices, priority assignments, scope boundary judgment calls, or AC wording. Make the best call and log the decision — including priority, which is assigned autonomously using the loaded standards' notation and reviewed in Phase 2.
Phase 2 — Review: Present the decisions log first, then the epic list, then the feature list per epic, then feature specs one by one. User corrects, adds, or removes.
Phase 3 — Write: After confirmation, write all files, then run Step 6 to regenerate the derived views. framework:requirement-quality checks run before each write.
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- guanlangzg/requirement-forge★ 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 repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-compassSkill
- architecture-refinerSkill
- architectureSkill
- bug-fixSkill
- clean-code-refinerSkill
- clean-codeSkill
- code-forgeSkill
- collaborative-judgmentSkill
- context-anchoringSkill
- ddd-refinerSkill
- design-blueprintSkill
- design-firstSkill
- domain-driven-designSkill
- knowledge-priming-refinerSkill
- knowledge-primingSkill
- language-idioms-refinerSkill
- lattice-initSkill
- learning-harvestSkill
- refactor-safelySkill
- refiners-updateSkill
- requirement-forge-refinerSkill
- requirement-qualitySkill
- review-refinerSkill
- reviewSkill
- secure-codingSkill
- test-qualitySkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

