Context Mode Output Sandbox
mksglu/context-mode
Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.
Analyze markdown files for token efficiency and reduce context-window bloat.
$ npx skills add Azure/azure-sdk-tools --skill markdown-token-optimizer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Azure/azure-sdk-tools markdown-token-optimizer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Azure/azure-sdk-tools.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/azure-sdk-tools/skills/markdown-token-optimizer .claude/skills/markdown-token-optimizer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "markdown-token-optimizer" agent skill from https://github.com/Azure/azure-sdk-tools/tree/main/plugins/azure-sdk-tools/skills/markdown-token-optimizer into .claude/skills/markdown-token-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "markdown-token-optimizer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Azure/azure-sdk-tools/tree/main/plugins/azure-sdk-tools/skills/markdown-token-optimizerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Azure/azure-sdk-tools --skill markdown-token-optimizer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Azure/azure-sdk-tools markdown-token-optimizer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Azure/azure-sdk-tools.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/azure-sdk-tools/skills/markdown-token-optimizer .agents/skills/markdown-token-optimizer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "markdown-token-optimizer" agent skill from https://github.com/Azure/azure-sdk-tools/tree/main/plugins/azure-sdk-tools/skills/markdown-token-optimizer into .agents/skills/markdown-token-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "markdown-token-optimizer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Azure/azure-sdk-tools --skill markdown-token-optimizer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Azure/azure-sdk-tools markdown-token-optimizer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Azure/azure-sdk-tools.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/azure-sdk-tools/skills/markdown-token-optimizer .cursor/skills/markdown-token-optimizer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "markdown-token-optimizer" agent skill from https://github.com/Azure/azure-sdk-tools/tree/main/plugins/azure-sdk-tools/skills/markdown-token-optimizer into .cursor/skills/markdown-token-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "markdown-token-optimizer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Azure/azure-sdk-tools.git --path plugins/azure-sdk-tools/skills/markdown-token-optimizer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Azure/azure-sdk-tools --skill markdown-token-optimizer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Azure/azure-sdk-tools markdown-token-optimizer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Azure/azure-sdk-tools.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/azure-sdk-tools/skills/markdown-token-optimizer .gemini/skills/markdown-token-optimizer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "markdown-token-optimizer" agent skill from https://github.com/Azure/azure-sdk-tools/tree/main/plugins/azure-sdk-tools/skills/markdown-token-optimizer into .gemini/skills/markdown-token-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "markdown-token-optimizer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Azure/azure-sdk-tools markdown-token-optimizerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Azure/azure-sdk-tools --skill markdown-token-optimizer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Azure/azure-sdk-tools.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/azure-sdk-tools/skills/markdown-token-optimizer .github/skills/markdown-token-optimizer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "markdown-token-optimizer" agent skill from https://github.com/Azure/azure-sdk-tools/tree/main/plugins/azure-sdk-tools/skills/markdown-token-optimizer into .github/skills/markdown-token-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "markdown-token-optimizer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Azure/azure-sdk-tools --skill markdown-token-optimizer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Azure/azure-sdk-tools markdown-token-optimizer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Azure/azure-sdk-tools.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/azure-sdk-tools/skills/markdown-token-optimizer .opencode/skills/markdown-token-optimizer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "markdown-token-optimizer" agent skill from https://github.com/Azure/azure-sdk-tools/tree/main/plugins/azure-sdk-tools/skills/markdown-token-optimizer into .opencode/skills/markdown-token-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "markdown-token-optimizer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
markdown-token-optimizerAnalyze markdown files for token efficiency and reduce context-window bloat.
Markdown Token Optimizer is an agent skill from Azure/azure-sdk-tools, published by the product's own GitHub organization. Analyze markdown files for token efficiency and reduce context-window bloat. UTILITY SKILL. DO NOT USE FOR: code optimization, general file editing, non-markdown files. TRIGGERS: optimize markdown, reduce tokens, token count, token bloat, too many tokens, make concise, shrink file, file too large, optimize for AI, token efficiency, verbose markdown, reduce file size. INVOKES: waza CLI.
Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including reference files (for example `eval.yaml`, `evals/eval.yaml` and `evals/tasks/anti-trigger.yaml`). Compatibility notes: copilot-chat
It sits in Agent Workflows, covering Markdown, LLM cost and token optimization and Context engineering. The repository describes itself as: Tools repository leveraged by the Azure SDK team. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 69f4006. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
copilot-chat
From compatibility in the SKILL.md frontmatter.
Markdown Token Optimizer loads about 494 tokens when it runs, and up to ~2.1k if it reads all its reference files. Until then it costs about 104 tokens; SKILL.md has 150 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Azure/azure-sdk-tools at commit 69f4006, republished under its MIT licence (© Azure). 150 words, ~494 tokens.
.claude/skills/markdown-token-optimizer/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.Analyzes markdown files and suggests optimizations to reduce token consumption while maintaining clarity.
See ANTI-PATTERNS.md for detection patterns and OPTIMIZATION-PATTERNS.md for techniques.
High token count? Check for emojis, repeated headings, or verbose tables.
| Tool | Purpose |
|---|---|
| None | CLI-only; uses local file tools |
CLI fallback: Primary mode is CLI-based. No MCP servers required.
© Azure, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 8 other files (references) in plugins/azure-sdk-tools/skills/markdown-token-optimizer of Azure/azure-sdk-tools.
Open the folder on GitHubat commit 69f4006
Markdown Token Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Markdown Token Optimizer this skillAzure/azure-sdk-tools | 134 | — | ~494 | Automated safety check: Pass | MIT | |
| Context Mode Output Sandboxmksglu/context-mode | 26k | — | ~4.1k | Automated safety check: Pass | Custom licence | |
| Context Mode for Antigravity CLImksglu/context-mode | 26k | — | ~850 | Automated safety check: Pass | Custom licence | |
| Context Fundamentalsguanyang/open-agent-hub | 973 | 2 repos | ~4.2k | Automated safety check: Pass | MIT | |
| Context DoctorjzOcb/context-doctor | 119 | — | ~642 | Automated safety check: Pass | MIT | |
| Code Context Slicingtrailofbits/skills | 7.4k | — | ~2.1k | Automated safety check: Pass | CC-BY-SA-4.0 |
mksglu/context-mode
Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.
mksglu/context-mode
Routing rules for using context-mode MCP tools in Antigravity CLI: sandboxed code runs, file analysis, indexed search and web fetches that keep large output out of the conversation.
guanyang/open-agent-hub
This skill should be used to explain or reason about the foundational concepts of context engineering: what context is, the anatomy of a context window, how attention mechanics work, the U-shaped…
jzOcb/context-doctor
Visualize and diagnose OpenClaw context window usage. An agent skill from jzOcb/context-doctor.
trailofbits/skills
Picks a small, graph-based slice of source with Trailmark and hands a focused code task to a smaller or local model without exposing the whole repository.
mvschwarz/openrig
Loads one section of a Markdown file by its path#h2-slug address with a bundled resolver script, for use outside OpenRig's context library.
Azure/azure-sdk-tools
Analyze and resolve APIView review feedback on Azure SDK PRs.
Azure/azure-sdk-tools
Analyze and resolve APIView review feedback on Azure SDK PRs.
Azure/azure-sdk-tools
Deploy test resources and run Azure SDK tests in live, record, or playback mode.
Azure/azure-sdk-tools
Analyze Azure SDK CI/CD pipeline failures into a structured diagnosis, and define the required output format.
Azure/azure-sdk-tools
Create, get, update, abandon, and link SDK PRs to release plan work items for Azure SDK releases.
Azure/azure-sdk-tools
Assess Azure TypeSpec Git diffs for semantic intent, REST and downstream SDK breaking changes, Azure Guidelines compliance, and documentation completeness.
Categories
Analyze markdown files for token efficiency and reduce context-window bloat. Markdown Token Optimizer is an agent skill from Azure/azure-sdk-tools, published by the product's own GitHub organization. Analyze markdown files for token efficiency and reduce context-window bloat.
Markdown Token Optimizer fits situations like: : code optimization; general file editing; non-markdown files.
Run `npx skills add Azure/azure-sdk-tools --skill markdown-token-optimizer -a claude-code`. Or copy the skill folder (plugins/azure-sdk-tools/skills/markdown-token-optimizer in Azure/azure-sdk-tools) into .claude/skills/markdown-token-optimizer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Azure/azure-sdk-tools --skill markdown-token-optimizer -a codex`. Or copy the skill folder (plugins/azure-sdk-tools/skills/markdown-token-optimizer in Azure/azure-sdk-tools) into .agents/skills/markdown-token-optimizer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Azure/azure-sdk-tools --skill markdown-token-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/markdown-token-optimizer, .gemini/skills/markdown-token-optimizer, .github/skills/markdown-token-optimizer and .opencode/skills/markdown-token-optimizer in your project.
SKILL.md names no scripts, command-line tools or credentials: Markdown Token Optimizer is instructions for the agent only. Compatibility (from SKILL.md): copilot-chat.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Markdown Token Optimizer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 494 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Markdown Token Optimizer: Context Mode Output Sandbox (mksglu/context-mode, 26k stars), Context Mode for Antigravity CLI (mksglu/context-mode, 26k stars), Context Fundamentals (guanyang/open-agent-hub, 973 stars) and Context Doctor (jzOcb/context-doctor, 119 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Azure (a GitHub organization, an official publisher) maintains it in Azure/azure-sdk-tools, which has 134 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 6, 2026.
Source: Azure/azure-sdk-tools on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.