index-rebuild

index-rebuild is a skill for Claude Code from MacroMan5/macromanatlas. It costs 33 tokens per session (721 once invoked), scanned A, original, MIT.

A command that rebuilds a project's searchable index, either for the whole project or for one module. A module is a distinct part of a larger codebase.

In plain words
What is it for?
For rebuilding every module, updating the index for a named module, or supplying custom instructions about what to emphasize.
Why use it?
It keeps project documentation and search information aligned with the current code, while allowing a focused rebuild when only one part changed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the macromanatlas plugin — 3 skills, 4 hooks shipped together

Good fit For rebuilding every module, updating the index for a named module, or supplying custom instructions about what to emphasize.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/macroman5/macromanatlas/index-rebuild
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MacroMan5/macromanatlas --skill index-rebuild
Clone the repo
git clone --depth 1 https://github.com/MacroMan5/macromanatlas

Made for: Claude Code.

Or install macromanatlas, the plugin that ships this one along with the rest of its 3 skills, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for index-rebuild

README.md
[![agentmods](https://agentmods.dev/badge/skills/macroman5/macromanatlas/index-rebuild/github.svg)](https://agentmods.dev/skills/macroman5/macromanatlas/index-rebuild)
Your own site
<a href="https://agentmods.dev/skills/macroman5/macromanatlas/index-rebuild"><img src="https://agentmods.dev/badge/skills/macroman5/macromanatlas/index-rebuild/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for index-rebuild

Your own site · 80×15
<a href="https://agentmods.dev/skills/macroman5/macromanatlas/index-rebuild"><img src="https://agentmods.dev/badge/skills/macroman5/macromanatlas/index-rebuild.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 721 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00721
Opus 5 $0.00016 $0.00360
Sonnet 5 $0.00007 $0.00144
Haiku 4.5 $0.00003 $0.00072

Measured 11d ago against content hash 8d4742df82f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

index-rebuild scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/index-rebuild/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/index-rebuild

Rebuild the project index, optionally targeting a specific module with custom instructions.

Usage

/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"

Step 1: Parse arguments

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.

Step 2: Announce

If --module specified: Say: "Rebuilding index for module: " If full rebuild: Say: "Rebuilding complete project index..."

Step 3a: Targeted rebuild (--module specified)

  1. Verify the module directory exists. If not, list available modules and ask user to pick one.
  2. Scan the module:
    • List files with git ls-files <module>/ (or Glob fallback)
    • Read interface/header/export files for public API
    • Extract dependencies from build files (CMakeLists.txt, package.json, Cargo.toml, etc.)
    • Generate tags from file names, class names, function names
  3. Read existing <Module>/README.md
  4. Preserve the <!-- CUSTOM --> section content
  5. Regenerate the <!-- AUTO-GENERATED --> section using the same template as /index-init Step 3
  6. If --m instructions provided:
    • Use them to guide emphasis in the README generation (what classes to detail, what patterns to document)
    • Save the instructions in the CUSTOM section as: **Index instructions**: <instructions>
  7. Write the updated README
  8. Update .claude/index.md:
    • Update the module's row in the Modules table
    • Update the Tag Index for this module's tags only
  9. Regenerate .claude/index.summary.md from .claude/index.md (keep under 4KB)

Step 3b: Full rebuild (no --module flag)

Perform the same steps as /index-init Steps 2-4, but:

  • PRESERVE all <!-- CUSTOM --> sections in existing READMEs
  • PRESERVE the <!-- CUSTOM --> section in .claude/index.md
  • Do NOT re-add the CLAUDE.md section if it already exists (look for "Code Navigation" or "Code Index")
  • Do NOT modify hooks (they're managed by the plugin)
  • Regenerate the "How to Use" section in .claude/index.md with the navigation strategy (tags → README → targeted grep)

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 73 lines · 33 tokens per session scan A 8d4742df82f3

Subscribe to this mod's changes

index-rebuild is a skill published in the GitHub repository MacroMan5/macromanatlas (3 stars, last pushed 6mo ago), licensed MIT. It adds 33 tokens to every session and 721 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

delegate

Let Claude Architect route a versioned implementation spec through the trusted MCP runtime, independently review the Candidate Artifact, record a decision, and integrate only accepted bytes. Use for implementation delegation, Producer selection, or commitment-boundary review.

PyModel/claude-architect · 47 tokens

codex

Run the Codex CLI directly in the user's checkout for code analysis, refactoring, or automated editing without Claude Architect's verified delegation lifecycle.

PyModel/claude-architect · 31 tokens

commit

A guided process for committing code changes to Git. It checks the working tree, follows a conventional commit format, links a task when available, reviews the changes, and asks for approval.

restarter/lets-workflow · 90 tokens

x-multi-llm-align

A review process in which two sub-agents examine an API, data format, event schema, or workflow from their separate implementation perspectives. The user passes documents and feedback between them over multiple rounds.

KtKID/x-dev-pipeline · 293 tokens

design

Create a doc-as-code design package from a PRD or SPEC. Conditionally generates C4 diagrams (Context/Container/Component), sequence diagrams, ER diagram + Data Dictionary, OpenAPI 3.0, AsyncAPI 3.0, ADRs, domain glossary, state diagrams, and deployment view as Mermaid-rendered Markdown files. Use when PM mentions…

cryndoc/polisade-orchestrator · 162 tokens

x-cr

A software-correctness investigation skill for finding why code behaves differently from what was expected. It uses evidence from code paths, specifications, tests, logs, and changes to assess possible causes.

KtKID/x-dev-pipeline · 183 tokens