# Show HN: SkillUnit – build your agent skill from your tests

> Source: <https://github.com/Elecash/skillunit>
> Published: 2026-12-03 15:05:35+00:00

**Key takeaway:** SkillUnit generates an agent skill from tests run in Vitest, node:test, Jest, Mocha, Jasmine, Bun, Playwright or Cypress, and can validate skill prose with TypeSafe or the OpenAI Decisions Model so description changes are checked for clarity.

Hi HN,

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 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. Currently it has support for Vitest, node:test, Jest, Mocha, Jasmine, Bun, Playwright and Cypress, but there's an interface to add any runner.

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.

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

Comments URL: [https://news.ycombinator.com/item?id=50746821](https://news.ycombinator.com/item?id=50746821)

Points: 1

# Comments: 0
