Skip to content

product-development: add idea and shaping stages ahead of feature specs #36

In review

Description

@prometheas

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 into features/.
  • Code alone never admits a spec to features/.
  • Each stage directory gets an AGENTS.md that says when agents read it and when they stay out. scripts/init.sh scaffolds 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.md and phase-4-scenarios.md are renamed to their workflow names. SKILL.md already calls the phase-* 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 the AGENTS.md template describe the three stages, their authority and the promotion rule.
  • scripts/init.sh scaffolds ideas/, shaping/ and features/ with an AGENTS.md in each, never overwrites existing files, and tests/init.bats covers 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.md links.
  • CONTEXT.md and CONTEXT-MAP.md exist, and SKILL.md links 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

Activity

  1. added
    enhancement
    on Nov 29, 2026
  2. 4 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions