Ctx Search

by mksglua6c43765d26bNo license25K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today

Search context-mode's persistent FTS5 knowledge base for previously indexed local project content, documentation, or session memory. Trigger: /context-mode:ctx-search

Instructions onlyAI & Agents
AI-generated overview

Searches a persistent FTS5 knowledge base of indexed local project content, documentation, or session memory.

What it does
This skill guides an agent in querying context-mode's persistent FTS5 knowledge base for previously indexed local project content, documentation, or session memory. It instructs the agent to prefer the ctx_search MCP tool, batch related questions into one queries array, scope results by source label, and use short queries of two to four technical terms. If MCP tools are unavailable, it falls back to the context-mode search CLI, and if the index is empty it tells the user to index content first.
When to use it
Use it when you need to retrieve previously indexed local project content, documentation, or session memory without rereading raw sources into the conversation context. It fits lookups scoped to a named project or indexed label, and batched multi-question searches.
Requirements
Requires the ctx_search MCP tool or the context-mode CLI with an existing index; no scripts are shipped, only instructions.

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.
javascript
ctx_search({  source: "project:<name>",  queries: ["authentication middleware", "token refresh"],  limit: 5})
  1. If MCP tools are unavailable, fall back to the CLI:
bash
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.

Source and attribution

Source:mksglu/context-modeinskills/ctx-searchat commita6c4376

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal