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

ctx-search — Claude Code skill: search project index

Searches a persistent project knowledge base without reloading source files into context. Queries indexed code, documentation, and session memory via FTS5.

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

What ctx-search does

ctx-search queries a local knowledge base that ctx-index maintains. Instead of reloading project files into conversation, you write a search query and the agent retrieves relevant passages from the indexed content. This saves context space and speeds up responses.

The skill works two ways: through the ctx_search MCP tool (if available) or via the CLI context-mode search. Keep queries short and precise—two to four technical terms. You can narrow the search to a specific project using source: "project:<name>", or search across documentation and session memory. If the index is empty, first run /context-mode:ctx-index or context-mode index <path>.

What it helps with

  • locate a function or variable reference in a large project without reloading files
  • recall a detail from documentation while coding
  • check how a similar problem was solved in previous sessions
  • reduce context size when the project is too large to fit

Example prompts for the agent

  • /context-mode:ctx-search authentication middleware
  • /context-mode:ctx-search token refresh --source project:auth-module
  • Find all WebSocket connection setup code in the index

How to install ctx-search

1Skills CLI (Vercel)

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

2Manually: put the files in place

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

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

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-search

How do I install ctx-search in Claude Code?

Run npx skills add mksglu/context-mode --skill ctx-search -a claude-code. The skill will appear in ~/.claude/skills/ctx-search/SKILL.md.

What does ctx-search do?

It searches your project's indexed knowledge base—code, documentation, and session memory. Returns relevant passages without reloading source files into context.

What if the index is empty?

Run /context-mode:ctx-index or context-mode index <path> first to populate the index. Then ctx-search will have indexed content to query.

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