Repository navigation
Description
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-docsby quoting the value (handled as a bug via thefix-bugskill). - A
frontmatter-validatorrule, 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
docs(issues): [torrust#2873] put the regression test before the fix a…
docs(issues): [torrust#2873] keep the description rule opt-in until t…
docs(pr-reviews): [torrust#2873] record the first reviews of PR torru…
docs(issues): [torrust#2873] restore the evidence template headings
docs(issues): [torrust#2873] treat the /context row as corroborating …
docs(issues): [torrust#2873] detect comment truncation without a leng…
docs(pr-reviews): [torrust#2873] record the second reviews of PR torr…
docs(issues): [torrust#2873] state the parsed text and the V0 reruns …
docs(issues): [torrust#2873] cover a tab before '#' in the comment rule
docs(pr-reviews): [torrust#2873] record the third review of PR torrus…
docs(issues): [#2873] add issue specification for shortening the skil…
Merge #2875: docs(issues): [#2873] add issue specification for shorte…
docs(issues): [torrust#2866] record the final sweep and verification
Merge #2886: refactor(skills): [#2866] move the agent skills to .clau…
28 remaining items
docs(skills): [#2873] shorten the Logging skill descriptions
docs(skills): [#2873] shorten the Maintenance skill descriptions
docs(skills): [#2873] shorten the Planning skill descriptions
docs(skills): [#2873] shorten the Pull request reviews skill descript…
docs(skills): [#2873] shorten the Rust code quality skill descriptions
docs(skills): [#2873] shorten the Task reviews skill descriptions
docs(skills): [#2873] shorten the Testing skill descriptions
docs(skills): [#2873] shorten the Using the tracker skill descriptions
ci(skills): [#2873] check the skill descriptions in the pre-commit ho…
docs(skills): [#2873] state the skill description rules in add-new-skill
docs(issues): [#2873] record the measurements after the shorter skill…
Merge torrust#2893: docs(skills): [torrust#2873] shorten the agent sk…
chore(issues): [#2873] archive the closed spec and mark it DONE in EPIC
Merge #2900: chore(issues): [#2873] archive the closed spec and mark …
docs(issues): [#2904] add row 23 to EPIC #2003 and the late log entry…