← ClaudeAtlas

indexing-a-repo-into-codebase-memorylisted

Index a repo into codebase-memory-mcp the right way: survey the tree, write a fitted .cbmignore, then run index_repository with mode=full (never default to fast). Triggers on: index this repo, cbm index, codebase-memory index, reindex with cbmignore, write a .cbmignore, index a directory of repos, the index is missing docs/skills/commands, why did fast mode skip files, cbm cache too big, delete orphaned or audit indexes.
sblattj/agent-chandlery · ★ 0 · AI & Automation · score 72
Install: claude install-skill sblattj/agent-chandlery
## More triggers cbm-index (old name) # indexing-a-repo-into-codebase-memory: fitted .cbmignore + full index `fast`/`moderate` modes silently add skip dirs (`docs`, `examples`, `testdata`, `.claude`, `scripts`, `bin`, ...) and filename filters (tests, `.d.ts`, lockfiles, `.min.js`). For prompt-pack, plugin, and docs-heavy repos that is the payload. Default to **full** and control noise with `.cbmignore` instead. ## Workflow 1. **Survey** the repo before deciding anything: ```bash ${SKILL_DIR:-~/.claude/skills/indexing-a-repo-into-codebase-memory}/scripts/survey.sh <repo> [top-n] ``` Read: top-level and second-level hotspots, extension mix, noise candidates, files >300K, duplicated mirror trees, existing `.gitignore`/`.cbmignore`. 2. **Decide excludes** with this rule of thumb. When unsure, keep it; a full index of extra markdown is cheap, a missing skill file is not. | Exclude | Keep | |---|---| | Build output, compiled bundles (`dist/`, `web-bundles/`, `public/` built assets) | Source, including `scripts/`, `bin/`, `tools/` | | Test fixtures, snapshots, test models, regression corpora | Test source files | | Vendored / third-party / generated code, `.patch`, `.xsd`, `.wsdl` | Hand-written configs (yaml/json/toml) | | Media, icons, fonts (already suffix-filtered, list only if a dir is pure media) | `docs/**/*.md`, ADRs, blog posts if they explain the system | | Lockfiles, `.map`, `.min.*`, large data (`csv`, `pkl`, `ipynb`, >1MB json bl