From unit-test-generator
Test automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".
How this skill is triggered — by the user, by Claude, or both
Slash command
/unit-test-generator:generating-unit-testsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides automated assistance for unit test generator tasks.
This skill provides automated assistance for unit test generator tasks.
Before using this skill, ensure you have:
tests/, __tests__/, spec/)Examine code structure and identify test requirements:
Select appropriate testing framework based on language:
Create comprehensive test suite covering:
Generate test file in {baseDir}/tests/ with structure:
The skill generates complete test files:
// Example Jest test file
import { validator } from '../src/utils/validator';
describe('Validator', () => {
describe('validateEmail', () => {
it('should accept valid email addresses', () => {
expect(validator.validateEmail('[email protected]')).toBe(true);
});
it('should reject invalid email formats', () => {
expect(validator.validateEmail('invalid-email')).toBe(false);
});
it('should handle null and undefined', () => {
expect(validator.validateEmail(null)).toBe(false);
expect(validator.validateEmail(undefined)).toBe(false);
});
});
});
Generated mocks for:
Common issues and solutions:
Module Import Errors
Mock Setup Failures
Async Test Timeouts
Test Isolation Issues
This skill provides automated assistance for unit test generator tasks. This skill provides automated assistance for the described functionality.
Example usage patterns will be demonstrated in context.
Guides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
9plugins reuse this skill
First indexed Jul 10, 2026
Showing the 6 earliest of 9 plugins
npx claudepluginhub jamon8888/claude-code-plugins-plus --plugin unit-test-generator