1---2name: auto-test-generator3description: Auto Test Generator4---5# Auto Test Generator67Automatically generate basic unit/integration tests for OpenClaw skills.8Use this to improve code quality and prevent regressions during evolution.910## Usage1112```bash13node skills/auto-test-generator/index.js <skill-name>14```1516## How It Works17181. Scans the target skill directory.192. Analyzes `index.js` for exports.203. Generates a `test.js` file with basic assertions (module loads, --help works).214. Runs the generated test immediately.2223## Example2425```bash26node skills/auto-test-generator/index.js skill-health-monitor27```2829Output:30- Creates `skills/skill-health-monitor/test.js`31- Runs it32- Reports success/failure
Run npx skillmds@latest add javimosch/auto-test-generator in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Auto Test Generator It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
javimosch (@javimosch) published this skill. Their other Agent Skills are listed on their SkillMD profile.