[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C5FY61PVPJGSVY5NKAAJSZ":3,"skill-same:01M6C5FY61PVPJGSVY5NKAAJSZ":98},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":55,"linkOnly":56,"markdownContent":57,"markdownBody":58,"frontMatter":59,"refName":66,"commitSha":67,"skillDirectory":68,"forksCount":69,"repositoryHtmlUrl":70,"repositoryHomepageUrl":17,"ownerHtmlUrl":71,"ownerBlogUrl":17,"ownerDescription":72,"updatedAt":73,"install":74,"resources":87},"01M6C5FY61PVPJGSVY5NKAAJSZ","blueprint-sync-ids","蓝图文档 ID 补全与同步","Scan blueprint docs and assign missing PRD\u002FADR\u002FPRP\u002FWO IDs. Use when assigning IDs to docs; --dry-run to preview, --link-issues to create GitHub issues for orphans.","扫描蓝图文档并补全缺失的 PRD\u002FADR\u002FPRP\u002FWO ID。用于为文档分配 ID；--dry-run 可预览效果，--link-issues 可为孤立文档创建 GitHub issue。","laurigates\u002Fclaude-plugins","laurigates","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13014001?v=4","01M6C59YHWS9C7KMXKSRX1YXNP","Lauri Gates","01M6C59YP2APG9YAM4DWYQYGFJ",60,"MIT",null,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fblueprint-plugin\u002Fskills\u002Fblueprint-sync-ids\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TK1MPB82068236GSXDE","文档处理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54],"blueprint sync ids","sync","ids","Blueprint","blueprint sync","sonnet","wed","2026","dry","preview","when","github issues","prd","docs","edit","write","read","run","github","create","Bash","use","issues","adr","2026-11-10 10:12:30",false,"---\ncreated: 2026-01-20\nmodified: 2026-11-13\nreviewed: 2026-06-10\ndescription: Scan blueprint docs and assign missing PRD\u002FADR\u002FPRP\u002FWO IDs. Use when assigning IDs to docs; --dry-run to preview, --link-issues to create GitHub issues for orphans.\nargs: \"[--dry-run] [--link-issues]\"\nargument-hint: \"--dry-run to preview changes, --link-issues to create GitHub issues for orphans\"\nallowed-tools: Read, Write, Edit, Glob, Bash, AskUserQuestion\nmodel: sonnet\nname: blueprint-sync-ids\n---\n\nScan all PRDs, ADRs, PRPs, and work-orders, assign IDs to documents missing them, and update the manifest registry.\n\n## When to Use This Skill\n\n| Use this skill when... | Use blueprint-sync instead when... |\n|---|---|\n| You're assigning PRD-NNN \u002F ADR-NNNN \u002F PRP-NNN \u002F WO-NNN to docs missing them | You want to detect modified or stale generated content (not IDs) |\n| You're previewing ID assignments with `--dry-run` | You're reconciling drift between `.claude\u002Frules\u002F` and the manifest |\n| You want to create GitHub issues for orphan docs via `--link-issues` | Use document-linking instead for runtime cross-doc traceability |\n\n## Flags\n\n| Flag | Description |\n|------|-------------|\n| `--dry-run` | Preview changes without modifying files |\n| `--link-issues` | Also create GitHub issues for orphan documents |\n\n## Interaction Mode\n\nBefore any closing `AskUserQuestion` menu, resolve the automation config:\n\n```bash\nbash \"${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Fget-automation-config.sh\"\n```\n\nWhen `EFFECTIVE_INTERACTION_MODE=quiet` **and** this invocation was\nautomation-initiated (autopilot, session bookend, drift-nudge follow-up — not\na slash command the user typed), skip closing navigation menus (\"what next?\" \u002F\n\"create another?\" style): apply the safe default and end with a one-line\nreceipt instead. Quiet mode never skips confirmation gates that guard writes —\nonly navigation menus. A direct user invocation always behaves fully\ninteractively (explicit intent overrides quiet; see ADR-0020).\n\n## Prerequisites\n\n- Blueprint initialized (`docs\u002Fblueprint\u002Fmanifest.json` exists)\n- At least one document exists in `docs\u002Fprds\u002F`, `docs\u002Fadrs\u002F`, `docs\u002Fprps\u002F`, or `docs\u002Fblueprint\u002Fwork-orders\u002F`\n\n## Steps\n\n### Step 1: Initialize ID Registry\n\nCheck if `id_registry` exists in manifest:\n\n```bash\njq -e '.id_registry' docs\u002Fblueprint\u002Fmanifest.json >\u002Fdev\u002Fnull 2>&1\n```\n\nIf not, initialize it:\n\n```json\n{\n  \"id_registry\": {\n    \"last_prd\": 0,\n    \"last_prp\": 0,\n    \"documents\": {},\n    \"github_issues\": {}\n  }\n}\n```\n\n### Step 2: Run the read-only ID audit\n\nRun the helper. It owns the read-only scan: frontmatter `id:` extraction across\nPRDs\u002FADRs\u002FPRPs\u002Fwork-orders, deriving the expected ADR \u002F `WO-NNN` id from each\nfilename, flagging `NEEDS_ID` (no id) and `id_mismatch` (frontmatter id disagrees\nwith the filename-derived expectation), checking ids against the manifest\n`id_registry`, and building the reverse `github_issues` index from it. ADRs come\nfrom `docs\u002Fadrs\u002F`, else `docs\u002Fadr\u002F`, named `NNNN-title.md` or `ADR-NNN-title.md`\n(else the frontmatter `id:` alone):\n\n```bash\nbash \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fblueprint-sync-ids.sh\" --home-dir \"$HOME\" --project-dir \"$(pwd)\"\n```\n\nParse `STATUS=` and `ISSUES:` from the output:\n\n- `PRD_NEEDS_ID` \u002F `ADR_NEEDS_ID` \u002F `PRP_NEEDS_ID` \u002F `WO_NEEDS_ID` and the\n  `needs_id` issues are the documents to assign IDs to in Step 7 (each carries\n  `DOC=` and, for ADRs\u002FWOs, the `EXPECTED=` filename-derived ID).\n- `ADR_MISMATCH` \u002F `WO_MISMATCH` and the `id_mismatch` issues (`HAS=` vs\n  `EXPECTED=`) are documents whose frontmatter id disagrees with their filename\n  — reconcile these in Step 7, never silently. `STATUS=ERROR` indicates at least\n  one mismatch, duplicate, or registry conflict.\n- `ADR_DIR` is the ADR directory scanned (`none` if absent);\n  `ADR_FRONTMATTER_ONLY` counts ADRs numbered only in frontmatter.\n- `DUPLICATE_IDS` \u002F `duplicate_id` (ERROR, `KIND=` `ID=` `DOCS=`): two documents\n  of one kind share a frontmatter id. Renumber one before assigning anything.\n- `REGISTRY_PRESENT` is `true` only when the manifest has `id_registry` with a\n  `documents` map; when `false`, every registry check is skipped (counts `0`).\n  - `REGISTRY_UNREGISTERED` \u002F `unregistered` (WARN): the id is not in\n    `documents`. Add it in Step 7.\n  - `REGISTRY_ID_PATH_MISMATCH` \u002F `id_path_mismatch` (ERROR): the registry holds\n    this path under another id (`REGISTRY=`) or this id under another path\n    (`REGISTRY_PATH=`). A swapped pair is two rows.\n  - `REGISTRY_PATH_MISSING` \u002F `registry_path_missing` (ERROR): a `documents`\n    `path` not on disk.\n  - `COUNTER_STALE` \u002F `counter_stale` (WARN): a `last_*` counter is below the\n    highest id of its kind on disk (`MAX_ON_DISK=`). Raise it before Step 7.\n- `GH_ISSUE_MAPPINGS` and `MANIFEST_PRESENT` summarise the reverse-index build\n  (Step 9 detail below).\n- On WARN\u002FERROR, `REASON=` names the first finding as `\u003Ctype>: \u003Cdetail>`.\n\nThe audit is read-only; it makes no edits. Surface its counts as the Step 6\nreport and proceed to the mutating steps.\n\n### Step 7: Assign IDs (unless `--dry-run`)\n\nFor each document needing an ID:\n\nPRD and PRP ids come from the shared helper, which prints max(`id_registry.last_\u003Ckind>`,\nhighest id of that kind on disk) + 1. The counter alone can repeat an id that a\npulled or merged document already carries (#3554). Call the helper once per\ndocument, after the previous document's `id:` is written, so each call sees it:\n\n```bash\nbash \"${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Fblueprint-next-id.sh\" --kind PRD\nbash \"${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Fblueprint-next-id.sh\" --kind PRP\n```\n\n**PRDs**:\n1. Get the next ID from `blueprint-next-id.sh --kind PRD` (prints `PRD-NNN`)\n2. Insert into frontmatter after first `---`:\n   ```yaml\n   id: PRD-001\n   ```\n3. Update manifest: set `last_prd` to the assigned number, add to `documents`\n\n**ADRs**:\n1. Derive ID from filename: `0003-title.md` → `ADR-0003`, `ADR-003-title.md` → `ADR-003`\n2. Insert into frontmatter\n3. Add to manifest `documents`\n\n**PRPs**:\n1. Get the next ID from `blueprint-next-id.sh --kind PRP` (prints `PRP-NNN`)\n2. Insert into frontmatter\n3. Update manifest: set `last_prp` to the assigned number, add to `documents`\n\n**Work-Orders**:\n1. Derive ID from filename: `003-task.md` → `WO-003`\n2. Insert into frontmatter\n3. Add to manifest `documents`\n\n### Step 8: Extract Titles and Links\n\nFor each document, also extract:\n- **Title**: First `# ` heading or frontmatter `name`\u002F`title` field\n- **Existing links**: `relates-to`, `implements`, `github-issues` from frontmatter\n- **Status**: From frontmatter\n\nStore in manifest registry:\n\n```json\n{\n  \"documents\": {\n    \"PRD-001\": {\n      \"path\": \"docs\u002Fprds\u002Fuser-auth.md\",\n      \"title\": \"User Authentication\",\n      \"status\": \"Active\",\n      \"relates_to\": [\"ADR-0003\"],\n      \"github_issues\": [42],\n      \"created\": \"2026-01-15\"\n    }\n  }\n}\n```\n\n### Step 9: Build GitHub Issue Index\n\nThe Step 2 audit already groups the manifest's per-document `github_issues`\narrays into the reverse index (`GH_ISSUE_MAPPINGS=` reports how many distinct\nissue numbers map to documents). Write that reverse index into the manifest:\n\n```json\n{\n  \"github_issues\": {\n    \"42\": [\"PRD-001\", \"PRP-002\"],\n    \"45\": [\"WO-003\"]\n  }\n}\n```\n\n### Step 10: Create Issues for Orphans (if `--link-issues`)\n\nFor each document without `github-issues`:\n\n```\nquestion: \"Create GitHub issue for {ID}: {title}?\"\noptions:\n  - label: \"Yes, create issue\"\n    description: \"Creates [{ID}] {title} issue\"\n  - label: \"Skip this one\"\n    description: \"Leave unlinked for now\"\n  - label: \"Skip all remaining\"\n    description: \"Don't prompt for more orphans\"\n```\n\nIf yes:\n```bash\ngh issue create \\\n  --title \"[{ID}] {title}\" \\\n  --body \"## {Document Type}\n\n**ID**: {ID}\n**Document**: \\`{path}\\`\n\n{Brief description from document}\n\n---\n*Auto-generated by \u002Fblueprint:sync-ids*\" \\\n  --label \"{type-label}\"\n```\n\nUpdate document frontmatter and manifest with new issue number.\n\n`sync-ids` is a deterministic task and keeps no run state in the tracked\nmanifest (ADR-0027, #3548): do not write `task_registry[\"sync-ids\"]`\n`last_completed_at`, `last_result` or `stats`. The only manifest changes are\nthe `id_registry` edits made in Steps 1–10.\n\n### Step 11: Final Report\n\n```\nID Sync Complete\n\nAssigned IDs:\n- PRD-003: docs\u002Fprds\u002Fpayment-flow.md\n- PRD-004: docs\u002Fprds\u002Fnotifications.md\n- PRP-005: docs\u002Fprps\u002Fstripe-integration.md\n\nUpdated Manifest:\n- last_prd: 4\n- last_prp: 5\n- documents: 22 entries\n- github_issues: 18 mappings\n\n{If --link-issues:}\nCreated GitHub Issues:\n- #52: [PRD-003] Payment Flow\n- #53: [PRP-005] Stripe Integration\n\nStill orphaned (no GitHub issues):\n- ADR-0004: Database Migration Strategy\n- WO-008: Add error handling\n\nRun `\u002Fblueprint:status` to see full traceability report.\n```\n\n## Error Handling\n\n| Condition | Action |\n|-----------|--------|\n| No manifest | Error: Run `\u002Fblueprint:init` first |\n| No documents found | Warning: No documents to scan |\n| Frontmatter parse error | Warning: Skip file, report for manual fix |\n| `gh` not available | Skip issue creation, warn user |\n| Write permission denied | Error: Check file permissions |\n\n## Manifest Schema\n\nAfter sync, manifest includes:\n\n```json\n{\n  \"id_registry\": {\n    \"last_prd\": 4,\n    \"last_prp\": 5,\n    \"documents\": {\n      \"PRD-001\": {\n        \"path\": \"docs\u002Fprds\u002Fuser-auth.md\",\n        \"title\": \"User Authentication\",\n        \"status\": \"Active\",\n        \"relates_to\": [\"ADR-0003\"],\n        \"implements\": [],\n        \"github_issues\": [42],\n        \"created\": \"2026-01-10\"\n      },\n      \"ADR-0003\": {\n        \"path\": \"docs\u002Fadrs\u002F0003-session-storage.md\",\n        \"title\": \"Session Storage Strategy\",\n        \"status\": \"Accepted\",\n        \"domain\": \"authentication\",\n        \"relates_to\": [\"PRD-001\"],\n        \"github_issues\": [],\n        \"created\": \"2026-01-12\"\n      }\n    },\n    \"github_issues\": {\n      \"42\": [\"PRD-001\", \"PRP-002\"],\n      \"45\": [\"WO-003\"]\n    }\n  }\n}\n```\n","Scan all PRDs, ADRs, PRPs, and work-orders, assign IDs to documents missing them, and update the manifest registry.\n\n## When to Use This Skill\n\n| Use this skill when... | Use blueprint-sync instead when... |\n|---|---|\n| You're assigning PRD-NNN \u002F ADR-NNNN \u002F PRP-NNN \u002F WO-NNN to docs missing them | You want to detect modified or stale generated content (not IDs) |\n| You're previewing ID assignments with `--dry-run` | You're reconciling drift between `.claude\u002Frules\u002F` and the manifest |\n| You want to create GitHub issues for orphan docs via `--link-issues` | Use document-linking instead for runtime cross-doc traceability |\n\n## Flags\n\n| Flag | Description |\n|------|-------------|\n| `--dry-run` | Preview changes without modifying files |\n| `--link-issues` | Also create GitHub issues for orphan documents |\n\n## Interaction Mode\n\nBefore any closing `AskUserQuestion` menu, resolve the automation config:\n\n```bash\nbash \"${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Fget-automation-config.sh\"\n```\n\nWhen `EFFECTIVE_INTERACTION_MODE=quiet` **and** this invocation was\nautomation-initiated (autopilot, session bookend, drift-nudge follow-up — not\na slash command the user typed), skip closing navigation menus (\"what next?\" \u002F\n\"create another?\" style): apply the safe default and end with a one-line\nreceipt instead. Quiet mode never skips confirmation gates that guard writes —\nonly navigation menus. A direct user invocation always behaves fully\ninteractively (explicit intent overrides quiet; see ADR-0020).\n\n## Prerequisites\n\n- Blueprint initialized (`docs\u002Fblueprint\u002Fmanifest.json` exists)\n- At least one document exists in `docs\u002Fprds\u002F`, `docs\u002Fadrs\u002F`, `docs\u002Fprps\u002F`, or `docs\u002Fblueprint\u002Fwork-orders\u002F`\n\n## Steps\n\n### Step 1: Initialize ID Registry\n\nCheck if `id_registry` exists in manifest:\n\n```bash\njq -e '.id_registry' docs\u002Fblueprint\u002Fmanifest.json >\u002Fdev\u002Fnull 2>&1\n```\n\nIf not, initialize it:\n\n```json\n{\n  \"id_registry\": {\n    \"last_prd\": 0,\n    \"last_prp\": 0,\n    \"documents\": {},\n    \"github_issues\": {}\n  }\n}\n```\n\n### Step 2: Run the read-only ID audit\n\nRun the helper. It owns the read-only scan: frontmatter `id:` extraction across\nPRDs\u002FADRs\u002FPRPs\u002Fwork-orders, deriving the expected ADR \u002F `WO-NNN` id from each\nfilename, flagging `NEEDS_ID` (no id) and `id_mismatch` (frontmatter id disagrees\nwith the filename-derived expectation), checking ids against the manifest\n`id_registry`, and building the reverse `github_issues` index from it. ADRs come\nfrom `docs\u002Fadrs\u002F`, else `docs\u002Fadr\u002F`, named `NNNN-title.md` or `ADR-NNN-title.md`\n(else the frontmatter `id:` alone):\n\n```bash\nbash \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fblueprint-sync-ids.sh\" --home-dir \"$HOME\" --project-dir \"$(pwd)\"\n```\n\nParse `STATUS=` and `ISSUES:` from the output:\n\n- `PRD_NEEDS_ID` \u002F `ADR_NEEDS_ID` \u002F `PRP_NEEDS_ID` \u002F `WO_NEEDS_ID` and the\n  `needs_id` issues are the documents to assign IDs to in Step 7 (each carries\n  `DOC=` and, for ADRs\u002FWOs, the `EXPECTED=` filename-derived ID).\n- `ADR_MISMATCH` \u002F `WO_MISMATCH` and the `id_mismatch` issues (`HAS=` vs\n  `EXPECTED=`) are documents whose frontmatter id disagrees with their filename\n  — reconcile these in Step 7, never silently. `STATUS=ERROR` indicates at least\n  one mismatch, duplicate, or registry conflict.\n- `ADR_DIR` is the ADR directory scanned (`none` if absent);\n  `ADR_FRONTMATTER_ONLY` counts ADRs numbered only in frontmatter.\n- `DUPLICATE_IDS` \u002F `duplicate_id` (ERROR, `KIND=` `ID=` `DOCS=`): two documents\n  of one kind share a frontmatter id. Renumber one before assigning anything.\n- `REGISTRY_PRESENT` is `true` only when the manifest has `id_registry` with a\n  `documents` map; when `false`, every registry check is skipped (counts `0`).\n  - `REGISTRY_UNREGISTERED` \u002F `unregistered` (WARN): the id is not in\n    `documents`. Add it in Step 7.\n  - `REGISTRY_ID_PATH_MISMATCH` \u002F `id_path_mismatch` (ERROR): the registry holds\n    this path under another id (`REGISTRY=`) or this id under another path\n    (`REGISTRY_PATH=`). A swapped pair is two rows.\n  - `REGISTRY_PATH_MISSING` \u002F `registry_path_missing` (ERROR): a `documents`\n    `path` not on disk.\n  - `COUNTER_STALE` \u002F `counter_stale` (WARN): a `last_*` counter is below the\n    highest id of its kind on disk (`MAX_ON_DISK=`). Raise it before Step 7.\n- `GH_ISSUE_MAPPINGS` and `MANIFEST_PRESENT` summarise the reverse-index build\n  (Step 9 detail below).\n- On WARN\u002FERROR, `REASON=` names the first finding as `\u003Ctype>: \u003Cdetail>`.\n\nThe audit is read-only; it makes no edits. Surface its counts as the Step 6\nreport and proceed to the mutating steps.\n\n### Step 7: Assign IDs (unless `--dry-run`)\n\nFor each document needing an ID:\n\nPRD and PRP ids come from the shared helper, which prints max(`id_registry.last_\u003Ckind>`,\nhighest id of that kind on disk) + 1. The counter alone can repeat an id that a\npulled or merged document already carries (#3554). Call the helper once per\ndocument, after the previous document's `id:` is written, so each call sees it:\n\n```bash\nbash \"${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Fblueprint-next-id.sh\" --kind PRD\nbash \"${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Fblueprint-next-id.sh\" --kind PRP\n```\n\n**PRDs**:\n1. Get the next ID from `blueprint-next-id.sh --kind PRD` (prints `PRD-NNN`)\n2. Insert into frontmatter after first `---`:\n   ```yaml\n   id: PRD-001\n   ```\n3. Update manifest: set `last_prd` to the assigned number, add to `documents`\n\n**ADRs**:\n1. Derive ID from filename: `0003-title.md` → `ADR-0003`, `ADR-003-title.md` → `ADR-003`\n2. Insert into frontmatter\n3. Add to manifest `documents`\n\n**PRPs**:\n1. Get the next ID from `blueprint-next-id.sh --kind PRP` (prints `PRP-NNN`)\n2. Insert into frontmatter\n3. Update manifest: set `last_prp` to the assigned number, add to `documents`\n\n**Work-Orders**:\n1. Derive ID from filename: `003-task.md` → `WO-003`\n2. Insert into frontmatter\n3. Add to manifest `documents`\n\n### Step 8: Extract Titles and Links\n\nFor each document, also extract:\n- **Title**: First `# ` heading or frontmatter `name`\u002F`title` field\n- **Existing links**: `relates-to`, `implements`, `github-issues` from frontmatter\n- **Status**: From frontmatter\n\nStore in manifest registry:\n\n```json\n{\n  \"documents\": {\n    \"PRD-001\": {\n      \"path\": \"docs\u002Fprds\u002Fuser-auth.md\",\n      \"title\": \"User Authentication\",\n      \"status\": \"Active\",\n      \"relates_to\": [\"ADR-0003\"],\n      \"github_issues\": [42],\n      \"created\": \"2026-01-15\"\n    }\n  }\n}\n```\n\n### Step 9: Build GitHub Issue Index\n\nThe Step 2 audit already groups the manifest's per-document `github_issues`\narrays into the reverse index (`GH_ISSUE_MAPPINGS=` reports how many distinct\nissue numbers map to documents). Write that reverse index into the manifest:\n\n```json\n{\n  \"github_issues\": {\n    \"42\": [\"PRD-001\", \"PRP-002\"],\n    \"45\": [\"WO-003\"]\n  }\n}\n```\n\n### Step 10: Create Issues for Orphans (if `--link-issues`)\n\nFor each document without `github-issues`:\n\n```\nquestion: \"Create GitHub issue for {ID}: {title}?\"\noptions:\n  - label: \"Yes, create issue\"\n    description: \"Creates [{ID}] {title} issue\"\n  - label: \"Skip this one\"\n    description: \"Leave unlinked for now\"\n  - label: \"Skip all remaining\"\n    description: \"Don't prompt for more orphans\"\n```\n\nIf yes:\n```bash\ngh issue create \\\n  --title \"[{ID}] {title}\" \\\n  --body \"## {Document Type}\n\n**ID**: {ID}\n**Document**: \\`{path}\\`\n\n{Brief description from document}\n\n---\n*Auto-generated by \u002Fblueprint:sync-ids*\" \\\n  --label \"{type-label}\"\n```\n\nUpdate document frontmatter and manifest with new issue number.\n\n`sync-ids` is a deterministic task and keeps no run state in the tracked\nmanifest (ADR-0027, #3548): do not write `task_registry[\"sync-ids\"]`\n`last_completed_at`, `last_result` or `stats`. The only manifest changes are\nthe `id_registry` edits made in Steps 1–10.\n\n### Step 11: Final Report\n\n```\nID Sync Complete\n\nAssigned IDs:\n- PRD-003: docs\u002Fprds\u002Fpayment-flow.md\n- PRD-004: docs\u002Fprds\u002Fnotifications.md\n- PRP-005: docs\u002Fprps\u002Fstripe-integration.md\n\nUpdated Manifest:\n- last_prd: 4\n- last_prp: 5\n- documents: 22 entries\n- github_issues: 18 mappings\n\n{If --link-issues:}\nCreated GitHub Issues:\n- #52: [PRD-003] Payment Flow\n- #53: [PRP-005] Stripe Integration\n\nStill orphaned (no GitHub issues):\n- ADR-0004: Database Migration Strategy\n- WO-008: Add error handling\n\nRun `\u002Fblueprint:status` to see full traceability report.\n```\n\n## Error Handling\n\n| Condition | Action |\n|-----------|--------|\n| No manifest | Error: Run `\u002Fblueprint:init` first |\n| No documents found | Warning: No documents to scan |\n| Frontmatter parse error | Warning: Skip file, report for manual fix |\n| `gh` not available | Skip issue creation, warn user |\n| Write permission denied | Error: Check file permissions |\n\n## Manifest Schema\n\nAfter sync, manifest includes:\n\n```json\n{\n  \"id_registry\": {\n    \"last_prd\": 4,\n    \"last_prp\": 5,\n    \"documents\": {\n      \"PRD-001\": {\n        \"path\": \"docs\u002Fprds\u002Fuser-auth.md\",\n        \"title\": \"User Authentication\",\n        \"status\": \"Active\",\n        \"relates_to\": [\"ADR-0003\"],\n        \"implements\": [],\n        \"github_issues\": [42],\n        \"created\": \"2026-01-10\"\n      },\n      \"ADR-0003\": {\n        \"path\": \"docs\u002Fadrs\u002F0003-session-storage.md\",\n        \"title\": \"Session Storage Strategy\",\n        \"status\": \"Accepted\",\n        \"domain\": \"authentication\",\n        \"relates_to\": [\"PRD-001\"],\n        \"github_issues\": [],\n        \"created\": \"2026-01-12\"\n      }\n    },\n    \"github_issues\": {\n      \"42\": [\"PRD-001\", \"PRP-002\"],\n      \"45\": [\"WO-003\"]\n    }\n  }\n}\n```\n",{"args":60,"name":5,"model":36,"created":61,"modified":62,"reviewed":63,"description":7,"allowed-tools":64,"argument-hint":65},"[--dry-run] [--link-issues]",1768867200000,1794528000000,1781049600000,"Read, Write, Edit, Glob, Bash, AskUserQuestion","--dry-run to preview changes, --link-issues to create GitHub issues for orphans","main","b47840019d190aa9afa1fd8d6d42ddd584a45641","blueprint-plugin\u002Fskills\u002Fblueprint-sync-ids",6,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002Flaurigates","Linux enthusiast, cloud engineer, neovim addict, electronics hobbyist.","2026-11-15 03:36:11",{"source":9,"skillName":5,"commands":75,"prompt":85,"zipAvailable":86},[76,79,82],{"tool":77,"command":78},"npx","npx skills add laurigates\u002Fclaude-plugins --skill blueprint-sync-ids",{"tool":80,"command":81},"bunx","bunx skills add laurigates\u002Fclaude-plugins --skill blueprint-sync-ids",{"tool":83,"command":84},"pnpm","pnpm dlx skills add laurigates\u002Fclaude-plugins --skill blueprint-sync-ids","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fblueprint-plugin\u002Fskills\u002Fblueprint-sync-ids\u002FSKILL.md",true,[88,94],{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fblueprint-sync-ids.sh","SCRIPT","脚本",15924,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fblueprint-plugin\u002Fskills\u002Fblueprint-sync-ids\u002Fscripts\u002Fblueprint-sync-ids.sh",{"path":95,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Ftests\u002Ftest-blueprint-sync-ids.sh",14106,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fblueprint-plugin\u002Fskills\u002Fblueprint-sync-ids\u002Fscripts\u002Ftests\u002Ftest-blueprint-sync-ids.sh",[99,107,129,148,164,186],{"skillNo":100,"name":101,"nameZh":17,"description":102,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":106},"01M7DS1CAJ1ESDX08PENF01J0S","session-workflow-capture","Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsession-plugin\u002Fskills\u002Fsession-workflow-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":108,"name":109,"nameZh":17,"description":110,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":55},"01M70PFHMH9ADY0CRE6047Y4B2","kitty-show-image","Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no \u002Fdev\u002Ftty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-show-image\u002FSKILL.md",[],[114,115,116,117,118,119,120,121,122,123,52,41,51,124,125,126,127,128,38,47],"show","kitty show image","image","kitty","show image","ls","get","send","open","dev","file","text","with","xdg","via",{"skillNo":130,"name":131,"nameZh":17,"description":132,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":55},"01M70PFEN18HKQ4RCQ1VPGMPTB","kitty-session-persistence","Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-session-persistence\u002FSKILL.md",[],[117,136,137,138,139,140,41,51,141,142,143,38,47,46,45,144,145,146,147,52],"kitty session persistence","session","persistence","false","snapshots","uname","reboot","terminal","snapshot","macos","sessions","restore",{"skillNo":149,"name":150,"nameZh":17,"description":151,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":55},"01M70PFC77XGXCVQ1543VGZHYR","kitty-remote-control","Safe kitty remote control from an agent — read panes with kitty @ ls\u002Fget-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-remote-control\u002FSKILL.md",[],[155,156,117,157,158,119,159,160,120,161,162,52,41,163,51,125,126,143,38,47],"kitty remote control","remote","control","remote control","running","never","panes","notify","query",{"skillNo":165,"name":166,"nameZh":17,"description":167,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":55},"01M70P6WVMCT5JG4SACTM69AF9","docs-reference-check","Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved\u002Fdeleted files, or wiring a doc-drift lint.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fdocumentation-plugin\u002Fskills\u002Fdocs-reference-check\u002FSKILL.md",[],[171,172,173,174,44,175,176,177,178,179,52,41,51,180,124,181,182,183,184,185],"docs reference check","check","reference check","reference","links","python3","repo","files","auto","drift","lint","wiring","chezmoi","references","cp",{"skillNo":187,"name":188,"nameZh":189,"description":190,"descriptionZh":191,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":192,"categories":193,"keywords":200,"publishedAt":55},"01M6C6NDE7DAQGNWSF22J5CJ0Z","youtube-upload","YouTube 视频上传与编辑","Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.","通过 Data API v3 将视频上传到 YouTube，并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fyoutube-plugin\u002Fskills\u002Fyoutube-upload\u002FSKILL.md",[194,197],{"categoryNo":195,"categoryName":196,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",{"categoryNo":198,"categoryName":199,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[201,202,203,204,176,48,47,205,45,206,207,208,52,51,124,209,210,41,211,212,213,128,38],"youtube upload","upload","youtube","Video","uv run","publishing","data","uv","api","v3","tags","id","title"]