Automatically generate production-ready unit tests with real assertions by analyzing your source code logic.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install test-writer
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install test-writer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Test Writer is a powerful utility within the Openclaw Skills ecosystem designed to solve the common developer bottleneck of manual test creation. By interpreting your source files, it understands function signatures, logic flow, and type definitions to produce high-quality unit tests that go beyond simple boilerplate.
This skill provides developers with a zero-config solution to increase test coverage across modern JavaScript and TypeScript projects. Whether you are working on complex utility functions or simple helpers, it ensures your code is backed by reliable assertions tailored to your specific logic.
No installation is required to start using this part of the Openclaw Skills toolkit. You can execute it directly using npx with Node.js 18+.
npx ai-test-gen src/your-file.ts
To see all configuration options, including framework selection:
npx ai-test-gen --help
| Element | Details |
|---|---|
| Input Sources | JavaScript (.js) or TypeScript (.ts) files, supporting glob patterns. |
| Frameworks | Native support for Jest, Vitest, and Mocha. |
| Output Type | Fully formatted test files with imports and describe/test blocks. |
| Metadata | Logic flow analysis and type definitions used for assertion accuracy. |
Loading
An AI-driven CLI tool that automatically generates comprehensive unit tests for your source code to improve coverage and reliability.

An AI-powered CLI tool that converts natural language infrastructure descriptions into structured Terraform configuration files.

Automatically transform your brand hex codes into a fully-featured Tailwind CSS configuration file including full shade ranges and semantic colors.

A zero-config CLI tool that transforms Express route files into complete OpenAPI 3.0 specifications.

An AI-driven CLI tool that transforms brand colors into fully functional, accessible design systems and CSS variables.

An intelligent CLI tool that generates perfectly tailored tsconfig.json files based on your specific project description.








































