Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ nix develop -c bats plugins/product-development/skills/product-development/tests
nix develop -c bats plugins/product-development/skills/product-development/tests/canonization.bats
nix develop -c bats plugins/product-development/skills/product-development/tests/feature-tags.bats
nix develop -c bats plugins/product-development/skills/product-development/tests/modernization.bats
nix develop -c bats plugins/product-development/skills/product-development/tests/retrofit.bats
nix develop -c bats plugins/delivery-engineering/tests/plugin-package.bats
nix develop -c bats plugins/okf-bundle/tests/plugin-package.bats
nix develop -c bats plugins/branch-guard/tests
Expand Down
15 changes: 13 additions & 2 deletions plugins/product-development/skills/product-development/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: product-development
description: "Use when the user asks to create a feature, write a PRD or TRD, add user stories, write scenarios, create acceptance criteria, capture an idea, shape a change, run a spike, promote a change, ratify a change, review a promotion PR, triage open questions, draft or send the implementation handoff, draft downstream comments, make a tech decision, research compliance or standards, run the pre-ship Release Check, execute a delivery-plan step (for example a rollout), record a ship signal, canonize a shipped change, hand a ratified change to implementation, map change states to a project board, modernize specs written with version 0.1.0 of this skill, initialize product docs, set up product documentation, create, approve, amend, or validate a Product Constitution, run the Constitution Grill, create or maintain Product Vision, run a Vision Grill, or work anywhere in the product development lifecycle from project setup through canonization."
description: "Use when the user asks to create a feature, write a PRD or TRD, add user stories, write scenarios, create acceptance criteria, capture an idea, shape a change, run a spike, promote a change, ratify a change, review a promotion PR, triage open questions, draft or send the implementation handoff, draft downstream comments, make a tech decision, research compliance or standards, run the pre-ship Release Check, execute a delivery-plan step (for example a rollout), record a ship signal, canonize a shipped change, hand a ratified change to implementation, map change states to a project board, modernize specs written with version 0.1.0 of this skill, retrofit a codebase that has no specs, initialize product docs, set up product documentation, create, approve, amend, or validate a Product Constitution, run the Constitution Grill, create or maintain Product Vision, run a Vision Grill, or work anywhere in the product development lifecycle from project setup through canonization."
---

# Product Development Lifecycle
Expand Down Expand Up @@ -244,6 +244,14 @@ Release questions can also name a delivery-plan step, by path and anchor. Before

**Gate:** Opening the modernization PR waits for the maintainer's approval. The maintainer rules on every mismatch and approves every retirement before it merges. Work carried forward is not ratified: it needs its own promotion PR.

## Retrofit

**Trigger:** The project has features in code but no product docs for them, or specs only in other formats, such as Spec Kit, OpenSpec, or design and plan files from other agent workflows.

**Process:** Follow `references/retrofit.md`: interview the maintainer in a braindump run like the Vision Grill, run the eight feature lenses, each in its own subagent, reconcile their reports into one feature inventory, and route each approved feature to modernization, `shaping/` or `ideas/`. When at least two of the guide's large-codebase thresholds hold, explain why and recommend that the user invoke `wayfinder`; the agent never invokes it, each GitHub write it makes still waits for the maintainer's approval (GitHub Writes), and the retrofit works without it.

**Gate:** The maintainer approves the feature inventory before anything is seeded. The approval sets the scope of the retrofit only and ratifies nothing: no feature reaches `features/` without a promotion PR. Opening the retrofit PR waits for the maintainer's approval, and the inventory is deleted once its features are seeded.

## Gates and Review Passes

### Gate behavior
Expand Down Expand Up @@ -343,6 +351,7 @@ For each writing workflow, dispatch a sub-agent with only the inputs it needs:
| Promotion review | The promotion PR's diff, `references/promotion-review.md`, `CONTEXT.md` | Findings with severity labels and citations |
| Tech decision or compliance research | The decision or research charter, `references/tech-decisions.md` or `references/compliance-research.md` | Findings with primary sources |
| Idea discovery | Summary of the work, `docs/product/ideas/`, report format from `references/idea-discovery-and-spikes.md` | Report of relevant ideas, nothing else |
| Feature lens | Braindump summary, the scope to read, the shared preamble, its lens template and the report format from `references/retrofit.md` | Candidate features with evidence, nothing else |
| User Stories | Approved PRD, TRD, constitution, vision, `references/user-stories.md` | Story files written to disk |
| BDD Scenarios | User stories, TRD, constitution, vision, `references/bdd-scenarios.md` | `.feature` files written to disk |

