ctx-index
🤖 AI Summary
**ctx-index** indexes a local project directory (via MCP tool or CLI fallback) into a searchable context store, using a specified path, source label, and conservative depth/file limits. It then reports the indexed source, file count, and the corresponding `ctx_search` command for later retrieval.
How to Install
Claude Code:
git clone --depth 1 https://github.com/mksglu/context-mode.git && cp context-mode/skills/ctx-index ~/.claude/skills/ctx-index -r# 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:
```javascript
ctx_index({
path: ".",
source: "project:",
maxDepth: 5,
maxFiles: 200
})
```
5. If MCP tools are unavailable, fall back to the CLI:
```bash
context-mode index . --source project:
```
6. Report the indexed source label, file count or section count, and the matching search command:
```javascript
ctx_search({ source: "project:", queries: ["..."] })
```
## Safety
- Do not index dependency directories, build outputs, secrets, or generated artifacts.
- Prefer `--exclude` or `exclude` for project-specific noisy paths.
- For broad repos, ask the user before raising `maxFiles` above 500.
Details
| Category | Coding → generation |
| Source | mksglu/context-mode |
| SKILL.md | View on GitHub → |
| Repo Stars | ★ 18.0K |
| Est. per Skill | ~2.0K (shared across 9 skills from this repo) |
| Difficulty | Intermediate |
| Risk Level | N/A |
Related Skills
jq
jq — JSON Querying and Transformation Overview jq is the standard CLI tool for querying and reshapin
pubmed-database
PubMed Database Overview PubMed is the U.S. National Library of Medicine's comprehensive database pr
angular-ui-patterns
Angular UI Patterns Core Principles Never show stale UI - Loading states only when actually loading
animejs-animation
Anime.js Animation Skill Anime.js is a lightweight but extremely powerful JavaScript animation engin
Works Well With
Skills from the same repository — often designed to work together
context-mode
Context Mode: Default for All Large Output MANDATORY RULE Default to context-mode for ALL commands.
ctx-doctor
Context Mode Doctor Run diagnostics and display results directly in the conversation. Instructions 1
ctx-insight
Context Mode Insight Open the personal analytics dashboard in the browser. Instructions 1. Call the