← Back to Skills Marketplace
sky-lv

Skylv Test Case Generator

by SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
47
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install skylv-test-case-generator
Description
Auto-generates unit tests and integration tests from source code. Supports Jest, Pytest, Mocha. Triggers: write tests, generate tests, unit test, test covera...
README (SKILL.md)

Test Writer

Overview

Analyzes source code and auto-generates comprehensive unit and integration tests.

When to Use

  • User asks to "write tests" or "add test coverage"
  • User wants to "test this function"

How It Works

Step 1: Detect test framework

Check: package.json (jest/mocha), pytest.ini, pyproject.toml, conftest.py

Step 2: Parse source

Read source files. Identify: function signatures, parameters, return types, error handling, edge cases.

Step 3: Generate test cases

For each function generate: happy path, edge cases (empty/null/zero), error cases, boundary cases.

Step 4: Write test file

JavaScript: tests/filename.test.js or filename.test.js Python: tests/test_filename.py

Templates

Jest

describe('functionName', () => { test('should return expected result', () => { expect(functionName(input)).toBe(expected); }); test('should throw for invalid input', () => { expect(() => functionName(invalid)).toThrow(); }); });

Pytest

def test_function_normal(): assert function_name(input) == expected

def test_function_invalid(): with pytest.raises(ErrorType): function_name(invalid)

Tips

  • Target 80%+ coverage on critical functions
  • Cover all branches and error paths
  • Mock external dependencies (API, filesystem, DB)
Usage Guidance
This appears safe for a test-generation workflow. Install it if you are comfortable with the assistant reading source files and creating test files, and review all generated tests before execution or commit.
Capability Analysis
Type: OpenClaw Skill Name: skylv-test-case-generator Version: 1.0.0 The skill bundle is a standard utility for generating unit and integration tests in JavaScript and Python. The instructions in SKILL.md are purely functional, guiding the AI agent to detect frameworks, parse source code, and apply standard testing templates (Jest/Pytest) without any evidence of malicious intent, data exfiltration, or prompt injection.
Capability Assessment
Purpose & Capability
The stated purpose is to generate unit and integration tests, and the instructions focus on detecting test frameworks, reading source structure, and creating test files.
Instruction Scope
The skill instructs the agent to read project files and write test files; this is expected for test generation, but users should review generated changes before running or committing them.
Install Mechanism
No install specification, required binaries, environment variables, credentials, or code files are present.
Credentials
The requested local project access is proportionate to generating tests and there is no evidence of external transmission or unrelated system access.
Persistence & Privilege
The artifacts do not describe background execution, persistent memory, privilege escalation, or ongoing autonomous behavior.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install skylv-test-case-generator
  3. After installation, invoke the skill by name or use /skylv-test-case-generator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of Test Writer (skylv-test-writer) version 1.0.0 - Auto-generates unit and integration tests for JavaScript and Python code - Supports Jest, Pytest, and Mocha frameworks; detects relevant config files automatically - Handles happy path, edge, error, and boundary cases for test generation - Provides templates and tips to maximize coverage and robustness - Triggers: "write tests", "generate tests", "test coverage", "testing scaffold"
Metadata
Slug skylv-test-case-generator
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Skylv Test Case Generator?

Auto-generates unit tests and integration tests from source code. Supports Jest, Pytest, Mocha. Triggers: write tests, generate tests, unit test, test covera... It is an AI Agent Skill for Claude Code / OpenClaw, with 47 downloads so far.

How do I install Skylv Test Case Generator?

Run "/install skylv-test-case-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Skylv Test Case Generator free?

Yes, Skylv Test Case Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Skylv Test Case Generator support?

Skylv Test Case Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Skylv Test Case Generator?

It is built and maintained by SKY-lv (@sky-lv); the current version is v1.0.0.

💬 Comments