LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

generate-tests - Generate Tests for Code

Generates test cases for code following FIRST principles and AAA pattern with auto framework detection

Tags

Updated: 2026-03-23

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • read module or function file
  • identify public functions and classes
  • extract function signatures and types
  • select test design techniques
  • detect test framework from config
  • generate test cases
  • create test files
  • apply Arrange-Act-Assert pattern
  • apply FIRST principles
  • add test case IDs

Inputs

  • module or function path
  • test framework name
  • project configuration files

Outputs

  • test files
  • test cases with IDs
  • test technique documentation

Requirements

  • Python or TypeScript project
  • project with build configuration
  • writable file system

Source

  • Spec: SKILL.md
testing
test generation
unit testing
TDD
test automation
read module or function file
identify public functions and classes
extract function signatures and types
select test design techniques
module or function path
test framework name
project configuration files
test files
test cases with IDs
test technique documentation