[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77K2XJJM60008GJYE0ADBBA":3,"skill-same:01M77K2XJJM60008GJYE0ADBBA":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M77K2XJJM60008GJYE0ADBBA","spec-union",null,"Resolve a frozen PRD or decision record plus amendments into one effective spec. Use when executing or reviewing against the authoritative requirement set. Read-only on parent; does not author amendments.","grdavies\u002Fshipwright","grdavies","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2638082?v=4","01M77JZCZJTWB8WBWX4NNW8MNP","Ross Davies","01M77JZD0S2Q4JZEM0310T9A73",2,"MIT","https:\u002F\u002Fgithub.com\u002Fgrdavies\u002Fshipwright\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fspec-union\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: spec-union\ndescription: Resolve a frozen PRD or decision record plus amendments into one effective spec. Use when executing or reviewing against the authoritative requirement set. Read-only on parent; does not author amendments.\n---\n# Spec union resolver\n\nSingle read-time view of frozen doc + amendments (R12). Parent is never mutated.\n\n\n**Model tier:** cheap — resolve via `python3 scripts\u002Fsw_bootstrap.py resolve-model-tier.py -- --skill spec-union`. When using the Task tool for subagent dispatch, resolve concrete model IDs from `models.tiers` in config (never semantic tier names in subagent `model:` frontmatter).\n\n\n## Structural tokenizer (PRD 031)\n\n`scripts\u002Fspec-union.py` parses exclusively through `scripts\u002Fdoc_format.py` (shared tokenizer). No\nindependent structural regex is retained. Pre-freeze docs pass through\n`python3 scripts\u002Fdoc-format-normalize.py --check|--write` before persisting.\n\nPost-cutover paths live under `planningDir` (default `docs\u002Fplanning`); pre-cutover repos use legacy\n`prdsDir`\u002F`decisionsDir` until migration `--verify` passes. See `core\u002Fsw-reference\u002Flayout.md`.\n\n## Supported doc types\n\n| Type | Path | ID grammar | Amendment dir |\n|------|------|------------|---------------|\n| PRD | `\u003CplanningDir>\u002Fprd\u002F\u003Cid>-\u003Cslug>\u002F\u003Cid>-prd-\u003Cslug>.md` (legacy: `prdsDir\u002F\u003Cn>-\u003Cslug>\u002F...`) | `R\\d+` | `parent\u002Famendments\u002F` |\n| Decision | `\u003CplanningDir>\u002Fdecision\u002F\u003Cid>-\u003Cslug>.md` (legacy: `decisionsDir\u002F\u003Cn>-\u003Cslug>.md`) | `D\\d+` | sibling `\u003Cstem>.amendments\u002F` |\n\n## Resolution rules\n\nApply amendments in filename sort order (`A1`, `A2`, …):\n\n1. **Add** — new R-IDs \u002F D-IDs from amendment body enter the effective spec.\n2. **Supersede (PRD \u002F inline)** — `supersedes: [R\u003Cn>]` removes parent R\u003Cn>; replacement is the new continued\n   R-ID in the amendment body (positional pairing).\n3. **Supersede (decision \u002F record-level)** — `supersedes: [D\u003Cn>]` with `replacement: \u003Cpath>` drops D\u003Cn> from\n   the effective set and emits a forward pointer — **never inlines** the replacement record's content.\n   Handled outside the positional replacement loop.\n4. **Retract** — `retracts: [R\u003Cn>|D\u003Cn>]` drops the ID from effective spec (rationale in amendment body).\n\nLater amendments can supersede earlier amendment requirements.\n\n### Record-level supersede output\n\n```json\n\"superseded\": { \"D5\": { \"replacement\": \"docs\u002Fdecisions\u002F009-foo.md\" } }\n```\n\nPRD inline supersede keeps the `old → new_id` string map. Record-level object values appear only for\ndecision record-level supersedes — PRD-path output stays byte-identical.\n\n### Transitive chain + cycle guard\n\nForward pointers are followed to the terminal non-superseded record (D5→D9→D12 ⇒ D12 path). Max depth cap\nwith hard error on cycles (D5↔D9).\n\n### Empty-union guard\n\nD-ID extraction failure or empty effective union on a non-empty decision doc (without full retract\u002Fsupersede\ncoverage) is a hard error.\n\n## Consumers\n\n- **Agent:** load this skill when reading spec for `\u002Fsw-execute` or gap-check.\n- **Deterministic:** `scripts\u002Fspec-union.py \u003Cdoc-path>` → JSON effective requirements.\n\n## Interface stability\n\nPublished contract for implementation workstream (`003`). PRD-path output must stay byte-identical; decision\npath is additive.\n\n## Examples\n\n```bash\npython3 scripts\u002Fspec-union.py docs\u002Fplanning\u002Fprd\u002Fprd-001-feature\u002Fprd-001-feature-prd-feature.md\npython3 scripts\u002Fspec-union.py docs\u002Fplanning\u002Fdecision\u002Fdecision-001-my-decision\u002Fdecision-001-my-decision.md\n```\n","# Spec union resolver\n\nSingle read-time view of frozen doc + amendments (R12). Parent is never mutated.\n\n\n**Model tier:** cheap — resolve via `python3 scripts\u002Fsw_bootstrap.py resolve-model-tier.py -- --skill spec-union`. When using the Task tool for subagent dispatch, resolve concrete model IDs from `models.tiers` in config (never semantic tier names in subagent `model:` frontmatter).\n\n\n## Structural tokenizer (PRD 031)\n\n`scripts\u002Fspec-union.py` parses exclusively through `scripts\u002Fdoc_format.py` (shared tokenizer). No\nindependent structural regex is retained. Pre-freeze docs pass through\n`python3 scripts\u002Fdoc-format-normalize.py --check|--write` before persisting.\n\nPost-cutover paths live under `planningDir` (default `docs\u002Fplanning`); pre-cutover repos use legacy\n`prdsDir`\u002F`decisionsDir` until migration `--verify` passes. See `core\u002Fsw-reference\u002Flayout.md`.\n\n## Supported doc types\n\n| Type | Path | ID grammar | Amendment dir |\n|------|------|------------|---------------|\n| PRD | `\u003CplanningDir>\u002Fprd\u002F\u003Cid>-\u003Cslug>\u002F\u003Cid>-prd-\u003Cslug>.md` (legacy: `prdsDir\u002F\u003Cn>-\u003Cslug>\u002F...`) | `R\\d+` | `parent\u002Famendments\u002F` |\n| Decision | `\u003CplanningDir>\u002Fdecision\u002F\u003Cid>-\u003Cslug>.md` (legacy: `decisionsDir\u002F\u003Cn>-\u003Cslug>.md`) | `D\\d+` | sibling `\u003Cstem>.amendments\u002F` |\n\n## Resolution rules\n\nApply amendments in filename sort order (`A1`, `A2`, …):\n\n1. **Add** — new R-IDs \u002F D-IDs from amendment body enter the effective spec.\n2. **Supersede (PRD \u002F inline)** — `supersedes: [R\u003Cn>]` removes parent R\u003Cn>; replacement is the new continued\n   R-ID in the amendment body (positional pairing).\n3. **Supersede (decision \u002F record-level)** — `supersedes: [D\u003Cn>]` with `replacement: \u003Cpath>` drops D\u003Cn> from\n   the effective set and emits a forward pointer — **never inlines** the replacement record's content.\n   Handled outside the positional replacement loop.\n4. **Retract** — `retracts: [R\u003Cn>|D\u003Cn>]` drops the ID from effective spec (rationale in amendment body).\n\nLater amendments can supersede earlier amendment requirements.\n\n### Record-level supersede output\n\n```json\n\"superseded\": { \"D5\": { \"replacement\": \"docs\u002Fdecisions\u002F009-foo.md\" } }\n```\n\nPRD inline supersede keeps the `old → new_id` string map. Record-level object values appear only for\ndecision record-level supersedes — PRD-path output stays byte-identical.\n\n### Transitive chain + cycle guard\n\nForward pointers are followed to the terminal non-superseded record (D5→D9→D12 ⇒ D12 path). Max depth cap\nwith hard error on cycles (D5↔D9).\n\n### Empty-union guard\n\nD-ID extraction failure or empty effective union on a non-empty decision doc (without full retract\u002Fsupersede\ncoverage) is a hard error.\n\n## Consumers\n\n- **Agent:** load this skill when reading spec for `\u002Fsw-execute` or gap-check.\n- **Deterministic:** `scripts\u002Fspec-union.py \u003Cdoc-path>` → JSON effective requirements.\n\n## Interface stability\n\nPublished contract for implementation workstream (`003`). PRD-path output must stay byte-identical; decision\npath is additive.\n\n## Examples\n\n```bash\npython3 scripts\u002Fspec-union.py docs\u002Fplanning\u002Fprd\u002Fprd-001-feature\u002Fprd-001-feature-prd-feature.md\npython3 scripts\u002Fspec-union.py docs\u002Fplanning\u002Fdecision\u002Fdecision-001-my-decision\u002Fdecision-001-my-decision.md\n```\n",{"name":5,"description":7},"main","2633b37cdc50086084cc9c0ce6c994871d3e7aad","core\u002Fskills\u002Fspec-union",0,"https:\u002F\u002Fgithub.com\u002Fgrdavies\u002Fshipwright","https:\u002F\u002Fgithub.com\u002Fgrdavies","2026-11-03 23:44:15",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add grdavies\u002Fshipwright --skill spec-union",{"tool":37,"command":38},"bunx","bunx skills add grdavies\u002Fshipwright --skill spec-union",{"tool":40,"command":41},"pnpm","pnpm dlx skills add grdavies\u002Fshipwright --skill spec-union","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgrdavies\u002Fshipwright\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fspec-union\u002FSKILL.md",true,[],[46,53,60,67,73,80],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M77K4Z004VAMY705XQKJAH4Y","wrong-name","Missing use when phrase and wrong directory name for critical lint failure.","https:\u002F\u002Fgithub.com\u002Fgrdavies\u002Fshipwright\u002Fblob\u002Fmain\u002Fscripts\u002Ftest\u002Ffixtures\u002Fworkflow-pack-sdk\u002Fnegative\u002Fbad-instruction\u002Fskills\u002Fbad-skill\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M77K4WR3WP22SBT6053PYWAK","demo-skill","Demo workflow pack skill fixture. Use when validating workflow-pack-sdk golden paths in CI.","https:\u002F\u002Fgithub.com\u002Fgrdavies\u002Fshipwright\u002Fblob\u002Fmain\u002Fscripts\u002Ftest\u002Ffixtures\u002Fworkflow-pack-sdk\u002Fgolden\u002Fvalid-pack\u002Fskills\u002Fdemo-skill\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M77K4SV48XDDDQ81PD09G9N6","good-skill","Validates Agent Skills spec conformance for fixture trees. Use when testing skills-spec-guard pass paths across core and dist mirrors. Does not ship production skills.","https:\u002F\u002Fgithub.com\u002Fgrdavies\u002Fshipwright\u002Fblob\u002Fmain\u002Fscripts\u002Ftest\u002Ffixtures\u002Fskills-spec\u002Fpass-valid\u002Fcore\u002Fskills\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":68,"name":48,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M77K4PWVT96VMTMMFE2Y80GJ","Fixture with name\u002Fdir mismatch for guard failure tests. Use when verifying skills-spec-guard rejects invalid identity. Does not ship production skills.","https:\u002F\u002Fgithub.com\u002Fgrdavies\u002Fshipwright\u002Fblob\u002Fmain\u002Fscripts\u002Ftest\u002Ffixtures\u002Fskills-spec\u002Ffail-name-mismatch\u002Fcore\u002Fskills\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M77K4KSS5Z0Q0DEAA8PV9316","bad-description","Missing the required when trigger phrase in this fixture skill.","https:\u002F\u002Fgithub.com\u002Fgrdavies\u002Fshipwright\u002Fblob\u002Fmain\u002Fscripts\u002Ftest\u002Ffixtures\u002Fskills-spec\u002Ffail-description-shape\u002Fcore\u002Fskills\u002Fbad-description\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M77K4H9HK5FDF84D65228XFA","dropin-demo","https:\u002F\u002Fgithub.com\u002Fgrdavies\u002Fshipwright\u002Fblob\u002Fmain\u002Fscripts\u002Ftest\u002Ffixtures\u002Fcapability-select\u002Fdropin\u002Fcore\u002Fskills\u002Fdropin-demo\u002FSKILL.md",[],[]]