Skip to main content
skill CX Codex

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

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

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-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?

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.

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 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. CX Codex +1 ★ 34,370repo stars datasets brightdata Identifies available pre-collected datasets in the marketplace to replace manual scraping. It triggers when a large generic corpus is requested. CX Codex +1 180installs scraping-instagram-users-by-keyword apidojo scraping-instagram-users-by-keyword collects Instagram profiles from keywords, handles, and URLs, with optional follower and following lists. Useful for account data exports and research. CX Codex +1 889installs TakoData-tako-mcp TakoData TakoData-tako-mcp wires live web search and licensed datasets into your agent: company financials, macro indicators, site traffic. Useful when you need numbers, not a summary of articles. CX Codex +1 ★ 7repo stars Upscrape Upscrape Upscrape is an MCP server for Claude Code that connects an agent to data from commerce, grocery, social, and maps platforms. It finds an available capability and returns structured results. CX Codex +1 ★ 1repo stars parallel-findall parallel parallel-findall discovers companies, people, and products matching a natural-language description into a structured list. Useful when you need concrete entities rather than web pages or reports. CX Codex +1 13,000installs planetscale-autonomous-execution-mode planetscale planetscale-autonomous-execution-mode lets an agent carry approved PlanetScale changes through plan, execution, verification and reporting without per-step approval. The operator accepts the risk once, for a named scope. CX Codex +1 2,000installs

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 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. 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