[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C326YA77PQD35QS6YR9H0R":3,"skill-same:01M6C326YA77PQD35QS6YR9H0R":91},{"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":67,"commitSha":68,"skillDirectory":69,"forksCount":70,"repositoryHtmlUrl":71,"repositoryHomepageUrl":72,"ownerHtmlUrl":73,"ownerBlogUrl":74,"ownerDescription":75,"updatedAt":76,"install":77,"resources":90},"01M6C326YA77PQD35QS6YR9H0R","kb-health","知识库健康检查与整理","Lint and health-check the knowledge base. Finds orphan pages, missing cross-references, stale claims, broken wiki-links, and regenerates the index.","对知识库进行 lint 检查与健康检查。查找孤立页面、缺失的交叉引用、过时表述、损坏的 wiki 链接，并重新生成索引。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fknowledge-base\u002Fskills\u002Fkb-health\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54],"health","kb health","kb","fix","claims","path","orphan","efficiency","knowledge-base","knowledge base","health-check","references","only","lint","write","read","broken","check","grep","haiku","knowledge","wiki","Bash","index","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nplatforms: [all]\nname: kb-health\ndescription: Lint and health-check the knowledge base. Finds orphan pages, missing cross-references, stale claims, broken wiki-links, and regenerates the index.\ncommandHint:\n  argumentHint: \"[--path \u003Csubtree>] [--kb \u003Cpath>] [--fix] [--index-only]\"\n  allowedTools: Read, Write, Glob, Grep, Bash\n  model: haiku\n  category: knowledge-base\n  modelRole: efficiency\n  modelTier: economy\n---\n\n# KB Health\n\nAudit the knowledge base for structural and content issues. Reports problems and, with `--fix`, repairs what can be fixed automatically (broken links, missing index entries). Human review is required for content issues (stale claims, empty sections).\n\n## Triggers\n\n- \"check KB health\" → full audit\n- \"find orphan pages\" → orphan check only\n- \"regenerate KB index\" → `--index-only`\n- `\u002Fkb-health` → direct invocation\n\n## Parameters\n\n### `--path \u003Csubtree>` (optional)\nScope the check to a subdirectory (e.g., `--path .aiwg\u002Fkb\u002Fentities\u002F`). Defaults to full KB root.\n\n### `--kb \u003Cpath>` (optional)\nRoot of the knowledge base. **Default**: resolved by `aiwg kb path` (#965), which reads `resolveStorage('kb')` and honors any `roots.kb` override in `.aiwg\u002Fstorage.config`. On the default `fs` backend this is `.aiwg\u002Fkb\u002F`.\n\n```bash\nKB_ROOT=$(aiwg kb path)\naiwg kb list --prefix entities\u002F\naiwg kb get entities\u002Ffoo.md\n```\n\nFortemi storage routing here is only a persistence backend choice. It is not the\nFortemi Core index\u002Fsearch backend used by `aiwg index ... --backend\nfortemi-core`; KB graph health remains local\u002Fstorage-routed, while Fortemi Core\ntraversal parity is exercised through `aiwg index neighbors --graph kb\n--backend fortemi-core` after an explicit sync.\n\n### `--fix` (optional)\nAutomatically repair issues that are safe to fix without human judgment:\n- Remove references to confirmed-missing pages from Sources tables\n- Add pages missing from the index\n- Normalize slug inconsistencies (spaces → hyphens in filenames)\n\nDoes NOT auto-fix: empty required sections, stale claim dates, ambiguous duplicates.\n\n### `--index-only` (optional)\nSkip all checks; only regenerate `index.md`.\n\n---\n\n## Checks\n\n### 1. Orphan Pages\n\nAn orphan is a page with no incoming `[[wiki-link]]` references from any other KB page.\n\nProcedure:\n1. Collect all `.md` files under `\u003Ckb>\u002F`.\n2. For each file, extract all `[[...]]` references.\n3. Build an inverted index: page → set of pages that link to it.\n4. Pages with zero incoming links are orphans.\n\nOrphans in `sources\u002F` are less critical (sources are often terminal nodes). Report them separately.\n\n### 2. Broken Wiki-Links\n\nFor every `[[link-target]]` found in any KB page:\n1. Derive the expected file path (slug → filename in each subdirectory).\n2. Check whether the file exists.\n3. If not: report as a broken link with the containing file and line number.\n\nWith `--fix`: remove confirmed-broken links from Sources tables. Flag broken links in prose sections for manual review (do not silently remove).\n\n### 3. Empty Required Sections\n\nTemplates define required sections (Overview, Definition, Key Takeaways, etc.).\nDetect pages where a required section header exists but the body is a placeholder (`_..._` or a single empty line).\n\nReport as warnings, not errors. Do not auto-fix content.\n\n### 4. Stale Pages\n\nA page is considered stale if:\n- Its `_Last updated:` date is more than 180 days ago, AND\n- At least one source it references was published after that date (detectable via source summary dates)\n\nReport stale pages as advisory — staleness is informational, not a structural error.\n\n### 5. Duplicate Slugs\n\nDetect files with the same normalized slug in different subdirectories (e.g., `entities\u002Fpython.md` and `concepts\u002Fpython.md`). These may be legitimate or accidental duplicates. Report all cases; do not auto-resolve.\n\n---\n\n## Index Regeneration\n\nAlways regenerate `\u003Ckb>\u002Findex.md` at the end of a health check run (or when `--index-only` is used).\n\nThe index lists all KB pages grouped by directory with their first-line description (the `>` blockquote line from templates):\n\n```markdown\n# Knowledge Base Index\n\n_Generated: YYYY-MM-DD — N pages_\n\n## Entities (N)\n- [Entity Name](entities\u002Fentity-name.md) — type · domain\n\n## Concepts (N)\n- [Concept Name](concepts\u002Fconcept-name.md) — category · domain\n\n## Sources (N)\n- [Source Title](sources\u002Fsource-slug.md) — type · author · date\n\n## Comparisons (N)\n- [A vs B](comparisons\u002Fa-vs-b.md) — purpose\n\n## Syntheses (N)\n- [Synthesis Title](syntheses\u002Fsynthesis-slug.md) — type · confidence\n```\n\n---\n\n## Report Format\n\n```\nKB Health Report — YYYY-MM-DD\nRoot: .aiwg\u002Fkb\u002F\nPages scanned: N\n\nERRORS (must fix)\n  Broken links: N\n    entities\u002Ffoo.md:12 — [[missing-page]] not found\n\nWARNINGS (review recommended)\n  Orphan pages: N\n    sources\u002Fold-article.md — no incoming links\n  Empty sections: N\n    concepts\u002Fbar.md — Definition section is placeholder\n  Stale pages: N\n    entities\u002Fbaz.md — last updated 2024-01-01 (>180 days)\n\nINFO\n  Duplicate slugs: N\n    entities\u002Fpython.md and concepts\u002Fpython.md share slug \"python\"\n\nIndex regenerated: .aiwg\u002Fkb\u002Findex.md (N entries)\n```\n\n---\n\n## Scope Limits\n\n- Read-only by default. `--fix` enables targeted writes; `--index-only` writes only `index.md`.\n- Do not delete any pages, even if they appear to be duplicates. Report and let the human decide.\n- Maximum pages scanned per run: 500. If KB exceeds this, use `--path` to scope.\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fknowledge-base\u002Ftemplates\u002Fentity-page.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fknowledge-base\u002Ftemplates\u002Fconcept-page.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fknowledge-base\u002Ftemplates\u002Fsource-summary.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fknowledge-base\u002Fskills\u002Fkb-ingest\u002FSKILL.md\n","# KB Health\n\nAudit the knowledge base for structural and content issues. Reports problems and, with `--fix`, repairs what can be fixed automatically (broken links, missing index entries). Human review is required for content issues (stale claims, empty sections).\n\n## Triggers\n\n- \"check KB health\" → full audit\n- \"find orphan pages\" → orphan check only\n- \"regenerate KB index\" → `--index-only`\n- `\u002Fkb-health` → direct invocation\n\n## Parameters\n\n### `--path \u003Csubtree>` (optional)\nScope the check to a subdirectory (e.g., `--path .aiwg\u002Fkb\u002Fentities\u002F`). Defaults to full KB root.\n\n### `--kb \u003Cpath>` (optional)\nRoot of the knowledge base. **Default**: resolved by `aiwg kb path` (#965), which reads `resolveStorage('kb')` and honors any `roots.kb` override in `.aiwg\u002Fstorage.config`. On the default `fs` backend this is `.aiwg\u002Fkb\u002F`.\n\n```bash\nKB_ROOT=$(aiwg kb path)\naiwg kb list --prefix entities\u002F\naiwg kb get entities\u002Ffoo.md\n```\n\nFortemi storage routing here is only a persistence backend choice. It is not the\nFortemi Core index\u002Fsearch backend used by `aiwg index ... --backend\nfortemi-core`; KB graph health remains local\u002Fstorage-routed, while Fortemi Core\ntraversal parity is exercised through `aiwg index neighbors --graph kb\n--backend fortemi-core` after an explicit sync.\n\n### `--fix` (optional)\nAutomatically repair issues that are safe to fix without human judgment:\n- Remove references to confirmed-missing pages from Sources tables\n- Add pages missing from the index\n- Normalize slug inconsistencies (spaces → hyphens in filenames)\n\nDoes NOT auto-fix: empty required sections, stale claim dates, ambiguous duplicates.\n\n### `--index-only` (optional)\nSkip all checks; only regenerate `index.md`.\n\n---\n\n## Checks\n\n### 1. Orphan Pages\n\nAn orphan is a page with no incoming `[[wiki-link]]` references from any other KB page.\n\nProcedure:\n1. Collect all `.md` files under `\u003Ckb>\u002F`.\n2. For each file, extract all `[[...]]` references.\n3. Build an inverted index: page → set of pages that link to it.\n4. Pages with zero incoming links are orphans.\n\nOrphans in `sources\u002F` are less critical (sources are often terminal nodes). Report them separately.\n\n### 2. Broken Wiki-Links\n\nFor every `[[link-target]]` found in any KB page:\n1. Derive the expected file path (slug → filename in each subdirectory).\n2. Check whether the file exists.\n3. If not: report as a broken link with the containing file and line number.\n\nWith `--fix`: remove confirmed-broken links from Sources tables. Flag broken links in prose sections for manual review (do not silently remove).\n\n### 3. Empty Required Sections\n\nTemplates define required sections (Overview, Definition, Key Takeaways, etc.).\nDetect pages where a required section header exists but the body is a placeholder (`_..._` or a single empty line).\n\nReport as warnings, not errors. Do not auto-fix content.\n\n### 4. Stale Pages\n\nA page is considered stale if:\n- Its `_Last updated:` date is more than 180 days ago, AND\n- At least one source it references was published after that date (detectable via source summary dates)\n\nReport stale pages as advisory — staleness is informational, not a structural error.\n\n### 5. Duplicate Slugs\n\nDetect files with the same normalized slug in different subdirectories (e.g., `entities\u002Fpython.md` and `concepts\u002Fpython.md`). These may be legitimate or accidental duplicates. Report all cases; do not auto-resolve.\n\n---\n\n## Index Regeneration\n\nAlways regenerate `\u003Ckb>\u002Findex.md` at the end of a health check run (or when `--index-only` is used).\n\nThe index lists all KB pages grouped by directory with their first-line description (the `>` blockquote line from templates):\n\n```markdown\n# Knowledge Base Index\n\n_Generated: YYYY-MM-DD — N pages_\n\n## Entities (N)\n- [Entity Name](entities\u002Fentity-name.md) — type · domain\n\n## Concepts (N)\n- [Concept Name](concepts\u002Fconcept-name.md) — category · domain\n\n## Sources (N)\n- [Source Title](sources\u002Fsource-slug.md) — type · author · date\n\n## Comparisons (N)\n- [A vs B](comparisons\u002Fa-vs-b.md) — purpose\n\n## Syntheses (N)\n- [Synthesis Title](syntheses\u002Fsynthesis-slug.md) — type · confidence\n```\n\n---\n\n## Report Format\n\n```\nKB Health Report — YYYY-MM-DD\nRoot: .aiwg\u002Fkb\u002F\nPages scanned: N\n\nERRORS (must fix)\n  Broken links: N\n    entities\u002Ffoo.md:12 — [[missing-page]] not found\n\nWARNINGS (review recommended)\n  Orphan pages: N\n    sources\u002Fold-article.md — no incoming links\n  Empty sections: N\n    concepts\u002Fbar.md — Definition section is placeholder\n  Stale pages: N\n    entities\u002Fbaz.md — last updated 2024-01-01 (>180 days)\n\nINFO\n  Duplicate slugs: N\n    entities\u002Fpython.md and concepts\u002Fpython.md share slug \"python\"\n\nIndex regenerated: .aiwg\u002Fkb\u002Findex.md (N entries)\n```\n\n---\n\n## Scope Limits\n\n- Read-only by default. `--fix` enables targeted writes; `--index-only` writes only `index.md`.\n- Do not delete any pages, even if they appear to be duplicates. Report and let the human decide.\n- Maximum pages scanned per run: 500. If KB exceeds this, use `--path` to scope.\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fknowledge-base\u002Ftemplates\u002Fentity-page.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fknowledge-base\u002Ftemplates\u002Fconcept-page.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fknowledge-base\u002Ftemplates\u002Fsource-summary.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fknowledge-base\u002Fskills\u002Fkb-ingest\u002FSKILL.md\n",{"name":5,"namespace":60,"platforms":61,"commandHint":63,"description":7},"aiwg",[62],"all",{"model":50,"category":39,"modelRole":38,"modelTier":64,"allowedTools":65,"argumentHint":66},"economy","Read, Write, Glob, Grep, Bash","[--path \u003Csubtree>] [--kb \u003Cpath>] [--fix] [--index-only]","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Fknowledge-base\u002Fskills\u002Fkb-health",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":78,"prompt":88,"zipAvailable":89},[79,82,85],{"tool":80,"command":81},"npx","npx skills add jmagly\u002Faiwg --skill kb-health",{"tool":83,"command":84},"bunx","bunx skills add jmagly\u002Faiwg --skill kb-health",{"tool":86,"command":87},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill kb-health","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fknowledge-base\u002Fskills\u002Fkb-health\u002FSKILL.md",true,[],[92,100,105,129,148,153],{"skillNo":93,"name":94,"nameZh":17,"description":95,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":99},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":101,"name":94,"nameZh":17,"description":95,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":99},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":17,"description":108,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":55},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[112,113,114,115,116,46,117,118,119,120,121,122,123,53,124,43,125,126,127,128],"hardening","host","host hardening","verification","secrets","request","remediation","recommendations","audit","plan","port","bind","access","retention","re","never","firewall",{"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},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[136,137,138,139,140,45,46,141,122,127,53,142,113,143,43,144,145,128,146,147],"analysis","exposure analysis","collection","reconstruction","operator","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":149,"name":107,"nameZh":17,"description":108,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":55},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[112,113,114,126,127,128,123,125,119,116,46,117,118,120,121,122,115,53,124,43],{"skillNo":154,"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":155,"categories":156,"keywords":157,"publishedAt":55},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[136,137,147,146,140,145,144,43,139,45,46,141,122,138,53,142,113,128,127,143]]