Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

ctx-index — Claude Code skill: what it does, how to install

Indexes local files and directories into context-mode's FTS5 database. It allows future searches to pull exact snippets without reloading raw project files into context.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mksglu/context-mode --skill ctx-index -a claude-code
Open on GitHub

What ctx-index does

The skill indexes project content into a persistent FTS5 knowledge base for context-mode. When triggered, the assistant calls the ctx_index MCP tool and supplies the path rather than dumping file contents into the conversation. This keeps prompt tokens low. If the MCP server is not running, the skill falls back to the CLI command context-mode index.

For repository scans, the instructions recommend conservative boundaries with a depth of 5 and a ceiling of 200 files. Dependency folders, build artifacts, and secrets must not be indexed, using exclude or --exclude to filter noisy paths. If a large project requires raising maxFiles past 500, the assistant must ask for confirmation first. This stops the database from filling with noise. The run finishes by reporting the assigned source tag, the section count, and a matching ctx_search snippet.

What it helps with

  • index local project files into a persistent FTS5 store
  • run snippet searches via ctx_search without reparsing raw code
  • keep conversation context light by referencing paths instead of full file contents
  • filter out build artifacts and dependency folders with exclude flags

Example prompts for the agent

  • /context-mode:ctx-index
  • /context-mode:ctx-index index the current repository as project:web
  • /context-mode:ctx-index exclude build artifacts and save files to context-mode index

How to install ctx-index

1Skills CLI (Vercel)

npx skills add mksglu/context-mode --skill ctx-index -a claude-code

2Manually: put the files in place

~/.claude/skills/ctx-index/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ctx-index/

From the same set7

The whole set →

Similar

cli-resilience cheaper-inference A skill that hands the agent the OmniRoute CLI commands for breaker state, cooldowns and quota checks, so a stuck provider can be reset from the terminal. Claude Code CX Codex Cursor +1 963installs omni-version-manager cheaper-inference Installs, starts, restarts, and monitors embedded OmniRoute services like 9Router and CLIProxyAPI via dedicated API endpoints. Claude Code CX Codex Cursor +1 962installs omni-resilience cheaper-inference Monitors OmniRoute health, provider latency metrics, circuit breakers, quotas, and budget alerts. Use it when an agent needs to inspect provider failures or session limits. Claude Code CX Codex Cursor +1 962installs omni-cache cheaper-inference Skill for viewing LLM cache statistics, clearing entries, configuring TTL policies, and controlling semantic-similarity caching thresholds. Use it to optimize cache performance and monitor cache state. Claude Code CX Codex Cursor +1 961installs careful garrytan Intercepts Bash and PowerShell commands before execution to catch destructive actions like forced git pushes or database drops. Useful when giving agents terminal access. Claude Code CX Codex Cursor +1 375installs omni-sync-cloud cheaper-inference Syncs OmniRoute configuration, provider connections, and settings to and from cloud storage. Manages cloud worker authentication and remote backup targets. Claude Code CX Codex Cursor +1 958installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs

Questions about ctx-index

How do I install ctx-index in Claude Code?

Run npx skills add mksglu/context-mode --skill ctx-index -a claude-code.

What does ctx-index do?

It registers local project files into the context-mode FTS5 database. Once indexed, tools like ctx_search can fetch targeted snippets instead of rereading full files every turn.

How does ctx-index handle large codebases?

It applies conservative bounds such as a depth of 5 and 200 files, and asks for confirmation before bumping maxFiles over 500.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor