Skip to content

Shorten the agent skill descriptions so they fit Claude Code's skill listing budget #2873

Closed

Description

@josecelano-bot

Parent EPIC: #2003 - Overhaul: Automation Tools and AI Agent Guardrails

Goal

Shorten and retune the description of each of the 53 project skills, so the skill listing Claude Code loads into every session fits its budget with room to spare, while each skill still loads for the tasks it is meant for. Fix the write-markdown-docs description, which YAML cuts short, and add a check so no description is cut or grows too long again.

Problem

Issue #2866 moves the skills to .claude/skills/<name>/SKILL.md, where Claude Code discovers them. Every discovered skill's name and description is then loaded into every session. The listing budget is 1% of the context window; over budget, the descriptions of the least-invoked skills are dropped. The maintainer decided on 2026-11-15 that shortening the descriptions is this separate issue, so the move stays a reviewable rename.

Measured with claude -p "/context" (Claude Code 2.1.318, Sonnet 5.5, 1M window) on the 53 skills, flat, at develop a35960402, matching #2866's measurement:

Measurement Value
Skills category, no project skills 4.6k tokens
Skills category, with the 53 project skills 9.9k tokens (1.0%, cap)
The 53 project skill entries alone ~6,980 tokens
Other skills whose descriptions were dropped 7 of 26 (claude.ai sync)
Description length: total / mean / max (characters, YAML-parsed) 19,489 / 368 / 724
Descriptions of 300 characters or more 42 of 53

On a 200k window the budget is about 2k tokens, less than a third of today's project entries.

Defect: the write-markdown-docs description is a plain YAML scalar containing a space followed by #NUMBER; YAML reads the rest as a comment and keeps only 123 of 578 characters, ending before the Use when clause and every trigger phrase. Its /context row is about 50 tokens.

Plan

  • Description rules: 200 characters or less (YAML-parsed); what the skill does, then Use when ...; keep the two to four trigger words that set the skill apart; details go in the body; quote values that contain # or a colon followed by a space. At 200 characters the entries cost about half of today.
  • Fix write-markdown-docs by quoting the value (handled as a bug via the fix-bug skill).
  • A frontmatter-validator rule, next to Move the agent skills to .claude/skills/ so Claude Code discovers them #2866's skill rules: fails on a description over 200 characters or cut at a YAML comment.
  • Update add-new-skill ("max 1024 chars" becomes the new rules).
  • Re-measure with claude -p "/context" before and after, and check with sample prompts that the same skills still load.

Timing

The description edits land after #2866's implementation PR merges, on the new .claude/skills/<name>/ paths; the spec PR can merge before.

Out of Scope

Moving the skills (#2866); fitting the full listing into a 200k window (possible separate follow-ups); skills outside the repository.

The full specification is in docs/issues/open/ (folder for this issue), added by the spec PR.

Activity

  1. added 10 commits that reference this issue on Nov 16, 2026
  2. added 2 commits that reference this issue on Nov 16, 2026
  3. added a commit that references this issue on Nov 16, 2026
  4. added a commit that references this issue on Nov 16, 2026
  5. 28 remaining items

  6. added 11 commits that reference this issue on Nov 17, 2026
  7. added a commit that references this issue on Nov 17, 2026
  8. added 3 commits that reference this issue on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions