{"slug": "show-hn-skillunit-build-your-agent-skill-from-your-tests", "title": "Show HN: SkillUnit – build your agent skill from your tests", "summary": "A developer launched SkillUnit, a tool that generates agent skills from tests written in an existing test runner so the skill stays validated against the code. SkillUnit supports Vitest, node:test, Jest, Mocha, Jasmine, Bun, Playwright and Cypress, with an interface for adding other runners, and can check prose descriptions using model decisions via TypeSafe and the OpenAI Decisions Model, with Clef and Gemini Decisions API support planned. The developer said the tool addresses skills that drift out of date or carry vague descriptions agents cannot follow, and is seeking feedback on the decisions model ask API.", "body_md": "Hi HN,\n\nI'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.\n\nSo 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.\n\nFor 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).\n\nNow there's support for TypeSafe and OpenAI Decisions Model, but soon I'll add support for Clef and Gemini Decisions API too.\n\nAnyway, I hope you like it, and use it. I would like to get some feedback specially in the decisions model ask api.\n\nComments URL: [https://news.ycombinator.com/item?id=50746821](https://news.ycombinator.com/item?id=50746821)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-skillunit-build-your-agent-skill-from-your-tests", "canonical_source": "https://github.com/Elecash/skillunit", "published_at": "2026-12-03 15:05:35+00:00", "updated_at": "2026-12-03 15:18:18.886547+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["SkillUnit", "Vitest", "node:test", "Jest", "Mocha", "Jasmine", "Bun", "Playwright"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-skillunit-build-your-agent-skill-from-your-tests", "markdown": "https://wpnews.pro/news/show-hn-skillunit-build-your-agent-skill-from-your-tests.md", "text": "https://wpnews.pro/news/show-hn-skillunit-build-your-agent-skill-from-your-tests.txt", "jsonld": "https://wpnews.pro/news/show-hn-skillunit-build-your-agent-skill-from-your-tests.jsonld"}}