Step-by-step workflow for converting bloated command files to lean declarative definitions
SkillScore87Maintained
On-demandOn-demand: invoked explicitly — never occupies your agent's context until called.
◆AI Engineer pack
Last verified 8/16/2026
What it changes
Passed 19 of 22 test cases with the skill, and 6 of 22 without it.
Without skill26%
With skill87%
Checks it passed that the model alone missed
The response caps the example count at 3 max.
The analysis assigns a command classification.
The summary report includes before and after line counts.
and 15 more in the full report
15 fixed5 passed either way2 still failing1 broke
Pass-rate lift
+61 pp
Tokens
+24%
Agent turns
0%
Response time
-43%
Model gemini-3.6-flashMeasured 8/16/2026v120 of 23 cases passed with skill · 22 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 14 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 14
Prompt
The file `develop.md` is currently over 2,300 lines long. When refactored to pure high-level orchestration, what is the line count target?
What was checked, without and with the skill
Checked
Without skill
With skill
The response sets the target line count for develop.md between 200 and 300 lines.
Missed
Passed
case-19 · gemini-3.6-flash · 8/16/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md91 linessingle file
Command Optimization Workflow
Overview
Convert oversized commands (500-2400 lines) to lean declarative definitions (40-300 lines) by removing duplication, extracting domain knowledge to agents, and adopting the forge.md pattern.
Command retains WHAT and success criteria. Agent owns HOW.
2c: Delete dead content
Remove: deprecated format references | Aspirational unimplemented features | Verbose JSON contradicting current format | BUILD:INJECT placeholders | Mixed-language comments
2d: Reduce aggressive language
"CRITICAL: You MUST extract..." -> "Extract..."
"MANDATORY: Use the Task tool" -> "Use the Task tool"