[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71SZ068K77ZEV8E464QZJXM":3,"skill-same:01M71SZ068K77ZEV8E464QZJXM":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":68},"01M71SZ068K77ZEV8E464QZJXM","index",null,"Use after creating, promoting, or editing docs in a directory whose INDEX.md should be regenerated, when frontmatter needs validating against the documentation standard, or to audit knowledge-base health. The sole writer of INDEX.md files.","Claudfather\u002FclauDNA","Claudfather","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F281278891?v=4","01M71SX82K0TBGQ394AB2G1T5Z","01M71SX83CE1S8YC06K9P3P962",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Findex\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"managed","standard","needs","when","use","claudron","files","knowledge","only","true","fix","editing","never","target","as","notice","tree","writer","shared","2026-11-10 13:02:02",false,"---\nname: index\nuser-invocable: true\ndescription: \"Use after creating, promoting, or editing docs in a directory whose INDEX.md should be regenerated, when frontmatter needs validating against the documentation standard, or to audit knowledge-base health. The sole writer of INDEX.md files.\"\nargument-hint: \"[directory-path] [--validate-only] [--recursive] [--fix] [--stale]\"\nrequires:\n  - cli: claudron\n    reason: \"Optional — engine-managed-root detection in Step 1 only (a `(claudron vault)` root is never indexed); without it, index degrades per the standard notice in ..\u002F_shared\u002Fclaudron-engine.md §3.1 and treats the target as a raw tree\"\n---\n\n# Index\n\n> **Codex:** Read `..\u002F_shared\u002Fcodex-tools.md` before following this skill. Apply its tool, root and dispatch mappings throughout.\n\nScan, validate, and index shared documentation. INDEX.md is the discovery layer — other bots scan it to find relevant docs without reading every file.\n\n**This skill is the SOLE writer of INDEX.md files.** Other skills (\u002Fclaudna:capture, \u002Fclaudna:publish) create or update docs, then call \u002Fclaudna:index to regenerate the index.\n\n## Arguments\n\nParse `$ARGUMENTS` at invocation:\n- **First positional arg:** Directory path to index. Defaults to the shared docs root, resolved per `..\u002F_shared\u002Fdocumentation-standard.md` §10 (\"locating the root\" — env override, else the CLAUDE.md `## Shared Documentation` section; env wins on disagreement, note the mismatch). §10 owns which env name applies; do not re-derive it here. No root resolves → detect from cwd.\n- `--validate-only`: Check frontmatter without regenerating INDEX.md.\n- `--recursive`: Index all subdirectories, not just the target.\n- `--fix`: Auto-fill missing required fields where inferrable.\n- `--stale`: Flag docs past their `expires:` date; apply the >90-day age checks below according to the document's role.\n\n---\n\n## Step 1: Discover Documents\n\n**Engine-managed roots are never indexed.** If the target is a root annotated `(claudron vault)` in CLAUDE.md's `## Shared Documentation` section, or came from the engine env var, stop and emit §10's engine-managed-root message (`..\u002F_shared\u002Fdocumentation-standard.md` §10, Annotation semantics — including its env-derived suffix). The engine owns vault indexing; an INDEX.md written there would be stale on arrival.\n\n**With Claudron absent, say so rather than assuming.** The annotation above is the only signal that survives without the CLI, so a root that *is* engine-managed but carries no annotation is indistinguishable from a raw tree. When `claudron` is not on PATH, emit the standard degradation notice (`..\u002F_shared\u002Fclaudron-engine.md` §3.1 — the `\u002Fclaudna:index` row) before indexing, and in `--auto` put the same line in `errors[]`. Indexing an unannotated engine-managed root is the failure this notice exists to make visible; it is never a silent assumption.\n\nWalk all `.md` files in the target directory (excluding `INDEX.md` itself).\n\n```bash\n# Find all markdown files, skip INDEX.md\nfind \u003Ctarget-dir> -maxdepth 1 -name '*.md' ! -name 'INDEX.md' -type f | sort\n```\n\nIf `--recursive`, walk subdirectories too. Each subdirectory gets its own INDEX.md.\n\n## Step 2: Parse and Validate Frontmatter\n\nFor each file, read and parse YAML frontmatter. Validate against the schema (vocabulary SSOT: `..\u002F_shared\u002Foutput-guide.md` §3 — the repo's only type\u002Fstatus enum table):\n\n**Required fields:**\n\n| Field | Type | Validation |\n|-------|------|------------|\n| title | string | Non-empty |\n| type | enum | A valid note type per the output-guide §3 vocabulary table |\n| status | enum | Valid for the type per the §3 table — canonical or accepted legacy (legacy gets a mapping note, not an error) |\n| owner | string | Non-empty |\n| created | date | Valid YYYY-MM-DD |\n\n**Pass-through fields** (accepted, never flagged, never required — output-guide §3): `maturity`, `schema_version`, and any `x-*`-prefixed field. Index reads past them; they are never validation errors.\n\nFor each validation error, record: file path, field name, issue (missing, invalid value, wrong type).\n\n### --fix Mode\n\nWhen `--fix` is set, auto-fill missing fields where inferrable:\n- `created:` — use file modification time (`stat` or `git log --format=%aI --diff-filter=A -- \u003Cfile>`)\n- `owner:` — use `git log --format=%an -1 -- \u003Cfile>`\n- `status:` — default per type: `current` for knowledge\u002Frunbook, `draft` for plan\u002Fdecision\u002Faudit\u002Freview (the §3 type defaults; unchanged by the SSOT rendering)\n- `type:` — infer from parent directory name if possible (planning\u002F → plan, knowledge\u002F → knowledge, decisions\u002F → decision, runbooks\u002F → runbook)\n\nWrite the fixed frontmatter back to the file. Report each auto-fix applied.\n\n### --stale Mode\n\nWhen `--stale` is set, check `expires:` on every document and flag any date in the past, including on historical records.\n\nIf a document is a settled historical decision record whose content preserves a past choice rather than current guidance, skip the age checks below. Otherwise, apply every age check below, including to living policies\u002Frunbooks and abandoned drafts. Establish that role from the content and existing type\u002Fstatus; a folder name or `type: decision` alone does not establish it.\n\n- No `updated:` field and `created:` is >90 days ago\n- `updated:` is >90 days ago\n- `last_verified:` is >90 days ago\n\nReport stale docs separately from validation errors.\n\n## Step 3: Regenerate INDEX.md\n\nSkip this step if `--validate-only` is set.\n\nSort documents:\n1. **Primary:** active\u002Fcurrent\u002Fratified\u002Fdraft first, then completed\u002Fstale\u002Fsuperseded\u002Farchived\n2. **Secondary:** alphabetical by title\n\nGenerate INDEX.md with one line per doc, including inline tags for grep-friendly filtering:\n\n```markdown\n# Index: \u003Cdirectory-name>\n\n- [Title](filename.md) — description (status: active, owner: greg, tags: auth, oauth)\n- [Another Doc](another.md) — description (status: current, owner: clog)\n```\n\nThe description is the first sentence of the document body (after frontmatter), truncated to 80 characters. If the doc has a `description:` in frontmatter, use that instead.\n\nWrite the generated INDEX.md to the target directory.\n\n## Step 4: Report\n\nOutput a summary:\n\n```\nIndexed: \u003Ctarget-dir>\n  Documents: N\n  Validation warnings: M\n  Stale (if --stale): K\n  Auto-fixed (if --fix): J\n\nWarnings:\n  - path\u002Fto\u002Ffile.md: missing required field 'owner'\n  - path\u002Fto\u002Fother.md: invalid status 'done' for type 'plan'\n\nStale:\n  - path\u002Fto\u002Fold.md: expires 2026-03-01 (expired 71 days ago)\n```\n\n## Rules\n\n- Never modify document content — only frontmatter (and only with `--fix`).\n- INDEX.md is always fully regenerated, never appended to. This avoids stale entries.\n- If the target directory doesn't exist, error clearly — don't create it.\n- Never index an engine-managed root — Step 1's refusal applies before any walk.\n- If no `.md` files are found (excluding INDEX.md), write an empty INDEX.md with just the header.\n\n$ARGUMENTS\n","# Index\n\n> **Codex:** Read `..\u002F_shared\u002Fcodex-tools.md` before following this skill. Apply its tool, root and dispatch mappings throughout.\n\nScan, validate, and index shared documentation. INDEX.md is the discovery layer — other bots scan it to find relevant docs without reading every file.\n\n**This skill is the SOLE writer of INDEX.md files.** Other skills (\u002Fclaudna:capture, \u002Fclaudna:publish) create or update docs, then call \u002Fclaudna:index to regenerate the index.\n\n## Arguments\n\nParse `$ARGUMENTS` at invocation:\n- **First positional arg:** Directory path to index. Defaults to the shared docs root, resolved per `..\u002F_shared\u002Fdocumentation-standard.md` §10 (\"locating the root\" — env override, else the CLAUDE.md `## Shared Documentation` section; env wins on disagreement, note the mismatch). §10 owns which env name applies; do not re-derive it here. No root resolves → detect from cwd.\n- `--validate-only`: Check frontmatter without regenerating INDEX.md.\n- `--recursive`: Index all subdirectories, not just the target.\n- `--fix`: Auto-fill missing required fields where inferrable.\n- `--stale`: Flag docs past their `expires:` date; apply the >90-day age checks below according to the document's role.\n\n---\n\n## Step 1: Discover Documents\n\n**Engine-managed roots are never indexed.** If the target is a root annotated `(claudron vault)` in CLAUDE.md's `## Shared Documentation` section, or came from the engine env var, stop and emit §10's engine-managed-root message (`..\u002F_shared\u002Fdocumentation-standard.md` §10, Annotation semantics — including its env-derived suffix). The engine owns vault indexing; an INDEX.md written there would be stale on arrival.\n\n**With Claudron absent, say so rather than assuming.** The annotation above is the only signal that survives without the CLI, so a root that *is* engine-managed but carries no annotation is indistinguishable from a raw tree. When `claudron` is not on PATH, emit the standard degradation notice (`..\u002F_shared\u002Fclaudron-engine.md` §3.1 — the `\u002Fclaudna:index` row) before indexing, and in `--auto` put the same line in `errors[]`. Indexing an unannotated engine-managed root is the failure this notice exists to make visible; it is never a silent assumption.\n\nWalk all `.md` files in the target directory (excluding `INDEX.md` itself).\n\n```bash\n# Find all markdown files, skip INDEX.md\nfind \u003Ctarget-dir> -maxdepth 1 -name '*.md' ! -name 'INDEX.md' -type f | sort\n```\n\nIf `--recursive`, walk subdirectories too. Each subdirectory gets its own INDEX.md.\n\n## Step 2: Parse and Validate Frontmatter\n\nFor each file, read and parse YAML frontmatter. Validate against the schema (vocabulary SSOT: `..\u002F_shared\u002Foutput-guide.md` §3 — the repo's only type\u002Fstatus enum table):\n\n**Required fields:**\n\n| Field | Type | Validation |\n|-------|------|------------|\n| title | string | Non-empty |\n| type | enum | A valid note type per the output-guide §3 vocabulary table |\n| status | enum | Valid for the type per the §3 table — canonical or accepted legacy (legacy gets a mapping note, not an error) |\n| owner | string | Non-empty |\n| created | date | Valid YYYY-MM-DD |\n\n**Pass-through fields** (accepted, never flagged, never required — output-guide §3): `maturity`, `schema_version`, and any `x-*`-prefixed field. Index reads past them; they are never validation errors.\n\nFor each validation error, record: file path, field name, issue (missing, invalid value, wrong type).\n\n### --fix Mode\n\nWhen `--fix` is set, auto-fill missing fields where inferrable:\n- `created:` — use file modification time (`stat` or `git log --format=%aI --diff-filter=A -- \u003Cfile>`)\n- `owner:` — use `git log --format=%an -1 -- \u003Cfile>`\n- `status:` — default per type: `current` for knowledge\u002Frunbook, `draft` for plan\u002Fdecision\u002Faudit\u002Freview (the §3 type defaults; unchanged by the SSOT rendering)\n- `type:` — infer from parent directory name if possible (planning\u002F → plan, knowledge\u002F → knowledge, decisions\u002F → decision, runbooks\u002F → runbook)\n\nWrite the fixed frontmatter back to the file. Report each auto-fix applied.\n\n### --stale Mode\n\nWhen `--stale` is set, check `expires:` on every document and flag any date in the past, including on historical records.\n\nIf a document is a settled historical decision record whose content preserves a past choice rather than current guidance, skip the age checks below. Otherwise, apply every age check below, including to living policies\u002Frunbooks and abandoned drafts. Establish that role from the content and existing type\u002Fstatus; a folder name or `type: decision` alone does not establish it.\n\n- No `updated:` field and `created:` is >90 days ago\n- `updated:` is >90 days ago\n- `last_verified:` is >90 days ago\n\nReport stale docs separately from validation errors.\n\n## Step 3: Regenerate INDEX.md\n\nSkip this step if `--validate-only` is set.\n\nSort documents:\n1. **Primary:** active\u002Fcurrent\u002Fratified\u002Fdraft first, then completed\u002Fstale\u002Fsuperseded\u002Farchived\n2. **Secondary:** alphabetical by title\n\nGenerate INDEX.md with one line per doc, including inline tags for grep-friendly filtering:\n\n```markdown\n# Index: \u003Cdirectory-name>\n\n- [Title](filename.md) — description (status: active, owner: greg, tags: auth, oauth)\n- [Another Doc](another.md) — description (status: current, owner: clog)\n```\n\nThe description is the first sentence of the document body (after frontmatter), truncated to 80 characters. If the doc has a `description:` in frontmatter, use that instead.\n\nWrite the generated INDEX.md to the target directory.\n\n## Step 4: Report\n\nOutput a summary:\n\n```\nIndexed: \u003Ctarget-dir>\n  Documents: N\n  Validation warnings: M\n  Stale (if --stale): K\n  Auto-fixed (if --fix): J\n\nWarnings:\n  - path\u002Fto\u002Ffile.md: missing required field 'owner'\n  - path\u002Fto\u002Fother.md: invalid status 'done' for type 'plan'\n\nStale:\n  - path\u002Fto\u002Fold.md: expires 2026-03-01 (expired 71 days ago)\n```\n\n## Rules\n\n- Never modify document content — only frontmatter (and only with `--fix`).\n- INDEX.md is always fully regenerated, never appended to. This avoids stale entries.\n- If the target directory doesn't exist, error clearly — don't create it.\n- Never index an engine-managed root — Step 1's refusal applies before any walk.\n- If no `.md` files are found (excluding INDEX.md), write an empty INDEX.md with just the header.\n\n$ARGUMENTS\n",{"name":5,"requires":42,"description":7,"argument-hint":45,"user-invocable":46},[43],{"cli":23,"reason":44},"Optional — engine-managed-root detection in Step 1 only (a `(claudron vault)` root is never indexed); without it, index degrades per the standard notice in ..\u002F_shared\u002Fclaudron-engine.md §3.1 and treats the target as a raw tree","[directory-path] [--validate-only] [--recursive] [--fix] [--stale]",true,"main","fc776f04574726e261087dbb521c1831bf0ea9d5","skills\u002Findex",1,"https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA","https:\u002F\u002Fgithub.com\u002FClaudfather","https:\u002F\u002Fcrog.gg","Rise of the machines","2026-11-15 02:10:52",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":46},[58,61,64],{"tool":59,"command":60},"npx","npx skills add Claudfather\u002FclauDNA --skill index",{"tool":62,"command":63},"bunx","bunx skills add Claudfather\u002FclauDNA --skill index",{"tool":65,"command":66},"pnpm","pnpm dlx skills add Claudfather\u002FclauDNA --skill index","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Findex\u002FSKILL.md",[],[70,95,105,128,153,169],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":37},"01M71T1STJ99BE1C0JYHCQW0XN","example-review","Use when you want to review pull requests with detailed, actionable feedback on code quality, correctness, and maintainability.","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fvalid-package\u002FSKILL.md",[],[77,78,79,80,81,82,83,84,85,86,21,22,87,88,89,90,91,92,93,94],"review","example","example review","actionable","pull requests","with","code","correctness","Bash","you","gh","gh pr","diff","view","pr","code quality","feedback","pull",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":37},"01M71T1RMCD30MAJC954JC7580","bad-skill","Too short","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Ffailing-package\u002FSKILL.md",[],[102,103,104],"bad","bad skill","short",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":37},"01M71T1NS97NJ2MQ993V7FBES7","worktree","Use when starting feature work that needs isolation from the current workspace, or when running multiple Claude sessions in parallel on different branches — creates and manages git worktrees. For fetching latest main into every existing worktree and branch across your sibling repos, use \u002Fclaudna:sync-branches instead.","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fworktree\u002FSKILL.md",[],[107,112,113,114,115,116,117,118,119,120,20,121,21,122,47,123,124,125,126,127],"sync","repos","git","isolation","running","sessions","worktrees","work","across","git worktrees","claude sessions","branches","branch","parallel","for","feature",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":37},"01M71T1HNVG1CZY8P904P6RB7P","weigh-development-paths","Use when at a development junction with multiple viable approaches — architecture choices, refactoring strategies, where to put new code, or which pattern to follow. Triggers on 'which approach', 'how should I', 'Option A vs B', or any point where the next step isn't obvious and the wrong choice creates rework.","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fweigh-development-paths\u002FSKILL.md",[],[135,136,137,138,139,140,141,142,143,144,145,146,147,83,21,148,149,150,151,152],"development","weigh development paths","paths","next step","path","refactoring","choice","pattern","at","how","next","strategies","architecture","auto","new","junction","option","which",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":37},"01M71T1ECV1T5E168GH70AY5B3","verify-completion","Use when about to claim work is complete, fixed, or passing -- requires running verification commands and confirming output before making any success claims.","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fverify-completion\u002FSKILL.md",[],[160,161,162,163,116,27,164,165,119,166,167,168,21,22],"verify completion","verify","claim","complete","commands","about","verification","claims","output",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":37},"01M71T1BC1HA7XQH0Q1H574FYS","vercel","Use for Vercel operations — deploy to production or preview (or roll back), view, filter, or debug deployment logs, or check project status (deployments, domains, env vars, config). Replaces \u002Fvercel-deploy, \u002Fvercel-logs, \u002Fvercel-status.","https:\u002F\u002Fgithub.com\u002FClaudfather\u002FclauDNA\u002Fblob\u002Fmain\u002Fskills\u002Fvercel\u002FSKILL.md",[],[171,176,177,178,179,180,181,182,183,22,184,27,185,186,187,188,126,90,189,190],"inspection","check","filter","env","logs","preview","debug deployment","debug","deployments","domains","deployment","env vars","project","project status","back"]