index-rebuild
Rebuild the index for a specific module or the entire project. Accepts --module flag for targeted rebuild and --m flag for custom instructions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Rebuild the index for a specific module or the entire project. Accepts --module flag for targeted rebuild and --m flag for custom instructions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a complete project index with per-module README files for efficient code navigation. Use when starting work on a new project or after major restructuring. Run once per project.
Show the current state of the project index: staleness, module coverage, hook health, and recent sync activity. Use to diagnose index issues.
| name | index-rebuild |
| description | Rebuild the index for a specific module or the entire project. Accepts --module flag for targeted rebuild and --m flag for custom instructions. |
| disable-model-invocation | true |
| allowed-tools | ["Read","Write","Edit","Glob","Grep","Bash","AskUserQuestion"] |
Rebuild the project index, optionally targeting a specific module with custom instructions.
/index-rebuild Full rebuild (all modules + index)
/index-rebuild --module MacroMan-Tracking Rebuild only Tracking README + update index
/index-rebuild --module MacroMan-Tracking --m "Focus on TrackState machine transitions"
Parse $ARGUMENTS for:
--module <name> — target a specific module (optional)--m "<instructions>" or --m <instructions> — custom emphasis instructions (optional)If no arguments: full rebuild of all modules.
If --module specified:
Say: "Rebuilding index for module: "
If full rebuild:
Say: "Rebuilding complete project index..."
git ls-files <module>/ (or Glob fallback)<Module>/README.md<!-- CUSTOM --> section content<!-- AUTO-GENERATED --> section using the same template as /index-init Step 3--m instructions provided:
**Index instructions**: <instructions>.claude/index.md:
.claude/index.summary.md from .claude/index.md (keep under 4KB)Perform the same steps as /index-init Steps 2-4, but:
<!-- CUSTOM --> sections in existing READMEs<!-- CUSTOM --> section in .claude/index.md.claude/index.md with the navigation strategy (tags → README → targeted grep)Summarize:
If targeted rebuild, suggest: "Run /index-status to verify the rebuild."