Skip to main content
skill CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-mode
Open on GitHub

What 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 Grep runs
  • 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.md mention config, and don't dump the file.
  • Index the docs folder, then search it for the config format.
  • Collect every TODO in the repo with one batched run.

How to install context-mode

1Plugin marketplace

/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-mode

This installs the whole context-mode plugin with all its skills

2Skills CLI (Vercel)

npx skills add mksglu/context-mode --skill context-mode -a claude-code

3Manually: put the files in place

~/.claude/skills/context-mode/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/context-mode/

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.

context-mode mksglu This skill routes large files and command output through context-mode tools instead of Bash. Use it to inspect logs, test results, data files, or page snapshots. CX Codex +1 3,000installs context-mode Mert Koseoğlu This skill routes data analysis, searches, and page retrieval through context-mode tools. It helps keep large raw inputs out of an agent’s context. CX Codex +1 ★ 34,370repo stars mcp-code-execution-mode reason-machines mcp-code-execution-mode executes Python inside rootless containers and routes calls to MCP servers to keep token consumption minimal. CX Codex +1 174installs api-test-mode-design Samuel Berthe api-test-mode-design is a Claude Code skill for designing public API test environments. It activates for requests about sandboxes, test credentials, demo data, or simulated webhook events. CX Codex +1 10,400installs bmad-project-context bmad-code-org bmad-project-context is a Claude Code skill that builds, audits, and maintains verified agent instructions in AGENTS.md. It records past agent mistakes as explicit pitfalls. CX Codex +1 17,200installs context-engineering-collection muratcankoylan context-engineering-collection is a Claude Code skill with patterns for context management, multi-agent systems, and long-running loops for reliable autonomous systems. CX Codex +1 4,500installs maintaining-agent-context sentimony maintaining-agent-context audits the instruction files a repo hands to coding agents, catching duplicates, contradictions and wasted always-loaded tokens. CX Codex +1 3,200installs domain-context ryan-price domain-context maintains a domain knowledge base in .tasks/domain.md across sessions. Tracks internal terms, entity relationships, and core business rules. CX Codex +1 2,700installs

From the same set14

The whole set →
ctx-purge ctx-purge — a skill to permanently delete project context data in bulk or by session. Wipes the knowledge base, session records, and stats — this action cannot be undone. CX Codex +1 1,600installs ctx-insight The ctx-insight skill opens the Insight dashboard in your default browser. Use it to review engineer-level productivity, retry waste, blockers, and role-based views. CX Codex +1 1,500installs ctx-index ctx-index indexes local files and directories into context-mode's FTS5 database. It allows future searches to pull exact snippets without reloading raw project files into context. CX Codex +1 1,200installs ctx-search ctx-search searches a persistent project knowledge base without reloading source files into context. Queries indexed code, documentation, and session memory via FTS5. CX Codex +1 1,100installs context-mode This skill routes data analysis, searches, and page retrieval through context-mode tools. It helps keep large raw inputs out of an agent’s context. CX Codex +1 ★ 34,370repo stars context-mode context-mode routes heavy tool outputs and web pages into an MCP sandbox so raw data does not clutter the agent context window. CX Codex +1 ★ 34,370repo stars context-mode This rule routes data work through context-mode MCP tools and keeps raw files out of the conversation. Use it for analysis, search, and transformations. CX Codex +1 ★ 34,370repo stars context-mode context-mode — an MCP server that keeps raw tool output out of the context window and rebuilds session state after a compact. Useful when the agent burns through context fast. ★ 34,370repo stars

Project sponsors

Companies that keep this analytics open