skill-token-budget-linter
Lint skill descriptions, body length, and reference bulk against token budgets. Use when tightening standing-context cost. NOT for DCP tuning or RTK hooks.
skill-token-budget-linter143 wordsMITv1.0.0Repo-owned
skill-token-budget-linter
Lint skill descriptions, body length, and reference bulk against token budgets. Use when tightening standing-context cost. NOT for DCP tuning or RTK hooks.
Quick Start
Install:
npx skills add github:wyattowalsh/agents --skill skill-token-budget-linter -y -g --agent antigravity --agent claude-code --agent codex --agent crush --agent cursor --agent gemini-cli --agent github-copilot --agent grok --agent opencodeUse: /skill-token-budget-linter <skill-name|repo> [--strict]
Works with Claude Code, Gemini CLI, OpenCode, and other agentskills.io-compatible agents.
What It Does
Section titled “What It Does”Measure standing-context pressure for skill assets before they ship.
| $ARGUMENTS | Action |
|---|---|
<name> | Lint one skill directory |
repo / --all | Lint every skills/*/SKILL.md |
--strict | Fail on warning-tier budgets, not just hard limits |
| Empty | Show budget table and example commands |
| Field | Value |
|---|---|
| Source Type | repo-owned |
| Display Source | github:wyattowalsh/agents |
| Source Kind | repo |
| Installability | portable command |
| Review State | reviewed |
| Target Agents | antigravity, claude-code, codex, crush, cursor, gemini-cli, github-copilot, grok, opencode |
| Field | Value |
|---|---|
| Name | skill-token-budget-linter |
| License | MIT |
| Version | 1.0.0 |
| Author | wyattowalsh |
| Field | Value |
|---|---|
| Argument Hint | `[skill-name |
Used By
Section titled “Used By”prompt-optimizerScaffold for prompt/token optimization reviews on agent and skill bodies (planned).
View Full SKILL.md
---name: skill-token-budget-linterdescription: >- Lint skill descriptions, body length, and reference bulk against token budgets. Use when tightening standing-context cost. NOT for DCP tuning or RTK hooks.user-invocable: trueargument-hint: "<skill-name|repo> [--strict]"license: MITmetadata: author: wyattowalsh version: "1.0.0"---
# Skill Token Budget Linter
Measure standing-context pressure for skill assets before they ship.
**Scope:** Static token-budget linting only. Does not change OpenCode DCP, RTK, or harness hook policy.
## Dispatch
| $ARGUMENTS | Action ||------------|--------|| `<name>` | Lint one skill directory || `repo` / `--all` | Lint every `skills/*/SKILL.md` || `--strict` | Fail on warning-tier budgets, not just hard limits || Empty | Show budget table and example commands |
## Budget Table
| Surface | Soft warn | Hard fail ||---------|-----------|-----------|| `description` | 200 chars | 1024 chars || body (below frontmatter) | 400 lines | 500 lines || single reference file | 300 lines | 500 lines |
## Workflow
```bashuv run python skills/skill-token-budget-linter/scripts/lint_budget.py <name>uv run python skills/skill-token-budget-linter/scripts/lint_budget.py --all```
## Validation Contract
```bashuv run python skills/skill-token-budget-linter/scripts/check.py```Resources
Section titled “Resources”Skill CatalogBrowse custom and external skills.
CLI ReferenceInstall and manage skills.
agentskills.ioThe open ecosystem for cross-agent skills.
