/product-skills:spec-to-repofrom product-skills
Translates PRDs and user stories into actionable repo plans: ticket decomposition, branch strategy, PR sequencing, and acceptance criteria. Validates ticket sizes, blocking links, and branch names. Use when breaking specs into tickets or auditing a plan before sprint planning.
Ships in product-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A delivery-focused skill that bridges product spec to repository work. Where PRD-writing skills focus on what to build, this skill focuses on how to break it down for execution — the ticket decomposition, branch strategy, PR sequencing, and acceptance criteria that make a spec actually ship.
Before generating the repo plan, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Run from the skill folder (product-team/spec-to-repo). Every tool takes a file (positional or
--input), --format text|json (markdown also accepted), and prints a final verdict line.
python3 scripts/prd_to_tickets_decomposer.py assets/flawed_prd.json
Real output (excerpt):
Ticket decomposition: Notifications v2
Read 2 capabilities and 0 technical notes; 3 tickets, 14.0 estimated days (2 without an estimate)
C-001-01-bac story 14.0d [backend] As a user, I can mute notifications by channel [size:XL, 14.0 days; tests not declared]
FINDING C-001-01-bac (size-xl): C-001-01-bac is 14.0 days (limit 5)
fix: split C-001 into thinner behaviours of at most 3 days each
FINDING C-002 (no-estimate): C-002 has no estimated_days
fix: add "estimated_days" to C-002; nothing is assumed
FIX 4 findings
| Code | Meaning |
|---|---|
| 0 | Clean (PASS). For ticket_graph_validator.py, warnings alone still exit 0. |
| 1 | Findings to act on (FIX n ...): each has the quoted value, the rule and a fix. |
| 2 | Unusable input: missing file, invalid JSON, empty list, wrong shape, bad --pattern. One-line message on stderr, never a traceback. |
Nothing is estimated for you: a capability without estimated_days is reported as missing, not scored as zero.
assets/sample_prd.json shows the shape) and run the decomposer to
get a candidate ticket list with size checks and a build order.python3 scripts/prd_to_tickets_decomposer.py assets/sample_prd.json --format json
assets/sample_pr_plan.json).pr_scope_analyzer.py to flag oversized PRs, missing tests, risky merges and ordering.python3 scripts/pr_scope_analyzer.py assets/sample_pr_plan.json
git branch --list > branches.txt).branch_naming_validator.py; each bad name gets a suggested rename. The default
pattern (type/kebab-slug, optional tracker id) is a heuristic; pass --pattern for yours.python3 scripts/branch_naming_validator.py assets/flawed_branches.txt
A tracer bullet is the thinnest slice that runs end to end through every layer it needs and
can be demonstrated. Slicing this way means every merged ticket is usable, integration
problems surface on ticket one instead of the last, and tickets can be worked in parallel
from a dependency graph. Full method, exceptions and ticket format:
references/tracer-bullet-slicing.md.
prefactor ticket (no behaviour
change) at the front.expand / migrate / contract instead of forcing
them into a slice, and unknowns as a time-boxed spike.python3 scripts/ticket_graph_validator.py \
--input assets/sample_tracer_tickets.json --max-days 2 --format json
Work then proceeds from the frontier: any ticket whose blockers are all done. The validator's waves show the frontier at each step and the length of the critical path.
| Size | Effort | Description |
|---|---|---|
| XS | < 0.5 day | Trivial; usually skip ticketing |
| S | 0.5–1 day | One simple change |
| M | 1–3 days | Single feature, well-scoped |
| L | 3–5 days | Multi-day work; should split if possible |
| XL | > 5 days | Always split — too big for confident estimate |
A ticket that's L or XL almost always hides a missing decomposition. Push back on yourself.
Epic — large product feature ("Notifications v2")
├── Story — user-facing capability ("As a user I can mute by channel")
│ ├── Ticket — one engineering work item (backend, frontend, infra)
│ │ └── Subtask — atomic step (optional)
Most orgs:
Best ticket: ships a small user-visible improvement end-to-end.
When you can't slice vertically (e.g., backend is weeks before frontend):
For a multi-PR feature:
Each PR < 400 lines if possible. Reviewability collapses above 400.
Per ticket:
Per epic:
Mistake: Tickets cut by layer — "create tables", "build API", "build UI", "write tests". Why it happens: It mirrors how the system is drawn and how teams are split, so it feels natural to estimate. Instead: Cut by behaviour. Each ticket crosses the layers its behaviour needs and is demoable when it merges. The validator flags single-layer tickets that are not marked as a declared exception.
Mistake: Linking tickets because one "should" come after another, until the graph is a single line. Why it happens: A straight sequence feels safer and easier to explain. Instead: Link only real gates — the second ticket cannot be built or verified without the first. Fewer links mean a wider frontier and more parallel work.
Mistake: Making ticket one "the whole save feature, with validation, sharing and error states". Why it happens: The first slice feels like the foundation, so it gets everything. Instead: Make the first slice the thinnest path that proves every layer connects. Widen it in later tickets.
Also avoid:
In Scope:
prd_to_tickets_decomposer.py, flagging oversized tickets and cross-team dependenciespr_scope_analyzer.py for oversized PRs, missing tests, telemetry or docs, risky merges and ordering problemsbranch_naming_validator.pyticket_graph_validator.pyOut of Scope:
project-management/execution/create-prd/)spec-driven-workflow)project-management/jira-expert/ and project-management/linear-expert/)engineering/feature-flags-architect/)engineering/pr-review-expert/)Important Caveats:
estimated_days the user enters.| File | Purpose |
|---|---|
scripts/prd_to_tickets_decomposer.py | Epic, story and ticket tree from a capabilities JSON, with size flags and dependencies |
scripts/pr_scope_analyzer.py | Checks a planned PR sequence for size, missing tests, telemetry, docs and ordering |
scripts/branch_naming_validator.py | Lints branch names against a pattern |
scripts/ticket_graph_validator.py | Validates tracer-bullet tickets: vertical slices, acceptance criteria, blocking links, cycles, build waves |
assets/sample_prd.json, flawed_prd.json, malformed_prd.json | Decomposer inputs: exit 0, 1, 2 |
assets/sample_pr_plan.json, flawed_pr_plan.json, malformed_pr_plan.json | PR analyzer inputs: exit 0, 1, 2 |
assets/sample_branches.txt, flawed_branches.txt, malformed_branches.txt | Branch validator inputs: exit 0, 1, 2 |
assets/sound_tracer_tickets.json | Saved-search plan with no errors (exit 0) |
assets/sample_tracer_tickets.json | Same plan with two deliberate defects (exit 1) |
assets/flawed_tracer_tickets.json, malformed_tracer_tickets.json | Cycle/unknown blocker case (exit 1); empty set (exit 2) |
assets/contract.json | Declared runs checked by scripts/skill_contract_check.py |
ticket_graph_validator.py exits 0 when there are no errors, 1 on any error (unknown
blocker, cycle, missing acceptance criteria, no free starting ticket) and 2 on unreadable
input. The other three tools follow the exit-code table above; see Workflows 1-3.
references/tracer-bullet-slicing.md — slicing rules, blocking links, the frontier, expand/migrate/contract and other exceptions, ticket format, worked examplereferences/spec-to-ticket-decomposition.md — patterns for breaking specs into ticketsreferences/branch-strategy-for-features.md — branching, feature flags, dark-launchreferences/pr-discipline-and-conventions.md — PR size, review, definition-of-doneproduct-team/agile-product-owner — sprint planning, prioritizationengineering/feature-flags-architect — flag strategyengineering/observability-designer — SLO / telemetryc-level-advisor/vpe-advisor — broader delivery contextproject-management/ skills — ticket / sprint management toolingassets/contract.json (opens in a new tab)assets/flawed_branches.txt (opens in a new tab)assets/flawed_pr_plan.json (opens in a new tab)assets/flawed_prd.json (opens in a new tab)assets/flawed_tracer_tickets.json (opens in a new tab)assets/malformed_branches.txt (opens in a new tab)assets/malformed_pr_plan.json (opens in a new tab)assets/malformed_prd.json (opens in a new tab)assets/malformed_tracer_tickets.json (opens in a new tab)assets/sample_branches.txt (opens in a new tab)assets/sample_pr_plan.json (opens in a new tab)assets/sample_prd.json (opens in a new tab)assets/sample_tracer_tickets.json (opens in a new tab)assets/sound_tracer_tickets.json (opens in a new tab)references/branch-strategy-for-features.md (opens in a new tab)references/pr-discipline-and-conventions.md (opens in a new tab)references/spec-to-ticket-decomposition.md (opens in a new tab)references/tracer-bullet-slicing.md (opens in a new tab)scripts/branch_naming_validator.py (opens in a new tab)scripts/pr_scope_analyzer.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/ab-test-setupCheck an A/B hypothesis, size the test, and analyse results from a CSV with data-quality checks (sample ratio mismatch, small counts, multiple variants). Use when planning an experiment, calculating sample size or duration, reading experiment results, or when someone says "let's test that."
/agile-product-ownerAgile product ownership for backlog management and sprint execution. Use when you have an epic to turn into INVEST-checked user stories with acceptance criteria, oversized stories to split, a sprint to load to capacity, or a backlog to prioritize.
/apple-hig-expertApple Human Interface Guidelines expert across iOS, iPadOS, macOS, watchOS, tvOS, and visionOS. Use when designing or reviewing an Apple-platform app, auditing for HIG compliance, picking native components, or validating accessibility. Use when you have a screen inventory (JSON of true/false flags per screen) to audit, or a UX goal to map to a native pattern.
npx claudepluginhub borghei/claude-skills --plugin product-skillsOther plugins' skills for the same job