context-mode · mksglu, copilot-cli — Claude Code skill: what it does, how to install
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.
Elastic-2.0 ★ 34,370 updated 2026-10-24
/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-modeWhat context-mode does
For analyzing, counting, filtering, comparing, or transforming data, the skill directs the agent to write code with ctx_execute and print only the result. Large files go through ctx_execute_file; ctx_batch_execute can handle a group of commands and search queries in one call.
For web pages, it uses ctx_fetch_and_index followed by ctx_search, so the full HTML is not added to context. The routing rules block curl, wget, and inline HTTP requests using fetch or requests. The context-mode tools must be available to the agent for these rules to work.
The skill recommends writing artifacts to files and returning a path with a brief description instead of dumping the contents inline. That matters for large reports: their full contents stay out of the conversation.
What it helps with
- count and filter records without reading the full dataset
- compare data with a script
- process a large file through
ctx_execute_file - search a web page without placing its HTML in context
- save analysis results to a file and return its path
Example prompts for the agent
- Count the records in this data and print only the result.
- Find answers to my questions on this page without adding its HTML to context.
- Process this large file and save the result to a separate file.
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/copilot-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/copilot-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?
Add the marketplace with /plugin marketplace add mksglu/context-mode, then install it with /plugin install context-mode@context-mode.
What does context-mode do?
It routes data processing and search through context-mode tools, keeping large raw inputs from being added to context in full.
How does context-mode handle web pages?
It uses ctx_fetch_and_index to retrieve and index a page, then ctx_search to query it. The routing rules block curl and wget.
Similar skills
All skills for Agent setup: memory, context, orchestration →context-mode by other authors comes first.