Index of every page on this site: llms.txt
All skills
microsoft avatar

/markdown-token-optimizer

@147c081 official
Run it yourself

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

Use this Skill: https://skilld.dev/gh/microsoft/github-copilot-for-azure/markdown-token-optimizer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈68 tokens for metadata: the name and description. ≈273 when used: this file. ≈1.6k more on demand in 2 files.

Description uses 3.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈272 characters, or 3.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is a markdown optimization utility focused on providing guidance for reducing token consumption in documentation. It consists entirely of informational markdown files and does not contain any executable code or security risks.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    3 files scanned · No issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 147c081. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 9 months ago
metadata
{
  "author": "Microsoft",
  "version": "1.0.0"
}
  • Documentation
  • markdown
  • tokens
  • optimization
  • file-size
  • ai-efficiency
  • conciseness
  • skill-md

README badge

README badge for microsoft/github-copilot-for-azure/markdown-token-optimizer

Analyzes markdown files for token efficiency and suggests optimizations to reduce consumption without sacrificing clarity. Counts tokens, identifies patterns like verbosity and duplication, and recommends fixes with estimated savings. Targets documentation and SKILL.md files that need to be more concise for AI consumption.

Generated from the current SKILL.md.

Does this skill modify files automatically?
No. It analyzes markdown and suggests optimizations in a table format but does not auto-modify files.
What token counting method does this use?
The skill uses an approximate rule of 4 characters equals 1 token.
What types of markdown problems does it detect?
It scans for emojis, verbosity, duplication, and large code blocks as token-wasting patterns.
What are the target file sizes this skill aims for?
SKILL.md files should be under 500 tokens, and reference files under 1000 tokens.

Generated from the current SKILL.md. These answers refresh after source changes.