Compile a Repeated Skill's Stable Steps Into Code, Keep the Model Only for Judgment

~90%+ token reduction on a repeated skill by removing model calls from steps that never vary Advanced 2 min read

Take a working natural-language agent skill, collect its execution traces, and permanently move the steps that have stabilized into a fixed procedure (search, filter, dedupe, format) into plain code, reserving model calls only for the genuinely semantic steps.

🔒 Pro tip · Advanced

Unlock this tip — and 105 more

This is one of 106 advanced, fact-checked tactics reserved for Pro. Get the full 128-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.