Skip to content
Skillpedia
Agents33k · #8515

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.md

Copy 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

Use this skill to help me: https://github.com/mksglu/context-mode/blob/main/skills/ctx-search/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills