token-budget-check

Analyze Markdown documents to enforce predefined token budgets.

13|3|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/Everyone-Needs-A-Copilot/claude-copilot --skill token-budget-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: token-budget-check
Source: https://github.com/Everyone-Needs-A-Copilot/claude-copilot/tree/main/templates/skills/token-budget-check
Command: npx skills add https://github.com/Everyone-Needs-A-Copilot/claude-copilot --skill token-budget-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures Markdown documentation adheres to predefined token budgets to optimize AI ingestion and reduce processing costs.

Core Features & Use Cases

  • Token estimation and budget validation for Markdown files.
  • Budget inference from file paths and frontmatter to apply the right limits.
  • Actionable optimization suggestions to trim content without losing meaning.
  • Real-world use: evaluate a repository's documentation so that a long SKILL.md stays under budget.

Quick Start

Run the token-budget-check against your repository's Markdown docs to generate a budget report and suggested reductions.

Frequently Asked Questions about token-budget-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if my Markdown documentation exceeds a token budget?

Token budget validation analyzes Markdown files to compute token estimates against predefined limits. It reads frontmatter budgets and applies per-document rules to generate a report showing which files exceed their allocated token counts.

What is the best way to reduce token count in repository documentation?

The best way to reduce token count in repository documentation is to apply content optimization suggestions. These suggestions analyze Markdown text and recommend specific reductions to trim content without losing meaning while staying under the token budget.

How does frontmatter budget inference work for Markdown files?

Frontmatter budget inference reads predefined token limits from Markdown file metadata to apply the correct restrictions. It combines these frontmatter budgets with path-based type inference to determine which per-document rules to enforce during token estimation.

Can I enforce token limits on operational guides and SKILL.md files?

Yes, you can enforce token limits on operational guides and SKILL.md files. Token budget validation applies across repository documentation assets, using path-based type inference and per-document rules to ensure these specific files adhere to predefined budgets.

Why does my long SKILL.md file fail AI ingestion due to token limits?

A long SKILL.md file fails AI ingestion because its content exceeds the maximum token budget allowed for processing. Running a token budget check computes the token estimate against frontmatter limits and suggests optimizations to trim the file down.