catalog-repair
Original:🇺🇸 English
Translated
自愈:扫描 topics.md 一致性并修复
5installs
Sourceiyangl/memory-hub
Added on
NPX Install
npx skill4agent add iyangl/memory-hub catalog-repairTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Purpose
Check and fix consistency of the topics.md index against actual files.
.memory/Checks
- Dead links → topics.md references non-existent files → auto-delete ()
fixed - Missing registration → bucket files not indexed in topics.md →
ai_actions - Duplicate topics → same topic header appears multiple times →
manual_actions - Invalid anchors → not found in target file →
#anchor(if close match) orai_actionsmanual_actions
Required Flow
bash
memory-hub catalog-repairOutput
JSON envelope with:
- : auto-fixed items
data.fixed - : items AI should self-heal
data.ai_actions - : items requiring human confirmation
data.manual_actions
Post-Processing
After receiving results:
- non-empty → AI executes self-healing (register missing files via
ai_actions, fix anchors), then runsmemory.writeagain to confirm clearedcatalog-repair - non-empty → report to user before task ends
manual_actions