All skills
microsoft avatar

/markdown-token-optimizer

@5829570 official

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

This session only. Nothing lands on disk.

SKILL.md

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

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 alerts15d5 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    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.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer7mo

    3 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

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

Last checked against GitHub 16 hours ago.

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