Repository navigation
Description
Problem
The skill gives feature content one home, docs/product/features/<feature>/, and the only way in is a PRD. Feature intent that comes before a PRD has nowhere to go: early ideas, specs still being worked out, and features whose code already exists but has no spec.
So that content drifts into documents that shouldn't hold it. The vision is the usual victim: it fills up with a roadmap, a feature backlog and business planning, although the skill's own vision reference says a vision is none of those. This issue adds two stages ahead of features/, each with its own AGENTS.md.
Proposal
Three stages
A stage is a category of authority, shown by the directory a document sits in.
| Stage | Holds | Agents treat it as |
|---|---|---|
ideas/ |
Early sketches nobody is shaping yet | No requirements authority. Agents read an idea only when the task names it, or through idea discovery. |
shaping/ |
Changes being worked out, including draft PRDs and TRDs | Tentative context for work on that feature. ADRs and contracts that a shaping document links keep their own authority. |
features/ |
Ratified changes and shipped feature specs | Requirements |
Rules:
- The maintainer moves an idea to
shaping/when they start shaping it. - The Foundation Gate blocks drafting a PRD, not ideas or shaping. The default order is still to establish the foundation documents first.
- A PRD is drafted in
shaping/. Merging its promotion PR ratifies the change and moves it intofeatures/. - Code alone never admits a spec to
features/. - Each stage directory gets an
AGENTS.mdthat says when agents read it and when they stay out.scripts/init.shscaffolds them.
Idea discovery
Before a design or plan, the agent runs a subagent that reads ideas/ and reports any idea that bears on the work: whether it enables, conflicts or overlaps, and what to ask the maintainer. The main context pays for idea content only when an idea is relevant.
Spikes
A spike is a disposable prototype that answers a shaping question. Its code never admits a spec. When an agent runs a spike unattended, it keeps a decision ledger: an append-only record of the decisions it made, for the maintainer to review. The ledger lives with the spike, never in docs/product/. When the spike ends, its entries move into a shaping document, an ADR, a feature log or an idea, and the ledger is deleted.
Glossary
Add plugins/product-development/skills/product-development/CONTEXT.md, in the domain-modeling CONTEXT.md format, and link it from SKILL.md. Add a root CONTEXT-MAP.md that points to it, so other plugins can add their own contexts later.
Renames
- "Foundation Stage" becomes the Foundation workflow, because "stage" now means a stage directory.
references/phase-2-requirements.md,phase-3-user-stories.mdandphase-4-scenarios.mdare renamed to their workflow names.SKILL.mdalready calls thephase-*names legacy compatibility paths.
ADR
Add docs/adr/0001-stage-directories-carry-authority.md. It records that a document's stage, and later a change's state, comes from its path and not from a status field. A status field drifts once code ships unless someone remembers to update it; a path moves in the same pull request as the work.
Generic examples
The user stories reference lists one project's personas and uses one of them in an example story, and the requirements reference points to example feature folders that exist only in that project. Replace all three: take personas from the PRD, use a generic example story, and point to the skill's templates instead of a project's feature folders.
Acceptance criteria
SKILL.md,docs/METHODOLOGY.md, the README template and theAGENTS.mdtemplate describe the three stages, their authority and the promotion rule.scripts/init.shscaffoldsideas/,shaping/andfeatures/with anAGENTS.mdin each, never overwrites existing files, andtests/init.batscovers it.- The Foundation Gate text says it blocks PRD drafting, not shaping.
- The idea discovery and spike guidance, including the decision ledger, live in a reference file that
SKILL.mdlinks. CONTEXT.mdandCONTEXT-MAP.mdexist, andSKILL.mdlinks the glossary.- The renamed reference files keep working: nothing in the repository links the old names.
- The ADR exists.
- The user stories and requirements references name no project-specific personas or feature folders.
- Existing plugin package and init tests pass.
Non-goals
- Feature bundles, changes, deltas and canonization. Those belong to product-development: add feature-evolution pathway with rationale provenance #23 (the feature-evolution pathway).
- The open-questions register. That is product-development: track open questions by what they block #37 (open questions).
- Migrating existing projects. The modernization and retrofit guides cover that.
Activity
refactor(product-development): name workflow references by workflow
docs(product-development): add the glossary, context map and ADR 0001
docs(product-development): describe stages, promotion and idea discovery
docs(product-development): use generic examples in stories and requir…
fix(product-development): point features guidance at the evolution rules
docs(product-development): use one synthetic calendar domain in examples
test(product-development): use refute_grep for every negative assertion
fix(product-development): publish init files atomically without repla…
fix(product-development): tighten workflow hand-offs around shaping a…
docs(product-development): require every ledger decision to land befo…
docs(adr): separate directory authority from event-marked change states
docs(product-development): read ratified baselines and scope glossary…
4 remaining items
docs(product-development): route ratified spec changes through promotion
docs(product-development): skip Project Setup only when the scaffold …
fix(product-development): route partial scaffolds to setup and gate p…
docs(product-development): require PRD personas and plan from ratifie…
feat(product-development): add idea and shaping stages and the glossa…
docs(product-development): route workflow selection by approved inputs
fix(product-development): generate OKF indexes during Project Setup
docs(product-development): list feature tags; say foundation documents
fix(product-development): use the installed script path in scaffolded…
fix(product-development): treat a missing bundle root as unfinished s…
fix(product-development): resolve release review findings (#61)
docs(product-development): regenerate indexes before the upgrade's pr…
fix(product-development): resolve release re-check findings (#62)
docs(product-development): route clear requirements through an approv…
fix(product-development): resolve second release review findings (#63)