mcpField
C
ctx-search

ctx-search

github.com/mksgluAgent workflows32.7k1.1k installsUpdated today
Repository

About ctx-search

ctx-search is a skill for searching indexed content without bringing raw sources back into conversation context. It helps agents query indexed material with batched, scoped searches, using the `ctx_search` MCP tool or the CLI.

Key features

  1. 01Search indexed content
  2. 02Batch related queries
  3. 03Scope searches by source
  4. 04Use specific short queries
  5. 05Fall back to the CLI

Use cases

  1. 01Find information across indexed project files
  2. 02Search multiple related technical topics

MCP support

Prefers the `ctx_search` MCP tool for querying indexed content; if MCP tools are unavailable, it falls back to the `context-mode search` CLI.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mksglu/context-mode --skill ctx-search

After installing, type/ctx-searchin Claude Code to confirm it loaded.

Details

From the project README

Context Mode Search

Search indexed content without rereading raw sources into conversation context.

Instructions

  1. Prefer the ctx_search MCP tool when it is available.
  2. Batch all related questions in one queries array.
  3. Scope with source when the user names a project or indexed label.
  4. Use short, specific queries of two to four technical terms.
ctx_search({
  source: "project:<name>",
  queries: ["authentication middleware", "token refresh"],
  limit: 5
})
  1. If MCP tools are unavailable, fall back to the CLI:
context-mode search "authentication middleware" --source project:<name> --limit 5
  1. If the index is empty, tell the user to run /context-mode:ctx-index or context-mode index <path> first.

Comments

Markdown supported