code-generate-tests
Installation
SKILL.md
Generate tests for untested functions and edge cases, then verify they pass.
Process
-
Identify context:
- If code changes are involved: run
jj diff -sfirst to see changed files; then usejj diff -- pathto restrict to specific files/directories - If the user specified specific files or paths, focus on those
- Understand which functions/modules need test coverage
- If code changes are involved: run
-
Detect test framework:
- Invoke
code-analyze-projectskill to detect test framework and testing patterns - Check for existing test files and naming conventions
- Identify test helper functions and fixtures in use
- Invoke
-
Identify untested code paths:
- Use Grep to find functions without corresponding tests
- Check for edge cases, error paths, boundary conditions
- Identify critical paths that lack coverage