An AI-driven CLI tool that automatically generates comprehensive unit tests for your source code to improve coverage and reliability.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install test-gen
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-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
test-gen is a high-performance utility designed to bridge the gap between development and testing. By leveraging AI to analyze source files, it identifies testable functions and classes, crafting robust test suites that go beyond simple coverage metrics. This tool is a standout addition to the Openclaw Skills ecosystem, offering developers a zero-config solution to reducing technical debt.
Whether you are working with Jest, Vitest, or Mocha, this skill automates the creation of happy paths, edge cases, and error-handling scenarios. It is particularly valuable for teams looking to integrate modern testing standards into their existing workflows without the manual overhead of writing boilerplate test code.
No permanent installation is required to start using this part of the Openclaw Skills library. You simply need Node.js 18+ installed on your machine.
# Run the tool directly using npx for a specific file
npx ai-test-gen ./src/utils.ts
# To view all available configuration flags and framework options
npx ai-test-gen --help
The tool manages data by reading your source code and outputting structured test files according to your existing project structure. Below is how the data is handled:
| Component | Description |
|---|---|
| Input Files | TypeScript or JavaScript source files (.ts, .js, .tsx, .jsx). |
| Output Files | Structured test files compatible with Jest, Vitest, or Mocha. |
| Mocking Logic | Automatic dependency injection and mocking based on detected imports. |
| Test Coverage | Comprehensive coverage including Happy Path, Edge Cases, and Error Handling. |
Loading
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.

A specialized developer tool that converts Prisma database schemas into production-ready Supabase Row Level Security policies.

Automatically generate production-ready unit tests with real assertions by analyzing your source code logic.

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








































