Official agent skill

Markdown Token Optimizer

by microsoft in microsoft/GitHub-Copilot-for-Azure

Analyzes markdown files for token efficiency. An agent skill from microsoft/GitHub-Copilot-for-Azure.

OfficialMITAuto-check passedDocuments & Office

Install Markdown Token Optimizer

skills CLI
$ npx skills add microsoft/GitHub-Copilot-for-Azure --skill markdown-token-optimizer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install microsoft/GitHub-Copilot-for-Azure markdown-token-optimizer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/microsoft/GitHub-Copilot-for-Azure.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/markdown-token-optimizer .claude/skills/markdown-token-optimizer && rm -rf skills-src

Use ~/.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/

Facts

Skill name
markdown-token-optimizer
GitHub stars
255
Token cost
~364 tokens
SKILL.md length
110 words
Files
3 (incl. references)
Skills in repo
56
Repo updated
First seen
Licence
MIT

At a glance

Analyzes markdown files for token efficiency. An agent skill from microsoft/GitHub-Copilot-for-Azure.

  • Works in 4 steps: Count - Calculate tokens (~4 chars = 1… → Scan - Find patterns: emojis, verbosity,… → Suggest - Table with location, issue,… → …
  • Tasks that involve Markdown
  • SKILL.md covers When to Use, Workflow, Rules and References
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Markdown Token Optimizer is an agent skill from microsoft/GitHub-Copilot-for-Azure, published by the product's own GitHub organization. Analyzes markdown files for token efficiency. 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

Its SKILL.md is about 360 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/ANTI-PATTERNS.md` and `references/OPTIMIZATION-PATTERNS.md`).

It sits in Documents & Office, covering Markdown and LLM cost and token optimization. The repository describes itself as: GitHub Copilot for Azure. The licence is MIT.

When your agent uses it

  • Tasks that involve Markdown
  • Tasks that involve LLM cost and token optimization

Example prompts

  • “Use the markdown-token-optimizer skill to analyz markdown files for token efficiency. An agent skill from microsoft/GitHub-Copilot-for-Azure”
  • “/markdown-token-optimizer”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Count - Calculate tokens (~4 chars = 1 token), report totals
  2. Scan - Find patterns: emojis, verbosity, duplication, large blocks
  3. Suggest - Table with location, issue, fix, savings estimate
  4. Summary - Current/potential/savings with top recommendations

What it can do on your machine

Read from SKILL.md and the folder at commit d8f4f4e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Markdown Token Optimizer loads about 364 tokens when it runs, and up to ~2k if it reads all its reference files. Until then it costs about 68 tokens; SKILL.md has 110 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~68
When it runs · the whole SKILL.md, loaded when a task matches
~364
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from microsoft/GitHub-Copilot-for-Azure at commit d8f4f4e, republished under its MIT licence (© microsoft). 110 words, ~364 tokens.

Download SKILL.mdSave it as .claude/skills/markdown-token-optimizer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
markdown-token-optimizer
description
Analyzes markdown files for token efficiency. 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
license
MIT
metadata.author
Microsoft
metadata.version
1.0.0

Markdown Token Optimizer

This skill analyzes markdown files and suggests optimizations to reduce token consumption while maintaining clarity.

When to Use

  • Optimize markdown files for token efficiency
  • Reduce SKILL.md file size or check for bloat
  • Make documentation more concise for AI consumption

Workflow

  1. Count - Calculate tokens (~4 chars = 1 token), report totals
  2. Scan - Find patterns: emojis, verbosity, duplication, large blocks
  3. Suggest - Table with location, issue, fix, savings estimate
  4. Summary - Current/potential/savings with top recommendations

See ANTI-PATTERNS.md for detection patterns and OPTIMIZATION-PATTERNS.md for techniques.

Rules

  • Suggest only (no auto-modification)
  • Preserve clarity in all optimizations
  • SKILL.md target: <500 tokens, references: <1000 tokens

References

© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in .github/skills/markdown-token-optimizer of microsoft/GitHub-Copilot-for-Azure.

  • SKILL.md
  • references/ANTI-PATTERNS.md
  • references/OPTIMIZATION-PATTERNS.md

Open the folder on GitHubat commit d8f4f4e

Compare with similar skills

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.

Markdown Token Optimizer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Markdown Token Optimizer this skillmicrosoft/GitHub-Copilot-for-Azure255—~364Automated safety check: PassMIT
Markdown Token OptimizerAzure/azure-sdk-tools134—~602Automated safety check: PassMIT
Markdown Token OptimizerAzure/azure-sdk-tools134—~494Automated safety check: PassMIT
Defuddlekepano/obsidian-skills49k11 repos~208Automated safety check: PassMIT
Markdown Article FormatterJimLiu/baoyu-skills26k6 repos~3.5kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT

Similar skills

  • Markdown Token Optimizer

    Azure/azure-sdk-tools

    Official

    Analyze markdown files for token efficiency and reduce context-window bloat.

    134 GitHub stars~602 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Markdown Token Optimizer

    Azure/azure-sdk-tools

    Official

    Analyze markdown files for token efficiency and reduce context-window bloat.

    134 GitHub stars~494 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Defuddle

    kepano/obsidian-skills

    Uses the Defuddle CLI to pull clean, readable Markdown, JSON or metadata from web pages, stripping navigation, ads and clutter to save tokens.

    49k GitHub starsUsed in 11 repos~208 tokens
    Knowledge ManagementAuto-check passed
  • Markdown Article Formatter

    JimLiu/baoyu-skills

    Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.

    26k GitHub starsUsed in 6 repos~3.5k tokens
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Obsidian Markdown

    Atmosphere/atmosphere

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    3.8k GitHub starsUsed in 20 repos~1.3k tokens
    Documents & OfficeAuto-check passed

More from microsoft/GitHub-Copilot-for-Azure

All 56 skills in this repo
  • Capacity

    microsoft/GitHub-Copilot-for-Azure

    Official

    Discovers available Azure OpenAI model capacity across regions and projects.

    255 GitHub starsUsed in 2 repos~1.7k tokens
    Auto-check passed
  • Deploy Model

    microsoft/GitHub-Copilot-for-Azure

    Official

    Unified Azure OpenAI model deployment skill with intelligent intent-based routing.

    255 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Entra Agent Id

    microsoft/GitHub-Copilot-for-Azure

    Official

    Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant)…

    255 GitHub starsUsed in 3 repos~4k tokens
    Auto-check passed
  • Microsoft Foundry

    microsoft/GitHub-Copilot-for-Azure

    Official

    Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end.

    255 GitHub starsUsed in 1 repo~6.7k tokens
    Auto-check passed
  • Azure Storage

    microsoft/GitHub-Copilot-for-Azure

    Official

    Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake.

    255 GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check passed
  • Azure Diagnostics

    microsoft/GitHub-Copilot-for-Azure

    Official

    Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage.

    255 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Questions about Markdown Token Optimizer

What does Markdown Token Optimizer do?

Analyzes markdown files for token efficiency. An agent skill from microsoft/GitHub-Copilot-for-Azure. Markdown Token Optimizer is an agent skill from microsoft/GitHub-Copilot-for-Azure, published by the product's own GitHub organization. Analyzes markdown files for token efficiency.

When should I use Markdown Token Optimizer?

Markdown Token Optimizer fits situations like: tasks that involve Markdown; tasks that involve LLM cost and token optimization.

How do I install Markdown Token Optimizer in Claude Code?

Run `npx skills add microsoft/GitHub-Copilot-for-Azure --skill markdown-token-optimizer -a claude-code`. Or copy the skill folder (.github/skills/markdown-token-optimizer in microsoft/GitHub-Copilot-for-Azure) into .claude/skills/markdown-token-optimizer in your project. Claude Code loads it when a task matches its description.

How do I install Markdown Token Optimizer in Codex?

Run `npx skills add microsoft/GitHub-Copilot-for-Azure --skill markdown-token-optimizer -a codex`. Or copy the skill folder (.github/skills/markdown-token-optimizer in microsoft/GitHub-Copilot-for-Azure) into .agents/skills/markdown-token-optimizer in your project. Codex loads it when a task matches its description.

Can I use Markdown Token Optimizer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/GitHub-Copilot-for-Azure --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.

What does Markdown Token Optimizer need to run?

SKILL.md names no scripts, command-line tools or credentials: Markdown Token Optimizer is instructions for the agent only.

Does Markdown Token Optimizer access the network?

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.

Is Markdown Token Optimizer safe to install?

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.

What licence does Markdown Token Optimizer use?

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.

How many tokens does Markdown Token Optimizer use?

About 364 tokens (SKILL.md is roughly 1.5k 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.

What are the alternatives to Markdown Token Optimizer?

Skills that share tags, products or a category with Markdown Token Optimizer: Markdown Token Optimizer (Azure/azure-sdk-tools, 134 stars), Markdown Token Optimizer (Azure/azure-sdk-tools, 134 stars), Defuddle (kepano/obsidian-skills, 49k stars) and Markdown Article Formatter (JimLiu/baoyu-skills, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Markdown Token Optimizer?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/GitHub-Copilot-for-Azure, which has 255 GitHub stars. The repository holds 56 skills in this directory. The repository was last updated on October 7, 2026.

Source: microsoft/GitHub-Copilot-for-Azure on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.