
This automates the tedious work of writing Vitest tests for code examples in documentation. It scans your concept pages, extracts every console.log and return value, then generates proper test files with source line references and organized describe blocks. The four phase approach handles everything from basic assertions to DOM tests, async code, and intentional errors. It follows project conventions like putting fundamentals tests in one directory and advanced topics in another, naming DOM tests with .dom.test.js, and structuring describe blocks to mirror your documentation sections. Best for maintaining a docs site where you need confidence that every code snippet actually works as shown.
$ npx -y skills add leonardomso/33-js-concepts --skill test-writer --agent claude-codeInstalls into .claude/skills of the current project.
Use this skill to generate comprehensive Vitest tests for all code examples in a concept documentation page. Tests verify that code examples in the documentation are accurate and work as described.
Follow these four phases to create comprehensive tests for a concept page.
Scan the concept page for all code examples and categorize them:
Sponsors