A Claude Code plugin that compiles fuzzy product ideas into validated, agent-consumable specification packages.
Takes a product idea and walks you through structured product thinking — problem definition, persona, hypothesis, user flows — then compiles the output into a spec package that an implementation agent (Claude Code, Cursor, etc.) can build from without guessing.
"I have an idea for a → Guided conversation → spec-package/
tea tracking app" (14 prompts) ├── manifest.yaml
├── context/ (why)
├── spec/ (what)
├── docs/ (decisions)
└── CLAUDE.md (handoff)
The spec package has three layers:
- Context (prose) — problem, persona, hypothesis, concept. Gives the implementation agent the why.
- Specification (YAML) — entities, flows, screens, endpoints, rules, constraints. Gives the agent the what with cross-referenced IDs and type-safe schemas.
- Governance (markdown) — compiled PRD and extracted ADRs. The decisions and rationale, including what was explicitly excluded.
A validation pipeline checks referential integrity across all spec files before the package is marked as ready.
- Claude Code — CLI, Desktop app, or VS Code extension
- Python 3.9+ — optional; only
/compileuses it (to run the bundledplugin/scripts/compile_spec.py). The ideation/flow/spec workflow and/summarybrief work without it. If Python is absent,/compileexplains and points you to/summaryand the raw artifacts instead of failing with a traceback. - pyyaml — auto-installed by
/compilefromplugin/scripts/requirements.txtwhen Python is present
claude plugin install --plugin-dir ./pluginWorks in Claude Code CLI, Desktop app, and VS Code extension.
| Command | What It Does |
|---|---|
/idea |
Start from a product idea — "a tea tracking app" |
/problem |
Start from a problem domain — "specialty tea enthusiasts waste tea" |
/spec |
Generate technical specs (data models, API, business rules, NFRs) |
/compile |
Assemble artifacts into a validated spec package + handoff instruction |
/summary |
Generate a consolidated project brief |
/product-dev:status |
Show project progress and suggest next steps |
/idea tea tracking app → Captures concept, defines problem, creates persona,
forms hypothesis (Phases 00-03, ~20 min)
→ Maps user flow, identifies screens, scopes prototype
(Phase 04, ~15 min)
/spec → Generates data models, API contracts, business rules,
constraints as structured YAML (Tech Spec, ~20 min)
/compile → Assembles spec-package/, runs 20 validation checks,
generates CLAUDE.md handoff instruction (~30 sec)
Then copy spec-package/ and CLAUDE.md into a fresh project directory and point an implementation agent at it.
Default is Tier 1 (quick exploration, ~60 min total). The framework escalates to Tier 2 when you give detailed responses or ask to go deeper.
├── plugin/ # Claude Code plugin (self-contained, installable)
│ ├── .claude-plugin/plugin.json # Plugin manifest
│ ├── commands/ # 5 commands (/idea, /problem, /spec, /compile, /summary)
│ ├── skills/ # 4 skills (3 workflows + status)
│ ├── agents/ # 1 subagent (tech-spec-writer)
│ ├── prompts/ # Bundled prompt library
│ │ ├── 01_ux_research/ # Prompts: phases 00-06
│ │ ├── 02_tech_requirements/ # Tech spec prompts: 4 areas + consolidation
│ │ └── 03-05_*/ # Tool setup, architecture bridge, impl docs
│ └── scripts/ # Bundled compile pipeline
│ ├── compile_spec.py # Spec package compiler
│ ├── validate_spec.py # 20-check cross-reference validator
│ ├── generate_handoff.py # CLAUDE.md handoff generator
│ └── requirements.txt # Python deps (pyyaml)
│
├── prompts/dev/ # Non-framework reference material (not bundled)
│ ├── build guides/ # Stack starter guides
│ ├── ide_rules/ # IDE configuration prompts
│ └── portfolio/ # Portfolio case-study prompts
│
├── scripts/ # Dev/test material (not bundled)
│ ├── archive/ # One-time migration utilities
│ ├── test-chain.md # End-to-end test doc
│ └── test-registry.md # Registry test doc
│
├── examples/tea-tracker/ # Reference spec package (test fixture)
│ ├── context.json # Sample registry
│ ├── artifacts/ # Sample working artifacts (12 files)
│ ├── spec-package/ # Compiled output (16 files)
│ └── CLAUDE.md # Generated handoff instruction
│
├── skills-claude-ai/ # Claude.ai Agent Skill ports (ideation + flow)
│ ├── product-ideation/ # SKILL.md + bundled prompts (phases 00-03)
│ └── product-flow/ # SKILL.md + bundled prompts (phases 04-06)
│
└── docs/
├── spec-package-schema.md # Spec package YAML schema (v1.0.0)
├── adrs/ # 17 Architecture Decision Records
└── updates/ # PRD v3, refactor roadmap, enhancement guides
See docs/spec-package-schema.md for the full schema definition:
entities.yaml— Data model with typed fields, constraints, indexesflows.yaml— User journey with screen + API call references per stepscreens.yaml— UI inventory with content elements, data sources, actionsendpoints.yaml— API contracts with request/response schemasrules.yaml— Business logic as IF/THEN pseudocode with enforcement locationsconstraints.yaml— Performance targets, security config, prototype scope
All IDs are cross-referenced. The validation pipeline checks 20 rules across referential integrity, completeness, and consistency.
Key decisions are documented as ADRs in docs/adrs/:
| ADR | Decision |
|---|---|
| 0001 | YAML frontmatter as canonical prompt metadata |
| 0002 | MCP prompt packaging (deferred in favor of plugin) |
| 0003 | File-based context registry at .product-dev/ |
| 0004 | 3 skills + 1 subagent decomposition |
| 0005 | Prompt enhancement schema |
| 0006 | Progressive disclosure and tiered engagement |
| 0007 | JSON index deprecation |
| 0008 | Plugin as delivery vehicle |
| 0009 | Prompt Enhancement Pattern v2 |
| 0010 | Spec package as compilation target |
| 0011 | Plugin self-containment via ${CLAUDE_PLUGIN_ROOT} |
| 0012 | ADR enforcement architecture |
| 0013 | UX optimization reverse pass (/optimize) |
| 0014 | Live-site audit mode + objective metrics |
| 0015 | Runtime audit mode for locally runnable products |
| 0016 | gstack patterns: interrogation, candidate directions, provenance |
| 0017 | gstack patterns: quality loops, decision classification, scope walk, learnings |
Every ADR declares its testable consequences in an appended ## Enforcement
section, verified by a warn-only check suite:
python checks/run_checks.pyWarnings report; only graduated (block) checks fail CI or block a session.
See checks/README.md for graduation and exclusions, and
ADR 0012 for the architecture.
See CONTRIBUTING.md for prompt authoring standards, plugin development, and the ADR process.
The interrogation, premise-challenge, quality-loop, decision-classification, scope-walk, and process-learnings patterns (ADRs 0016–0017) were adapted from Garry Tan's gstack (MIT).
Apache 2.0. See LICENSE.