Routing skill text through leaf files cuts words loaded by up to 49% across 12 bots
Overview
The author runs 12 bots and spent a week trimming the skill text loaded per task, using the real files to measure changes in words loaded.
Workflow
Trigger: Skill text draws from the allowance on every task. The author runs 12 bots and spent a week trimming the skill text loaded per task. Words loaded are the number of words in skill text a bot reads for one task, counted from the actual files. The weekly usage impact is the author's estimate because the official cap is unpublished.
- By hand: Route to leaf files. Keep only rules every task needs in SKILL.md and one line per branch, if X, open leaves/x.md. Measured words loaded fell 18–49%: image repair 49%, video planning 28%, a customer support skill 30%, new assets 18%. One drill skill saved 40% on one path and used 2% more on another. Confidence: high.
- By hand: Move examples out of rules. Put past examples in EXAMPLES, which does not load by default. The effect is already included in item 1. Confidence: high.
- By hand: Shorten descriptions. Descriptions load on every task. After combining four overlapping skills into a router, always-loaded description words fell from 131 to 39. Measured.
- By hand: Use efficient wording without losing meaning. One rule per line, condition first in If X, do Y form, direct imperatives, precise values, one word per concept, and each rule stated once. Keep reasons only for situations the rule does not cover. Confidence: medium. Implemented alongside item 1.
- By hand: Use plain words instead of symbolic abbreviations. The author reasons that abbreviations often tokenize worse and can mislead the bot. Confidence: low to medium. Reasoned without measurement.
- By hand: Write deterministic steps as scripts. Script steps needing no judgment, such as lookup, cropping, pixel comparisons, and lint, with a one-line call in the rules. Estimated savings are 2–20 tool calls and up to 1,800 words per task. Confidence: medium. It is an audit estimate and the scripts are still to be built.
- By hand: Deduplicate and resolve conflicts. Search existing rules before adding one. The author found two conflicting rules and deleted one. Confidence: medium.
- By hand: Merge memory by topic. Merge 201 notes into 68 and keep each fact once. Keep each note within 500 characters because memory search truncates longer entries, which cannot be deleted without a match. Confidence: low. Untested.
Check: The author counted words loaded before and after for each task from actual files, including 49% and 131→39. Weekly usage savings are estimated and have not been independently reproduced.
Key points and results
- Four principles. Load what you need. Measure before believing. One fewer round trip is worth more than a few fewer words. Compression loses information, so test after compressing.
- Estimated weekly savings are 7–10%, possibly 5–20%. Low confidence (author's claim, not reproduced).
- Four native features requested from Cursor and xAI: Branchable skills that load supporting files on demand (the skill editor currently ignores them, so the author copies them with the shell), a skill checker that reports words loaded and flags duplicates and conflicts, a usage breakdown by skill, and visible, shareable, versionable skill modules.
- Descriptions are an overlooked recurring cost. They load for every task. Combining four overlapping skills into one router cut words from 131 to 39.
Source
- Platform
- Blog
- Author
- avwest (AV West)
- Published
- Categories
- Code and repos, Limits
What this evidence label means
Source read in full
We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.