test-gen
by PromptSpace
Automated test generation with edge case analysis and framework-native syntax for TS, Python, Go, and Rust.
- Automatically detect and adapt to existing Jest, Pytest, or Vitest setups.
- Generate full test coverage for untested legacy files in a single pass.
- Create robust mocks for external API calls and database interactions.
$12
One-time purchase
Included in download
- Downloadable skill package
- Works with OpenClaw, Cursor
- Instant install
test-gen
by PromptSpace
Automated test generation with edge case analysis and framework-native syntax for TS, Python, Go, and Rust.
$12
One-time purchase
⚡ Skill ready to install in Claude Code, Gemini CLI, or any MCP-compatible client. Read the install guides →
Included in download
- Downloadable skill package
- Works with OpenClaw, Cursor
- Instant install
About This Skill
Comprehensive Automated Unit Testing
Writing unit tests is often the most time-consuming part of the development cycle. This skill automates the entire process by analyzing your source code and generating high-quality, framework-idiomatic tests. It doesn't just write "happy path" assertions; it deeply analyzes function signatures and logic to identify edge cases, boundary values, and potential error states that you might have missed.
What it does
- Smart Framework Detection: Automatically identifies your project's testing stack (Jest, Vitest, Pytest, Go testing, or JUnit) by scanning configuration files like
package.jsonorCargo.toml. - Context-Aware Generation: Parses your TypeScript, JavaScript, Python, Go, or Rust files to extract exports, classes, and functions.
- Edge Case Analysis: Generates specific test cases for null/undefined inputs, empty strings, maximum boundaries, and async rejections.
- Zero-Config Mocking: Detects external dependencies and sets up framework-specific mocks for HTTP, DB, and filesystem calls.
Why use this skill?
Unlike basic AI prompting, this skill follows a structured multi-step engineering process. It ensures imports are correct, prevents syntax errors, and places files according to project-specific naming conventions (e.g., *.test.ts vs test_*.py). It saves developers hours of boilerplate work while increasing code coverage and reliability without requiring manual intervention.
Use Cases
- Automatically detect and adapt to existing Jest, Pytest, or Vitest setups.
- Generate full test coverage for untested legacy files in a single pass.
- Create robust mocks for external API calls and database interactions.
- Ensure 100% coverage of boundary values and common error conditions.
How to Install
mkdir -p ~/.claude/skills/test-gen && curl -s -X POST 'https://api.promptspace.in/api/skills/test-gen/install' | python3 -c "import sys,json; sys.stdout.write(json.load(sys.stdin).get('installInstructions') or '')" > ~/.claude/skills/test-gen/SKILL.mdFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
Security Scanned
Passed automated security review
Permissions
No special permissions declared or detected
OpenClaw, Cursor, Claude Code, Codex CLI
Creator
PromptSpace
We build AI agent skill packages for content creators. Specializing in Chinese social media automation.