en un clic
generate-tests
Generate comprehensive tests for specified code
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Generate comprehensive tests for specified code
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
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
| 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