🔍
AI EngineeringTypeScript

Context Mode Search

by mksglu

Context Mode Search is an AI Engineering skill for Claude Code, published by mksglu in context-mode.

19.9K stars1.4K forkson mksglu/context-modeAdded 2026/08/14Repository updated 2026/08/13
antigravityclaudeclaude-codeclaude-code-hooksclaude-code-pluginsclaude-code-skillcodexcodex-clicontext-modecopilotcursor-pluginkiromcpmcp-servermcp-toolsopenclawopencodepi-agentskillszed-extension
Install in seconds
Install Context Mode Search
Copy Context Mode Search into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/mksglu/context-mode/tree/main/skills/ctx-search ~/.claude/skills/ctx-search

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/mksglu/context-mode.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/ctx-search/SKILL.md in mksglu/context-mode
Installs to
~/.claude/skills/ctx-search
Collection
One of 11 skills cataloged from this repository
Category
AI Engineering2451 skills

What Context Mode Search does

Context Mode Search searches the persistent FTS5 knowledge base for previously indexed local project content, documentation, and session memory. Use it when an agent needs to recall indexed context without rereading raw sources, via MCP tool or CLI.

Context Mode Search is cataloged under AI Engineering on DirSkills. Context Mode Search comes from a repository tagged antigravity, claude, claude-code, claude-code-hooks and claude-code-plugins.

Documentation

README

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.

Frequently asked about Context Mode Search

  • What else does mksglu publish alongside Context Mode Search?

    Context Mode Search is one of 11 skills that DirSkills catalogs from mksglu/context-mode, the repository it ships in. Its siblings there include Context Index, Context Mode and Context Mode. Each one is a separate skill with its own page in this directory, installs the same way Context Mode Search does, and is maintained by mksglu in that same repository. The rest of the collection is listed on the mksglu/context-mode page.

  • How does Context Mode Search compare to other AI Engineering skills?

    Context Mode Search ranks #271 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Context Mode Search against them. Open each page to compare what they document and how they install.

More from mksglu/context-mode

Context Mode Search is one of 11 skills cataloged on DirSkills from mksglu/context-mode.

See all 11 skills
🗂️
2w ago

Context Index

Context Index indexes a local file or directory into context-mode's persistent FTS5 knowledge base so future ctx_search calls can retrieve focused snippets without rereading raw files.
AI Engineering
19.9K1.4K
🧠
2w ago

Context Mode

Context Mode provides mandatory routing rules for Antigravity CLI's context-mode MCP tools when exploring codebases, reading files for analysis, searching, parsing, and running data-heavy commands. Use it to route file reads, batch repository commands, index content, and retrieve answers with reduced context.
AI Engineering
19.9K1.4K
🧠
2w ago

Context Mode

Context Mode enforces mandatory routing rules that keep raw bytes out of an agent's context window. Use it when analyzing, counting, filtering, comparing, searching, parsing, or transforming data, fetching URLs, or running data-heavy commands.
AI Engineering
19.9K1.4K
🧠
2w ago

Context Mode

Context Mode routes commands and file reads that may produce large output to context-mode tools (ctx_execute, ctx_execute_file) instead of Bash or cat, keeping the agent's context window clean. Use it whenever analyzing logs, parsing data, running tests, fetching docs, or processing MCP tool output that may exceed 20 lines.
AI Engineering
19.9K1.4K
🩺
2w ago

Context Mode Doctor

Context Mode Doctor runs diagnostics on the Context Mode plugin and reports the status of runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Use it to troubleshoot Context Mode installations and verify all components are working correctly.
DevOps
19.9K1.4K
📊
2w ago

Context Mode Insight

Context Mode Insight opens the hosted analytics dashboard in your default browser so engineering teams can view per-engineer productive rate, retry waste, blocker detection, and role-narrowed views. Use it when you need to access the Context Mode analytics layer quickly.
Data
19.9K1.4K