r/ClaudeCode • • 11h ago

Built with Claude SkillUnit - Generate skills from your unit tests

Hi Claude Coders,

I've been working on this idea of "testing skills", I'm working on a big open source library and we had issues in the past because our skill describes our API and sometimes it was not up to date against our code, or the new descriptions were vague and agents can't follow the instructions properly.

So I've created SkillUnit. With SkillUnit you write tests with your test runner and the library generates a skill for you, so your skill is always tested against code and up to date. Because the skill is generated from code (unit tests), it's impossible that an agent hallucinates and invents an API or describes something wrong.

For prose that might have complex descriptions you can test with a model decision like TypeSafe. This way you can know that if a skill description changes it's still clear enough to be understood by an agent (spoiler: that doesn't mean the agent follows the instructions, it just means the instructions are good enough to be followed).

Now there's support for TypeSafe and OpenAI Decisions Model, but soon I'll add support for Clef and Gemini Decisions API too.

Everything is built with Claude Code Opus 5.5 High, I started planning with Claude Fable 5.2 (and executing with Opus 5.5) but ended up discussing too much about what should be tested, why adding constraints is good, and the nuances about when something fails because it should have been tested or because it's a bug in the code. Honestly, I expected that Claude understood this nuances better, but I had too many discussions about it. With Opus 5.5 everything went smoother.

Anyway, I hope you like it, and use it. I would like to get some feedback specially in the decisions model ask api.

It is open source and free, you can test it here: https://github.com/Elecash/skillunit

2 Upvotes

1 comment sorted by

•

u/AutoModerator 11h 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.