Repository navigation
Closed
Description
Problem
Eight aidd-pm skills follow the router contract. Three never migrated: 01-ticket-info, 03-prd, 04-spec. They are the only ones with no mermaid flow.
None of the three has a references/ folder, which is the root cause: their rules have nowhere to live except the router, so the router carries business logic and repeats its own actions.
01-ticket-info/SKILL.md:21-23restates, near-verbatim, steps 1/2/3 ofactions/01-ticket-info.md:15-17.:24repeats the frontmatterNot forlist and the intent line.03-prd/SKILL.md:24repeatsactions/01-prd.md:11;:25repeats:29andactions/01-prd.md:16;:23repeatsactions/01-prd.md:17.04-spec: the literalTBD: <precise question>lives inSKILL.md:23,actions/01-build.md:16andactions/02-refine.md:18, with no owner. It has already drifted:actions/02-refine.md:27writesTBD: <question>,:11writes a bareTBD.- The eight PRD sections are enumerated twice:
assets/prd-template.md(lines 7,11,15,19,23,27,31,35) andactions/01-prd.md:16in prose, whileSKILL.md:25declares the template the source of truth. 03-prd/assets/task-template.mdis dead: nothing fills it,actions/01-prd.md:15-18only fillsprd-template.md. It also carries a skill manifest as its frontmatter (name: task) and collides by name with10-task/assets/task-template.md, the real backlog Task.- All three use
| # | Action | Role | Input |and "Before running an action, read its file", against the| Action | Does |table and the one canonical lead-in of the other eight. 03-prd/SKILL.md:27-30and04-spec/SKILL.md:29-32carry a## Assetssection no other skill has.
Scope
- Give each of the three a
references/folder and move every rule out of its router. - Migrate the three routers to the contract: mermaid flow,
| Action | Does |table, canonical## Actionslead-in, no## Assetssection. - Give the
TBD:marker one home and point the three sites at it. - Stop enumerating the PRD sections outside the template.
- Delete
03-prd/assets/task-template.mdand the line announcing it.
Acceptance criteria
- The eleven
aidd-pmrouters have the same shape, sections and section order - No router states a rule an action or a reference could hold
-
TBD:has one spelling, in one file - Adding a section to
prd-template.mdrequires no other edit - Every asset in the plugin is filled by an action
What already landed, and what it corrects here
Branch refactor/564-skill-contract-one-home settled the contract these three must migrate to, and fixed the parts of this issue that were mechanical.
Two claims in the original body were wrong and are removed above:
argument-hintwas never a defect on these two. The old R4 read "omitted for one action", and01-ticket-infoand03-prdeach have exactly one action. R4 has since been rewritten —argument-hintnow names what the user brings, never the action slugs, and is present unless no action declares an## Input. Under the new rule all three needed a hint, and all three have one:ticket,need | brainstorm,request | prd | spec.- The four actions no longer use a prose
## Test. All 50 actions in scope carry a| Case | Pass |table. The remaining router-shape work is what this issue keeps.
The ## Test contract is no longer stated in aidd_docs/CONTRIBUTING.md. It lives, with the whole contract, in plugins/aidd-context/skills/04-skill-generate/references/skill-authoring.md.
Prior art in this repo
plugins/aidd-context/skills/04-skill-generate/references/skill-authoring.md— the contract, R1 to R19, grouped by the artifact each rule governs.- The eight migrated skills,
07-epicbeing the smallest complete example (router, three actions, five references). scripts/check-skill-argument-hints.mjs— the only mechanical check on the contract today. Router shape is not checked, which is why this drift stayed invisible in CI.
Out of scope
- Any behaviour change. The three skills keep what they do; only where their rules live changes.
- A CI test for router shape. Worth doing, but it should follow the migration rather than block it.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
refactor(framework): one home for the skill contract (#601)
refactor(framework): one home for the skill contract (#601)
refactor(framework): one home for the skill contract (#601)
refactor(framework): one home for the skill contract (#601)
refactor(aidd-pm): migrate ticket-info, prd, and spec to router contr…
refactor(aidd-pm): migrate ticket-info, prd, and spec to router contr…
refactor(aidd-pm): migrate ticket-info, prd, and spec to router contr…
blafourcade commentedon Sep 9, 2026
Implemented by PR #628:
ticket-info,prd, andspecuse the router contract without changing product behavior.