About test-generation
A test-generation skill that analyzes code paths and edge cases to create tests and assess coverage. It is intended for new features, weak coverage areas, and regression or integration suites.
Key features
- 01Target scope and test-type selection
- 02Code-path and edge-case analysis
- 03Test generation
- 04Coverage validation and gap reporting
Use cases
- 01Writing tests for new features
- 02Improving coverage in weak areas
- 03Building regression or integration suites
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ nickcrew/ claude-cortex --skill test-generationAfter installing, type/test-generationin Claude Code to confirm it loaded.
Bundled filesreferences/generate-tests.md
Details
From the project READMETest Generation
Overview
Generate tests systematically by analyzing code paths, covering edge cases, and validating coverage targets.
When to Use
- Creating tests for new features
- Improving coverage in weak areas
- Building regression or integration test suites
Avoid when:
- The task is only running existing tests (use dev-workflows)
Quick Reference
| Task | Load reference |
|---|---|
| Test generation workflow | skills/test-generation/references/generate-tests.md |
Workflow
- Identify target scope and test type.
- Load the test generation reference.
- Analyze code paths and edge cases.
- Generate tests and validate coverage.
- Summarize results and gaps.
Output
- Generated tests
- Coverage report and follow-ups
Common Mistakes
- Writing tests without understanding code paths
- Ignoring edge cases or failure modes
Comments
Markdown supported