Rebuilding agents as skills cut failures from 23% to 1% and halved cost

blaizedsouza · x · 2026-11-30

Qwestly's team rebuilt their overnight LinkedIn-rewrite agent from a 10-step state machine into a Claude Code-style skill system running in their cloud. Same 15 personas, 5 attempts each, same commit: failed sessions dropped 23%→1%, cached input 23%→83%, cost per session $0.55→$0.29, and follow-up clarifying questions went from 2/5 to 5/5. The cost halved because cache hits tripled — a skill keeps one toolset and system prompt for the whole conversation so the prefix never changes, while state machines swap prompts each step. The accompanying diagram details the production skill setup: typed, validated-at-import skill.py/SKILL.md/triggers.yaml structure, CI checks for every skill×surface, a fixed boot-time toolset, and YAML fixtures that cut missed trigger detections from 40% to near zero.

Original post →

More from coding & agent

coding & agent channel →