Skip to content
Back to skills

Context Mode

ASecurity

MANDATORY routing rules for context-mode. Invoke whenever you analyze, count, filter, compare, search, parse, or transform data; fetch a URL; or run a data-heavy command — so raw bytes stay out of the context window.

  • 25,440 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentspythonnodegit

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add mksglu/context-mode --skill context-mode --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context Mode?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context Mode
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mksglu-context-mode-5f404a41/badge)](https://www.skillsdirectory.com/skills/mksglu-context-mode-5f404a41)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: context-mode
description: MANDATORY routing rules for context-mode. Invoke whenever you analyze, count, filter, compare, search, parse, or transform data; fetch a URL; or run a data-heavy command — so raw bytes stay out of the context window.
---

# context-mode — MANDATORY routing rules

context-mode MCP tools are available in GitHub Copilot CLI. These rules protect
the context window from flooding — one unrouted command can dump tens of KB into
the conversation. Follow them strictly.

## Think in Code — MANDATORY

Analyze / count / filter / compare / search / parse / transform data: **write
code** via `ctx_execute(language, code)` and `console.log()` only the answer. Do
NOT read raw data into context. PROGRAM the analysis, do not COMPUTE it by
reading. One script replaces ten tool calls.

## BLOCKED — do NOT use

- **curl / wget** — dumps raw HTTP into context. Use
  `ctx_fetch_and_index(url, source)` then `ctx_search(queries)`.
- **Inline HTTP** (`node -e "fetch(...)"`, `python -c "requests.get(...)"`) — use
  `ctx_execute(language, code)`; only stdout enters context.
- **Reading large files to analyze** — use
  `ctx_execute_file(path, language, code)`.

## Tool selection

1. **GATHER**: `ctx_batch_execute(commands, queries)` — runs all commands,
   auto-indexes, returns search. One call replaces dozens.
2. **PROCESS**: `ctx_execute` / `ctx_execute_file` — sandbox; only stdout enters
   context.
3. **WEB**: `ctx_fetch_and_index(url, source)` then `ctx_search(queries)` — raw
   HTML never enters context.
4. **SEARCH**: `ctx_search(queries: [...])` — all questions in one call.

Write artifacts to FILES; return a path + one-line description, not inline dumps.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.