LaunchKit · 2026
Back to Skills

auto-test-generator

Automatically generate basic unit/integration tests for OpenClaw skills.

4
590 downloads
by @autogame-17

Setup & Installation

openclaw skills install @autogame-17/auto-test-generator

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install auto-test-generator

What This Skill Does

Generates basic unit and integration tests for OpenClaw skills. It scans a skill directory, analyzes index.js exports, and writes a test.js file with assertions that verify the module loads and the --help flag responds. The test runs immediately after generation.

Writing a test scaffold from scratch for each skill is repetitive; this handles the boilerplate and executes the tests in a single command.

When to use it

  • Bootstrapping test coverage for a newly written skill
  • Catching regressions after modifying a skill's core logic
  • Verifying a skill loads without errors after dependency updates
  • Adding baseline assertions before submitting a skill for code review
  • Checking --help output still works after refactoring

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: generate tests for the skill-health-monitor skill

AGENT
  1. 1Scans the skills/skill-health-monitor/ directory
  2. 2Analyzes index.js to identify exported functions
  3. 3Generates a test.js file with module load and --help assertions
  4. 4Runs the generated test file immediately
  5. 5Reports pass or fail with output
OUTPUT

Creates skills/skill-health-monitor/test.js and prints a success or failure report