Agent skill · software engineering · aradotso
context-mode-mcp
context-mode-mcp — an agent skill for coding agents.
Why this skill is useful
Adds a complete MCP server with executable scripts for sandboxing tool calls and managing context, which fundamentally extends AI capabilities.
What it needs
Requires npm installed locally. About 5k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.
What this skill does
bash /plugin marketplace add mksglu/context-mode /plugin install context-mode@context-mode bash claude mcp add context-mode -- npx -y context-mode bash npm install -g context-mode json { "mcpServers": { "context-mode": { "command": "context-mode" } }, "hooks": { "BeforeTool": [ { "matcher": "", "hooks": [{ "type": "command", "command": "context-mode hook gemini-cli beforetool" }] } ], "AfterTool": [ { "matcher": "", "hooks": [{ "type": "command", "command": "context-mode hook gemini-cli aftertool" }] } ], "SessionStart": [ { "matcher": "", "hooks": [{ "type": "command", "command": "context-mode hook gemini-cli sessionstart" }] } ] } } json { "servers": { "context-mode": { "command": "context-mode" } } } json { "hooks": { "PreToolUse": [ { "type": "command", "command": "context-mode hook vscode-copilot pretooluse" } ], "PostToolUse": [ { "type": "command", "command": "context-mode hook vscode-copilot posttooluse" } ], "SessionStart": [ { "type": "command", "command": "context-mode hook vscode-copilot sessionstart" } ] } } json { "mcpServers": { "context-mode": { "command": "context-mode" } } } json { "version": 1, "hooks": { "preToolUse": [ { "command": "context-mode hook cursor pretooluse", "matcher": "Shell Read Grep WebFetch Task MCP:ctxexecute MCP:ctxexecutefile MCP:ctxbatchexecute" } ], "postToolUse": [ { "command": "context-mode hook cursor posttooluse" } ] } } json { "$schema": "https://opencode.ai/config.json", "mcp": { "context-mode": { "type": "local", "command": ["context-mode"] } }, "plugin": ["context-mode"] } javascript // Instead of: Bash("gh issue list --limit 20") → 59 KB in context // Use: ctxexecute({ command: "gh issue list --limit 20" }) // Returns: indexed summary + search handle, ~1.2 KB in context javascript // Instead of: Read("./logs/access.log") → 45 KB in context // Use: ctxexecutefile({ path: "./logs/access.log" }) // Returns: file summary + FTS5 index handle javascript ctxbatchexecute({ commands: [ "git log --oneline -20", "git diff HEAD …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aradotso/context-mode-mcp