From repo-indexer
Indexes and documents a codebase for persistent Claude context with minimal token overhead. Use when asked to index a repo, understand a codebase, create CLAUDE.md, set up Claude memory, bootstrap context, onboard to a project, or document codebase for Claude. Triggers on phrases like "index this repo", "understand this codebase", "set up context", "create project memory", "help me onboard". Creates tiered memory system using Claude native memory + minimal boot files + on-demand loading + conversation history as knowledge store. Do NOT use for general code questions, debugging, or tasks unrelated to codebase indexing/documentation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/repo-indexer:repo-indexerThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Indexes codebases with minimal context window overhead using tiered memory.
Indexes codebases with minimal context window overhead using tiered memory.
Prerequisites: Python 3.9+. Run from the project root directory.
L0: Claude Native Memory → repo roster, patterns (~100 tokens, auto)
L1: CLAUDE.md → boot loader only (<500 tokens, auto-load)
L2: .claude/memory/*.md → deep context (on-demand, explicit load)
L3: Conversation History → full analysis (searchable, 0 cost until used)
Token budgets: Native Memory ~100–300 | CLAUDE.md <500 | memory/*.md <10,000 total | Past chats: 0 until searched
L2 file loading guide: Architecture decisions → architecture.md | Code style → conventions.md | Unknown terms → glossary.md
Use TodoWrite to track each phase dynamically:
python3 scripts/detect-repo-type.py "$ARGUMENTS"
Analyze systematically:
Before generating files, present the proposed .claude/ structure to the user for confirmation.
Output to conversation (L3):
Full analysis using format in references/templates.md → "Indexing Output Format". Include ### SEARCH KEYWORDS for retrieval.
Select CLAUDE.md template by repo type:
Use the type-specific variant from references/templates.md:
Create files:
.claude/
├── memory/
│ ├── architecture.md # From references/templates.md
│ ├── conventions.md
│ └── glossary.md
├── plans/ # Empty, user-managed
└── checkpoints/ # Empty, user-managed
CLAUDE.md # At repo root, <500 tokens
python3 scripts/estimate-tokens.py
Must pass: CLAUDE.md < 500 tokens, all memory files within budget.
If validation fails:
.claude/memory/ filesscripts/estimate-tokens.pypython3 scripts/generate-memory-update.py
Suggest user add to Claude's native memory:
Repo: {name} | Type: {type} | Stack: {stack}
{name} indexed {date} | Key: {modules}
User: "Index this repo"
User: "Help me understand this codebase"
<!-- USER --> sectionsCommon issues:
python3 --version or which python3npx claudepluginhub jyshnkr/repo-indexer --plugin repo-indexerAnalyzes an unfamiliar codebase and generates a structured onboarding guide with architecture map, key entry points, conventions, and a starter CLAUDE.md.
Analyzes unfamiliar codebases to generate structured onboarding guides with architecture maps, key entry points, conventions, and starter CLAUDE.md.
Explores codebases with Repowise indexing for architecture understanding, searching, and answering questions without raw source grepping.