JavaScript is disabled. Some features may not work.
ctx-index — ★ 18.0K GitHub Stars — Install Guide | SkillsNav
🇺🇸 English🇨🇳 中文
SkillsNav
Home

ctx-index

★ 18K repogenerationN/AIntermediateClaude MCP
🤖 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
Sourcemksglu/context-mode
SKILL.mdView on GitHub →
Repo Stars★ 18.0K
Est. per Skill~2.0K (shared across 9 skills from this repo)
DifficultyIntermediate
Risk LevelN/A

Related Skills

Works Well With

Skills from the same repository — often designed to work together