context-mode · mksglu, antigravity-cli — Claude Code skill: what it does, how to install
A rules file that tells the agent when to run code in the context-mode sandbox instead of pasting files and command output into the chat.
Elastic-2.0 ★ 34,370 updated 2026-10-24
/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-modeWhat context-mode does
The skill works as a routing sheet. It tells the agent which context-mode MCP tool to call for a given job: ctx_execute for a quick computation in the sandbox, ctx_execute_file when a file has to be measured, filtered or summarised through code rather than dropped into the conversation.
A whole repository can be swept with a single ctx_batch_execute call instead of a long chain of ListDir, Read or Grep calls. ctx_index and ctx_search keep material around for later questions, and ctx_fetch_and_index puts a web page into that same store. When the CLI goes through its generic MCP wrapper, the call arrives as call_mcp_tool with ServerName, ToolName and Arguments.
The rules also close a few detours: no reading cached schema JSON under ~/.gemini/antigravity-cli/mcp/context-mode/*.json, and no ctx_execute run just to learn tool names. Native file reading is left for edits that need exact bytes. The tools belong to the context-mode MCP server, so the skill only decides when they get used, and it has nothing to point at until that server is connected. License: Elastic-2.0.
What it helps with
- count matches in a file without pasting the whole file
- sweep a repository with one batched call instead of a chain of
Grepruns - index a docs folder so later questions can search it
- pull a web page into the local index and query it
- see how much context a session has saved
Example prompts for the agent
- Count how many lines in
README.mdmention config, and don't dump the file. - Index the
docsfolder, then search it for the config format. - Collect every
TODOin the repo with one batched run.
How to install context-mode
1Plugin marketplace
/plugin marketplace add mksglu/context-mode/plugin install context-mode@context-modeThis installs the whole context-mode plugin with all its skills
2Skills CLI (Vercel)
npx skills add mksglu/context-mode --skill context-mode -a claude-code3Manually: put the files in place
~/.claude/skills/context-mode/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/context-mode/
1Skills CLI (Vercel)
npx skills add mksglu/context-mode --skill context-mode -a codex2Manually: put the files in place
.agents/skills/context-mode/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mksglu/context-mode --skill context-mode -a cursor2Manually: put the files in place
.cursor/skills/context-mode/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mksglu/context-mode configs/antigravity-cli/skills/context-mode2Manually: put the files in place
.github/skills/context-mode/SKILL.md1Skills CLI (Vercel)
npx skills add mksglu/context-mode --skill context-mode -a gemini-cli2Platform CLI
gemini skills install https://github.com/mksglu/context-mode --path configs/antigravity-cli/skills/context-modeManually: put the files in place
.devin/skills/context-mode/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about context-mode
How do I install context-mode in Claude Code?
Run /plugin marketplace add mksglu/context-mode to add the marketplace, then /plugin install context-mode@context-mode.
What does context-mode do?
It gives the agent a routing policy for the context-mode MCP tools, so file analysis and heavy command output happen in a sandbox and short answers come back instead of raw dumps.
Does context-mode work without the MCP server?
The tools it routes to are served by context-mode itself. The skill only picks which one to call and when, so nothing happens until that server is connected.
Similar skills
All skills for Agent setup: memory, context, orchestration →context-mode by other authors comes first.