Agent skill

Context Mode Search

by mksglu in mksglu/context-mode

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

— description from SKILL.md by mksglu
Custom licenceAuto-check passedAgent Workflows

Install Context Mode Search

skills CLI
$ npx skills add mksglu/context-mode --skill ctx-search -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mksglu/context-mode ctx-search --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mksglu/context-mode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ctx-search .claude/skills/ctx-search && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ctx-search
GitHub stars
26k
Token cost
~250 tokens
SKILL.md length
85 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
Custom licence

At a glance

  • Works in 6 steps: Prefer the ctx_search MCP tool when it… → Batch all related questions in one… → Scope with source when the user names a… → …
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

About this skill

Context Mode Search is a skill in mksglu/context-mode (26k stars). Its SKILL.md is about 250 tokens. Licence: Custom licence.

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  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.
  5. If MCP tools are unavailable, fall back to the CLI
  6. If the index is empty, tell the user to run /context-mode:ctx-index or context-mode index first.

What it can do on your machine

Read from SKILL.md and the folder at commit 0dfbe8d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Context Mode Search loads about 250 tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 85 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~250

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 85 words (~250 tokens).

“Search indexed content without rereading raw sources into conversation context.”

— opening of SKILL.md by mksglu, Custom licence
name
ctx-search
user-invocable
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/ctx-search of mksglu/context-mode.

Open the folder on GitHubat commit 0dfbe8d

Compare with similar skills

Context Mode Search next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Context Mode Search compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Context Mode Search this skillmksglu/context-mode26k—~250Automated safety check: PassCustom licence
LemmalogJordyZomer/lemmalog329—~2.8kAutomated safety check: PassMIT
Cortex Mem MCPsopaco/cortex-mem313—~2.8kAutomated safety check: PassMIT
Basic Memory Setupbasicmachines-co/basic-memory4.1k—~3.9kAutomated safety check: PassAGPL-3.0
MemPalace Memory SearchMemPalace/mempalace59k—~1.4kAutomated safety check: PassMIT
MemPalace Setup and OperationMemPalace/mempalace59k—~2.2kAutomated safety check: PassMIT

Similar skills

  • Lemmalog

    JordyZomer/lemmalog

    Externalize working memory and logical state into the lemmalog Datalog engine (MCP).

    329 GitHub stars~2.8k tokensUpdated 9 days ago
    Agent WorkflowsAuto-check passed
  • Cortex Mem MCP

    sopaco/cortex-mem

    Persistent memory enhancement for AI agents. An agent skill from sopaco/cortex-mem.

    313 GitHub stars~2.8k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Basic Memory Setup

    basicmachines-co/basic-memory

    Runs a short guided interview that configures the Basic Memory plugin for a project: project mapping, note schemas, folder conventions and capture habits.

    4.1k GitHub stars~3.9k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • MemPalace Memory Search

    MemPalace/mempalace

    Mines project files and conversation exports into a local, searchable memory palace and recalls past work by semantic search through the mempalace CLI.

    59k GitHub stars~1.4k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Installs and configures MemPalace as a private local palace, a shared-brain hub or a client of an existing hub, including MCP registration and version-correct initialization.

    59k GitHub stars~2.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Qmd

    breferrari/obsidian-mind

    Search the vault using QMD semantic search. An agent skill from breferrari/obsidian-mind.

    5k GitHub stars~1.7k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check passed

More from mksglu/context-mode

All 11 skills in this repo
  • Context Mode Output Sandbox

    mksglu/context-mode

    Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.

    26k GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Routing rules for using context-mode MCP tools in Antigravity CLI: sandboxed code runs, file analysis, indexed search and web fetches that keep large output out of the conversation.

    26k GitHub stars~850 tokensUpdated today
    Auto-check passed
  • Context Mode Ops

    mksglu/context-mode

    Runs maintenance for the context-mode project with parallel subagents: issue triage, PR review, releases, bug fixes, announcements and branch syncing.

    26k GitHub stars~6k tokensUpdated today
    Auto-check passed
  • Context Mode Indexer

    mksglu/context-mode

    Indexes a local file or project directory into context-mode's FTS5 knowledge base so later searches return focused snippets instead of rereading whole files.

    26k GitHub stars~328 tokensUpdated today
    Auto-check passed
  • Context Mode Knowledge Purge

    mksglu/context-mode

    Permanently deletes a project's or a single session's indexed context-mode knowledge base, after confirming the scope and warning what will be lost.

    26k GitHub stars~671 tokensUpdated today
    Auto-check passed
  • Context Mode Doctor

    mksglu/context-mode

    Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor

    26k GitHub stars~262 tokensUpdated today
    Auto-check passed

Questions about Context Mode Search

How do I install Context Mode Search in Claude Code?

Run `npx skills add mksglu/context-mode --skill ctx-search -a claude-code`. Or copy the skill folder (skills/ctx-search in mksglu/context-mode) into .claude/skills/ctx-search in your project. Claude Code loads it when a task matches its description.

How do I install Context Mode Search in Codex?

Run `npx skills add mksglu/context-mode --skill ctx-search -a codex`. Or copy the skill folder (skills/ctx-search in mksglu/context-mode) into .agents/skills/ctx-search in your project. Codex loads it when a task matches its description.

Can I use Context Mode Search in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mksglu/context-mode --skill ctx-search -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ctx-search, .gemini/skills/ctx-search, .github/skills/ctx-search and .opencode/skills/ctx-search in your project.

What does Context Mode Search need to run?

SKILL.md names no scripts, command-line tools or credentials: Context Mode Search is instructions for the agent only.

Does Context Mode Search access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Context Mode Search safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Context Mode Search use?

Context Mode Search has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Context Mode Search use?

About 250 tokens (SKILL.md is roughly 1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Context Mode Search?

Skills that share tags, products or a category with Context Mode Search: Lemmalog (JordyZomer/lemmalog, 329 stars), Cortex Mem MCP (sopaco/cortex-mem, 313 stars), Basic Memory Setup (basicmachines-co/basic-memory, 4.1k stars) and MemPalace Memory Search (MemPalace/mempalace, 59k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Context Mode Search?

mksglu (a GitHub user) maintains it in mksglu/context-mode, which has 26,014 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 10, 2026.

Source: mksglu/context-mode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.