
Ctx Index
- 471 installs
- 19.6k repo stars
- Updated August 4, 2026
- mksglu/context-mode
Index project files, docs, and conventions so Claude Code context mode can load the right slices per task instead of dumping the whole repo.
About
ctx-index from mksglu/context-mode builds and maintains a structured index for Claude Code context mode, cataloging modules, docs, and patterns so agents pull only relevant project context per task.
- Maps repo areas to retrievable context slices
- Reduces token waste from oversized prompts
- Keeps agent answers aligned with local conventions
- Supports repeatable context refresh as code changes
Ctx Index by the numbers
- 471 all-time installs (skills.sh)
- +89 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #1,840 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/mksglu/context-mode --skill ctx-indexAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 471 |
|---|---|
| repo stars | ★ 19.6k |
| Last updated | August 4, 2026 |
| Repository | mksglu/context-mode ↗ |
What it does
Index project files, docs, and conventions so Claude Code context mode can load the right slices per task instead of dumping the whole repo.
Files
Context Mode Index
Index local project content for later search.
Instructions
1. Prefer the ctx_index MCP tool when it is available. 2. Ask for a path only if the user did not provide one and the current project root is ambiguous. 3. Use path, not large inline content, so file bytes do not enter the conversation. 4. For repository indexing, pass conservative bounds and a clear source label:
ctx_index({
path: ".",
source: "project:<name>",
maxDepth: 5,
maxFiles: 200
})5. If MCP tools are unavailable, fall back to the CLI:
context-mode index . --source project:<name>6. Report the indexed source label, file count or section count, and the matching search command:
ctx_search({ source: "project:<name>", queries: ["..."] })Safety
- Do not index dependency directories, build outputs, secrets, or generated artifacts.
- Prefer
--excludeorexcludefor project-specific noisy paths. - For broad repos, ask the user before raising
maxFilesabove 500.