Expand Down Expand Up @@ -389,7 +398,8 @@ Not every feature starts at the beginning. Match the entry point to the current
| About to execute a step in the delivery plan | Release Check |
| Ship signal fired for a ratified change | Ship Signal and Canonization |
| Shipped change waiting for canonization | Ship Signal and Canonization |
| Code exists with no spec | Discovery and Design (code alone never admits a spec) |
| One behavior exists in code with no spec | Discovery and Design (code alone never admits a spec) |
| A codebase whose features have no product docs, or specs only in other formats (Spec Kit, OpenSpec, design and plan files) | Retrofit (`references/retrofit.md`) |
| Specs written with version 0.1.0 of this skill (a PRD and TRD per feature folder, changelog tables, committed plans) | Modernization (`references/modernization.md`) |

Clear requirements may skip brainstorming only after Foundation Gate passes. If this is the first PRD and `docs/product/constitution.md` or `docs/product/vision.md` is missing, unapproved, or unversioned, run the Foundation workflow before Requirements.
Expand Down Expand Up @@ -440,6 +450,7 @@ Detailed guidance for each workflow lives in reference files to keep context tar
- **`references/implementation-handoff.md`** — The handoff: its contents, when it is drafted and sent, and an example for a feature's first change
- **`references/canonization.md`** — Recording the ship signal, the five canonization steps, the canonization PR, and a worked example with a change in meaning, a deferral and a rebased delta
- **`references/modernization.md`** — Converting a feature folder written with 0.1.0 into a feature bundle: the seven steps, archived originals, mismatch rulings, retirements, and a worked example
- **`references/retrofit.md`** — Taking a codebase without specs to features in the right stages: the maintainer braindump, the eight feature lenses with their prompt templates, the feature inventory, routing, the `wayfinder` rule for large codebases, and a worked example
- **`references/downstream-comments.md`** — Drafting comments for downstream owners; posting waits for the maintainer's approval
- **`references/tech-decisions.md`** — Technology choices for a change's TRD, with an ADR when consequential
- **`references/compliance-research.md`** — Source-cited research on laws, regulations and standards, without overclaims
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ A file with no tag that sits outside any `features/<feature-id>/` directory is u

Files whose location the tooling fixes, such as lockfiles, package manifests and framework-mandated entry points, stay unmapped. Don't move them under `features/` to map them.

An untagged codebase is a supported starting point. Tags are optional evidence when discovering a codebase's features, and tagging can follow once those features are ratified.
An untagged codebase is a supported starting point. Tags are optional evidence when discovering a codebase's features in a [retrofit](retrofit.md), and tagging can follow once those features are ratified.

## What stays out of the feature bundle

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Load this reference when a project has specs written with version 0.1.0 of this skill. In 0.1.0, each feature was a folder, `docs/product/features/{feature}/`, holding one PRD and one TRD edited in place, each with a status field and a changelog table, beside its stories and scenarios. Implementation plans and design documents were committed under `docs/plans/`. Modernization converts that folder into a feature bundle ([feature-bundles.md](feature-bundles.md)), separating shipped behavior, approved unbuilt work and drafts. Terms follow the skill's glossary, [CONTEXT.md](../CONTEXT.md); "feature folder" here means the 0.1.0 layout, never a feature bundle.

A codebase with no specs at all is a retrofit, not a modernization: see #47 (the retrofit guide).
A codebase with no specs at all is a retrofit, not a modernization: see [retrofit.md](retrofit.md).

## How it runs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ How the product expects to reach people, and the launch-market hypotheses. An as
The source behind each claim: who said it, where and when.
```

The modernization (#46, modernization guide) and retrofit (#47, retrofit guide) workflows route market details found in old documents to research notes before those documents retire.
The [modernization](modernization.md) and [retrofit](retrofit.md) workflows route market details found in old documents to research notes before those documents retire.

## Splitting an existing vision

Expand Down
Loading