跳至主要内容
小龙虾小龙虾AI
🤖

Auto Test Generator

Automatically create and run basic unit/integration tests for OpenClaw skills to ensure code quality and prevent regressions.

下载444
星标3
版本1.0.0
开发工具
安全通过
💬Prompt

技能说明

Auto Test Generator

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

Usage

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

node skills/auto-test-generator/index.js skill-health-monitor

Output:

  • Creates skills/skill-health-monitor/test.js
  • Runs it
  • Reports success/failure

如何使用「Auto Test Generator」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Auto Test Generator」技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能