ctx-search
What it does
This skill searches content that context-mode has already indexed, such as project files, documentation and earlier session notes. It is for people who want quick answers from a project without rereading the raw sources.
When to use it
- ✓When someone asks a question that should be answered from indexed project content.
- ✓When a user wants to find a topic across several indexed documents at once.
- ✓When an earlier session's notes are needed to answer a question.
Skill link
https://github.com/mksglu/context-mode/blob/main/skills/ctx-search/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Search the indexed project for how token refresh is handled.”
5 new skills a week. 1 minute to read.
How it works
The skill sends one or more short search queries to the index, optionally limited to one source, and returns focused snippets. If the index is empty, it tells you to index the content first.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Context Mode Search
Search indexed content without rereading raw sources into conversation context.
Instructions
- Prefer the
ctx_searchMCP tool when it is available. - Batch all related questions in one
queriesarray. - Scope with
sourcewhen the user names a project or indexed label. - Use short, specific queries of two to four technical terms.
ctx_search({
source: "project:<name>",
queries: ["authentication middleware", "token refresh"],
limit: 5
})
- If MCP tools are unavailable, fall back to the CLI:
context-mode search "authentication middleware" --source project:<name> --limit 5
- If the index is empty, tell the user to run
/context-mode:ctx-indexorcontext-mode index <path>first.
FAQ
What makes a good search query?
Short, specific queries of two to four technical terms work best.
Can I search only one project?
Yes. Give the source label and the search is limited to that indexed content.
What if nothing comes back?
The index may be empty, so index the project first with the index skill.
Details
Original description by the author
Search context-mode's persistent FTS5 knowledge base for previously indexed local project content, documentation, or session memory. Trigger: /context-mode:ctx-search
repo: mksglu/context-mode
Popularity
- GitHub stars
- 33k
- Ranking position
- #8515
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
context-mode
33kTeaches your agent to use context-mode tools for reading, searching and running data-heavy tasks, so large outputs stay out of the main conversation.
context-mode
33kTeaches your agent to run data-heavy work in a sandbox and print only the answer, so raw files and web pages do not flood the conversation.
context-mode
33kTeaches your agent to use context-mode tools instead of plain shell commands when output may be large, such as logs, JSON or build results.
ctx-doctor
33kRuns context-mode diagnostics that check runtimes, hooks, search storage, plugin setup and versions, then shows a clear pass or fail report.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.