with one click
generate-tests
Generate comprehensive tests for specified code
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Generate comprehensive tests for specified code
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | generate-tests |
| description | Generate comprehensive tests for specified code |
| argument-hint | <file_or_module> [--framework jest|vitest|pytest] |
| effort | medium |
| when_to_use | Use when adding test coverage for a function, module, or feature. |
| disable-model-invocation | true |
Generate comprehensive tests for specified code.
Check for:
jest.config.js → Jestvitest.config.ts → Vitestpytest.ini → pytestmocha in package.json → MochaFollow the detected framework conventions.
Normal expected behavior with valid input.
describe('[ComponentName]', () => {
describe('[methodName]', () => {
// Happy path
it('should [expected behavior] when [condition]', () => {
// Arrange
// Act
// Assert
});
// Edge cases
it('should handle empty input', () => {});
it('should handle null values', () => {});
// Error cases
it('should throw when [invalid condition]', () => {});
});
});
/generate-tests src/utils/calculator.ts
/generate-tests src/services/
$ARGUMENTS
Clean up stale git worktrees with merged branch detection and disk usage report
Safely remove a git worktree with branch cleanup and safety checks
Create isolated git worktrees for feature development without switching branches
Check status of background verification tasks running in a git worktree
Perform a comprehensive code review of a pull request
Display native sandbox status, configuration, and recent violations