home / skills / ozten / skills / tpm-spec-trace-ids
This skill annotates a vision PRD with Feature IDs and generates a Coverage Index to enable traceability and phased development.
npx playbooks add skill ozten/skills --skill tpm-spec-trace-idsReview the files below or copy the command above to add this skill to your agents.
---
name: tpm-spec-trace-ids
description: Annotate a Spec/PRD with Feature IDs and generate a Coverage Index. Use when user wants to add spec tags to a vision document, create F-nnn identifiers, set up traceability, or initialize a PRD framework for phased development.
---
# PRD Vision Annotator
Annotate a narrative vision document with traceable Feature IDs and generate a Coverage Index.
## Workflow
1. **Add Goals section** (if missing) — Extract or write 3-10 business objectives as G-01, G-02, etc.
2. **Assign Feature IDs** — Add `[F-nnn]` tags to major section headers
3. **Generate Coverage Index** — Create tracking file listing all features
## Step 1: Goals Section
If the vision PRD lacks explicit goals, add them at the top:
```markdown
## Goals
G-01: [Primary business objective]
G-02: [Secondary objective]
G-03: [Quality/compliance objective]
```
Extract goals from executive summary, introduction, or ask the user.
If the document contains goals already, add goal Ids and do not modify those pieces of prose.
## Step 2: Feature ID Assignment
Add Feature IDs to major section headers. Do not modify prose.
**Before:**
```markdown
## 14. RSVP Functionality
### 14.1 Process Flow
```
**After:**
```markdown
## 14. RSVP Functionality [F-014]
### 14.1 Process Flow
```
**Rules:**
- One Feature ID per major section (H2 level typically)
- Subsections inherit parent ID unless substantial enough for their own
- Number sequentially (F-001, F-002...) or match section numbers (§14 → F-014)
- Skip sections explicitly out of scope
## Step 3: Coverage Index
Generate a Coverage Index file using the template in `assets/coverage-index-template.md`.
List every Feature ID with initial status `Planned`.
## Reference
See `references/naming-conventions.md` for ID format details.
This skill annotates a product vision or PRD with traceable Feature IDs and produces a Coverage Index to track scope and status. It adds a Goals section when missing, tags major sections with F-nnn identifiers, and initializes a feature-level tracking file. The result is a lightweight traceability framework ready for phased development and test planning.
The skill scans the vision/PRD document for top-level sections and an executive summary to extract or create 3–10 goal statements labeled G-01, G-02, etc. It then assigns one Feature ID per major section (H2) by inserting [F-nnn] tags without altering prose, following sequential or section-number-based numbering. Finally, it generates a Coverage Index listing every Feature ID with an initial status of Planned for straightforward tracking.
What numbering scheme should I use for Feature IDs?
Use sequential numbering (F-001, F-002…) for new docs or mirror section numbers (e.g., §14 → F-014) if that improves traceability.
Will this change my spec text?
No. The process only inserts Feature ID tags into major headers and adds a Goals section or Coverage Index; it does not modify existing prose.