A Claude skill that indexes codebases with minimal context‑window overhead using tiered memory.
SaferSkills independently audited repo-indexer (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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 tokenspython3 scripts/estimate-tokens.pyMust pass: CLAUDE.md < 500 tokens, all memory files within budget.
If validation fails:
.claude/memory/ filesscripts/estimate-tokens.pypython3 scripts/generate-memory-update.pySuggest 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 python3~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.