# Auto Test Generator

> Auto Test Generator

- Skill: `javimosch/auto-test-generator` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/auto-test-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/auto-test-generator/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/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

