Skip to content

fix(skills): descriptions fit the hosts' skills context budget - #31

Merged
mathias-heide merged 1 commit into
mainfrom
fix/skill-description-budget
Sep 11, 2026
Merged

mathias-heide merged 1 commit into
mainfrom
fix/skill-description-budget

Conversation

@mathias-heide

Copy link
Copy Markdown
Contributor

Summary

Codex reported: "Skill descriptions were shortened to fit the skills context budget." Our 94 SKILL.md descriptions totalled 31,725 characters (about 7,900 tokens) injected into every session, each carrying a long "Trigger on ..." list. Claude Code's budget for all skill descriptions is about 15k characters, so it was likely truncating silently too.

  • Every SKILL.md description is now the skill's resource.yaml summary (≤160 chars): 13,322 characters total, about 3,300 tokens.
  • One source of truth: validate-library fails when the two differ; the manifests test enforces the one-line budget.
  • Trigger phrases remain in the skill bodies. npm run eval:routing reads summaries and shows no regression.
  • Docs: authoring rule added to docs/SKILLS.md; CHANGELOG under 3.1.1 (not yet published).

Test plan

  • npx vitest run 1483 pass, npm run validate:library, npm run generate:registry -- --check, npm run eval:routing (no regression)

🤖 Generated with Claude Code

Every SKILL.md description is now the skill's resource.yaml summary
(<=160 chars): 94 skills go from 31,725 to 13,322 characters of
description injected into every session. Codex had started truncating
("Skill descriptions were shortened to fit the skills context budget")
and Claude Code's budget is about 15k characters for all skills. Trigger
phrases stay in the skill bodies; the routing eval reads summaries and
shows no regression. validate-library now fails when a description and
its summary differ, and the manifests test enforces the 160-char line.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@mathias-heide
mathias-heide merged commit 40bf15f into main Sep 11, 2026
1 check passed
@mathias-heide
mathias-heide deleted the fix/skill-description-budget branch September 11, 2026 17:45
TimofeySukh pushed a commit that referenced this pull request Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant