# Auto Test Generator

> Automatically generate basic unit/integration tests for OpenClaw skills. Use this to improve code quality and prevent regressions during evolution.

- Skill: `modbender/auto-test-generator` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add modbender/auto-test-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/modbender/auto-test-generator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: modbender (https://skillmd.com/u/modbender)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/modbender/auto-test-generator

---


# Auto Test Generator

Automatically generate basic unit/integration tests for OpenClaw skills.
Use this to improve code quality and prevent regressions during evolution.

## Usage

```bash
node skills/auto-test-generator/index.js <skill-name>
```

## How It Works

1. Scans the target skill directory.
2. Analyzes `index.js` for exports.
3. Generates a `test.js` file with basic assertions (module loads, --help works).
4. Runs the generated test immediately.

## Example

```bash
node skills/auto-test-generator/index.js skill-health-monitor
```

Output:
- Creates `skills/skill-health-monitor/test.js`
- Runs it
- Reports success/failure

