[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CTMY5AY3NSNHGQJA0M7VP9":3,"skill-same:01M7CTMY5AY3NSNHGQJA0M7VP9":63},{"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},"01M7CTMY5AY3NSNHGQJA0M7VP9","update-docs",null,"Update project documentation to match code changes — generate codemaps, refresh READMEs, detect doc\u002Fcode drift using AST analysis. Use when updating documentation after code changes, generating codemaps, verifying doc accuracy, or detecting stale documentation. Do NOT use for writing API reference docs from scratch (use doc-coauthoring) or for creating new skill files (use making-editing-skills).","xiaden\u002FSkyScow","xiaden","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3605480?v=4","01M7CTGKNTD1XNQE710J977HVD","Lucian Hardy","01M7CTGKPVQ3XRNXNRJ3A6E31F",1,"MIT","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fupdate-docs\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: update-docs\ndescription: Update project documentation to match code changes — generate codemaps, refresh READMEs, detect doc\u002Fcode drift using AST analysis. Use when updating documentation after code changes, generating codemaps, verifying doc accuracy, or detecting stale documentation. Do NOT use for writing API reference docs from scratch (use doc-coauthoring) or for creating new skill files (use making-editing-skills).\n---\n\n# Documentation Update\n\n**Purpose:** Keep documentation synchronized with code changes through systematic analysis, codemap generation, and drift detection. Docs should always reflect the actual codebase state.\n\n---\n\n## When to Use\n\n**Trigger conditions:**\n\n- Code changes have been merged and docs need updating\n- Generating or refreshing codemaps for a codebase area\n- User asks to verify documentation accuracy\n- Detecting stale or drifted documentation\n- Updating README after feature additions or removals\n\n**Do NOT use this skill when:**\n\n- Writing API reference documentation from scratch (use `doc-coauthoring`)\n- Creating or editing skill files (use `making-editing-skills`)\n- Writing architecture decision records (use ADR tools)\n- Generating user-facing tutorials or guides (use `doc-coauthoring`)\n- The codebase hasn't changed and docs are already current\n\n---\n\n## How This Skill Is Structured\n\nThis skill uses progressive disclosure to keep context lean:\n\n| Level | What loads | Content |\n|-------|-----------|---------|\n| **Body** (always loaded) | Core workflow, decision tables, validation checklist | The 5-step doc update process, drift detection checks, when-to-update rules |\n| **References** (loaded on demand) | Templates, format examples, detailed patterns | Codemap template, README template, drift report format |\n\n---\n\n## Core Workflow\n\n### 1. Identify Changed Code\n\n```bash\ngit diff --name-only HEAD~5..HEAD    # recent changes\ngit log --oneline -20                 # what changed and why\n```\n\nFor each changed file, gather context using AFT tools:\n\n| Tool | Use for |\n|------|---------|\n| `aft_outline` | File structure, exported symbols, heading hierarchy |\n| `aft_zoom` | Read specific function\u002Fclass source with signatures |\n| `aft_search` | Find all references to a changed symbol across the codebase |\n| `aft_inspect` | Check for broken imports, dead code, or diagnostics |\n\n### 2. Analyze Code with AST\n\nUse AST-aware analysis to extract accurate documentation from code:\n\n- **Symbol extraction:** Use `aft_outline` to get all exported symbols (functions, classes, types) with their signatures and line ranges\n- **JSDoc\u002FTSDoc parsing:** Read doc comments directly from source via `aft_zoom` — these are the single source of truth for public API docs\n- **Dependency mapping:** Use `aft_zoom` with `callgraph: true` to understand what a function calls and what calls it\n- **Environment variables:** Parse `.env.example` for required configuration\n\n**Key principle:** Generate documentation *from* the code, not *about* the code. Every claim in docs should be traceable to a symbol, signature, or comment in the source.\n\n### 3. Detect Doc\u002FCode Drift\n\nCompare existing documentation against actual code state:\n\n| Check | Method |\n|-------|--------|\n| File paths mentioned in docs | Verify each path exists with `glob` or `read` |\n| Function signatures in docs | Compare against `aft_zoom` output |\n| Exported symbols listed | Compare against `aft_outline` output |\n| Code examples in docs | Verify they compile\u002Ftype-check |\n| Links to other docs | Verify target files exist |\n| Environment variables | Compare against `.env.example` |\n\n**Drift report format:** Use the template in [`references\u002Fdrift-report-format.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fdrift-report-format.md). Every stale\u002Fmissing item must reference a source-of-truth location in the codebase.\n\n### 4. Update Documentation\n\nApply fixes based on drift report, prioritized:\n\n1. **Remove stale references** — delete or update paths, signatures, examples that no longer match\n2. **Add missing docs** — document newly exported symbols, new env vars, new features\n3. **Refresh templates** — update README setup commands, codemap timestamps\n4. **Verify examples** — ensure code snippets compile and run\n\n### 5. Verify Accuracy\n\nBefore committing:\n\n- [ ] All file paths in docs verified to exist\n- [ ] Code examples compile\u002Ftype-check\n- [ ] All internal and external links tested\n- [ ] Freshness timestamps updated\n- [ ] No obsolete references remain\n- [ ] Codemaps generated from actual code (not hand-written)\n- [ ] Version numbers updated where applicable (package.json, config files)\n\n---\n\n## Codemaps\n\nCodemaps are structured documentation for a codebase area, generated from code. Use the template in [`references\u002Fcodemap-template.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fcodemap-template.md).\n\n**Rules:**\n- Generate from `aft_outline` and `aft_zoom` output — never hand-write module descriptions\n- Keep under 500 lines per codemap\n- Include freshness timestamp (last updated date)\n- Store in `docs\u002FCODEMAPS\u002F` with an `INDEX.md` linking all codemaps\n\n## README Updates\n\nUse the template in [`references\u002Freadme-template.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Freadme-template.md).\n\n**Rules:**\n- Setup commands must actually work — test them\n- Link to codemaps for architecture details, don't duplicate\n- List features that exist in the code, not features planned\n\n---\n\n## When to Update\n\n**Always update docs when:**\n- New major feature added\n- API routes changed (added, removed, signature changed)\n- Dependencies added or removed\n- Architecture significantly changed\n- Setup process modified\n- Environment variables added or renamed\n- Public API signatures changed (update JSDoc\u002FTSDoc comments)\n- TODO\u002FFIXME comments addressed or need resolution\n\n**Skip when:**\n- Minor bug fixes with no API impact\n- Cosmetic changes (formatting, comments)\n- Internal refactoring without external behavior changes\n\n---\n\n## References\n\n- **Codemap template:** [`references\u002Fcodemap-template.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fcodemap-template.md)\n- **README template:** [`references\u002Freadme-template.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Freadme-template.md)\n- **Drift report format:** [`references\u002Fdrift-report-format.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fdrift-report-format.md)\n- **Cliche data conventions:** [`references\u002Fcliche-data.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fcliche-data.md) — Placeholder data rules for documentation examples\n- **Related skills:** `doc-coauthoring` (writing docs from scratch), `making-editing-skills` (skill conventions), `capture-subsystem` (documenting subsystem mental models)\n","# Documentation Update\n\n**Purpose:** Keep documentation synchronized with code changes through systematic analysis, codemap generation, and drift detection. Docs should always reflect the actual codebase state.\n\n---\n\n## When to Use\n\n**Trigger conditions:**\n\n- Code changes have been merged and docs need updating\n- Generating or refreshing codemaps for a codebase area\n- User asks to verify documentation accuracy\n- Detecting stale or drifted documentation\n- Updating README after feature additions or removals\n\n**Do NOT use this skill when:**\n\n- Writing API reference documentation from scratch (use `doc-coauthoring`)\n- Creating or editing skill files (use `making-editing-skills`)\n- Writing architecture decision records (use ADR tools)\n- Generating user-facing tutorials or guides (use `doc-coauthoring`)\n- The codebase hasn't changed and docs are already current\n\n---\n\n## How This Skill Is Structured\n\nThis skill uses progressive disclosure to keep context lean:\n\n| Level | What loads | Content |\n|-------|-----------|---------|\n| **Body** (always loaded) | Core workflow, decision tables, validation checklist | The 5-step doc update process, drift detection checks, when-to-update rules |\n| **References** (loaded on demand) | Templates, format examples, detailed patterns | Codemap template, README template, drift report format |\n\n---\n\n## Core Workflow\n\n### 1. Identify Changed Code\n\n```bash\ngit diff --name-only HEAD~5..HEAD    # recent changes\ngit log --oneline -20                 # what changed and why\n```\n\nFor each changed file, gather context using AFT tools:\n\n| Tool | Use for |\n|------|---------|\n| `aft_outline` | File structure, exported symbols, heading hierarchy |\n| `aft_zoom` | Read specific function\u002Fclass source with signatures |\n| `aft_search` | Find all references to a changed symbol across the codebase |\n| `aft_inspect` | Check for broken imports, dead code, or diagnostics |\n\n### 2. Analyze Code with AST\n\nUse AST-aware analysis to extract accurate documentation from code:\n\n- **Symbol extraction:** Use `aft_outline` to get all exported symbols (functions, classes, types) with their signatures and line ranges\n- **JSDoc\u002FTSDoc parsing:** Read doc comments directly from source via `aft_zoom` — these are the single source of truth for public API docs\n- **Dependency mapping:** Use `aft_zoom` with `callgraph: true` to understand what a function calls and what calls it\n- **Environment variables:** Parse `.env.example` for required configuration\n\n**Key principle:** Generate documentation *from* the code, not *about* the code. Every claim in docs should be traceable to a symbol, signature, or comment in the source.\n\n### 3. Detect Doc\u002FCode Drift\n\nCompare existing documentation against actual code state:\n\n| Check | Method |\n|-------|--------|\n| File paths mentioned in docs | Verify each path exists with `glob` or `read` |\n| Function signatures in docs | Compare against `aft_zoom` output |\n| Exported symbols listed | Compare against `aft_outline` output |\n| Code examples in docs | Verify they compile\u002Ftype-check |\n| Links to other docs | Verify target files exist |\n| Environment variables | Compare against `.env.example` |\n\n**Drift report format:** Use the template in [`references\u002Fdrift-report-format.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fdrift-report-format.md). Every stale\u002Fmissing item must reference a source-of-truth location in the codebase.\n\n### 4. Update Documentation\n\nApply fixes based on drift report, prioritized:\n\n1. **Remove stale references** — delete or update paths, signatures, examples that no longer match\n2. **Add missing docs** — document newly exported symbols, new env vars, new features\n3. **Refresh templates** — update README setup commands, codemap timestamps\n4. **Verify examples** — ensure code snippets compile and run\n\n### 5. Verify Accuracy\n\nBefore committing:\n\n- [ ] All file paths in docs verified to exist\n- [ ] Code examples compile\u002Ftype-check\n- [ ] All internal and external links tested\n- [ ] Freshness timestamps updated\n- [ ] No obsolete references remain\n- [ ] Codemaps generated from actual code (not hand-written)\n- [ ] Version numbers updated where applicable (package.json, config files)\n\n---\n\n## Codemaps\n\nCodemaps are structured documentation for a codebase area, generated from code. Use the template in [`references\u002Fcodemap-template.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fcodemap-template.md).\n\n**Rules:**\n- Generate from `aft_outline` and `aft_zoom` output — never hand-write module descriptions\n- Keep under 500 lines per codemap\n- Include freshness timestamp (last updated date)\n- Store in `docs\u002FCODEMAPS\u002F` with an `INDEX.md` linking all codemaps\n\n## README Updates\n\nUse the template in [`references\u002Freadme-template.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Freadme-template.md).\n\n**Rules:**\n- Setup commands must actually work — test them\n- Link to codemaps for architecture details, don't duplicate\n- List features that exist in the code, not features planned\n\n---\n\n## When to Update\n\n**Always update docs when:**\n- New major feature added\n- API routes changed (added, removed, signature changed)\n- Dependencies added or removed\n- Architecture significantly changed\n- Setup process modified\n- Environment variables added or renamed\n- Public API signatures changed (update JSDoc\u002FTSDoc comments)\n- TODO\u002FFIXME comments addressed or need resolution\n\n**Skip when:**\n- Minor bug fixes with no API impact\n- Cosmetic changes (formatting, comments)\n- Internal refactoring without external behavior changes\n\n---\n\n## References\n\n- **Codemap template:** [`references\u002Fcodemap-template.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fcodemap-template.md)\n- **README template:** [`references\u002Freadme-template.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Freadme-template.md)\n- **Drift report format:** [`references\u002Fdrift-report-format.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fdrift-report-format.md)\n- **Cliche data conventions:** [`references\u002Fcliche-data.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fcliche-data.md) — Placeholder data rules for documentation examples\n- **Related skills:** `doc-coauthoring` (writing docs from scratch), `making-editing-skills` (skill conventions), `capture-subsystem` (documenting subsystem mental models)\n",{"name":5,"description":7},"main","8f95d6b7cbf4ec39161b4e6c8bc5e1493e58003c","config\u002Fskills\u002Fupdate-docs",0,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow","https:\u002F\u002Fgithub.com\u002Fxiaden","2026-09-30 22:33:49",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add xiaden\u002FSkyScow --skill update-docs",{"tool":37,"command":38},"bunx","bunx skills add xiaden\u002FSkyScow --skill update-docs",{"tool":40,"command":41},"pnpm","pnpm dlx skills add xiaden\u002FSkyScow --skill update-docs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fupdate-docs\u002FSKILL.md",true,[45,51,55,59],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fcliche-data.md","REFERENCE","参考文档",2899,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fcliche-data.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcodemap-template.md",2158,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fcodemap-template.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fdrift-report-format.md",1250,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fupdate-docs\u002Freferences\u002Fdrift-report-format.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Freadme-template.md",1625,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fupdate-docs\u002Freferences\u002Freadme-template.md",[64,70,77,83,90,97],{"skillNo":65,"name":66,"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":67,"categories":68,"keywords":69,"publishedAt":19},"01M7CTNJ49PJ794TEFBCNYYKQM","unquoted-colon","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Funquoted-colon\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7CTNENFBZPEX63HNSRBCW4T","quoted-description","Use when a plain scalar contains a colon: like this one.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Fquoted-description\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CTNBBPKA6GMCVEM3GPB59F","block-description","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Fblock-description\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CTN4M0SR4Z4TPJMHWC3A3B","work-routing","Canonical authority for who owns the next unit of work — direct work versus delegation, task tiers, bounded localization, the Change DAG size threshold, R&D evaluation routing, progressive research escalation, researcher scope signals, and QA\u002Fsupport owner selection. Use before choosing execution, investigation, design, or QA ownership; do not use to construct dispatch prompts, handoff schemas, or Change DAG\u002FDD tool operation.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fwork-routing\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7CTMSQD82CPD53C6F07J0R9","skill-loading-system","Explain or troubleshoot OpenCode skill discovery, loading, permissions, availability, or prompt injection.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fskill-loading-system\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7CTMN61X0FYDFE5SMHH6974","security-review","Review code or agent\u002Ftool configuration for security vulnerabilities using OWASP and AgentShield checks. Use for auth, data exposure, injection, secrets, XSS, deserialization, or security-sensitive agent, MCP, or plugin changes.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[],[]]