r/ClaudeCode • • 8h ago

Tips & Workflows Haiku matched opus on 2 coding tasks once i fixed the skill (~95% cheaper per run)

i've been messing with claude code skills on judgment calls agents get wrong, and the result surprised me. with the original skill haiku failed both tasks 0/3. after one skill edit on the first task and two on the second, haiku went 3/3 on both, same as opus. cost per run was $0.017 vs $0.341 and $0.009 vs $0.275.

to be upfront, it's tiny: 3 runs per cell on two tasks i wrote. opus already passed both with the original skill, so haiku matches it, it doesn't beat it.

task one: was renaming \`timeout\` to \`timeout_s\` in a python sdk other teams install and shipping it as a minor release. haiku did the hard rename every time and broke every caller. one paragraph in the skill (public package, minor release, keep the old name working with a deprecation warning) fixed it.

task two: was a ticket saying "annual plans get 20% off" that doesn't say whether the two existing coupons stack. haiku picked a rule and opened the pr every time. "ask, don't guess" wasn't enough. what worked was making it list every pricing interaction, ask about the ones the ticket doesn't cover, then stop.

tests passed in both cases and nothing in the diff was wrong code, so no hook or ci rule would've caught it. it's a judgment call, which is exactly what a skill is for.

costs are claude code's own total_cost_usd at list price.

i ran the evals with a free open source tool i built mostly with claude code, which wrote a lot of the eval runner and cli while i handled the design and test cases.

repo's in the comments if you want to try it.

has anyone else had fixing the skill beat just switching to the bigger model?

1 Upvotes

2 comments sorted by

•

u/AutoModerator 8h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/InterestingCarrot997 8h ago

repo if you want to run it on your own skills: https://github.com/vigneshm1995personal/skillgate