proflead/codex-skills-library / skills/testing/unit-test-starter
unit-test-starter
VerifiedGenerate starter unit tests for a small function or module. Use when a junior developer needs test scaffolding and edge cases.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 835 B |
SKILL.md
View on GitHub---
name: unit-test-starter
description: Generate starter unit tests for a small function or module. Use when a junior developer needs test scaffolding and edge cases.
---
# Unit Test Starter
## Purpose
Generate starter unit tests for a small function or module.
## Inputs to request
- Function signature and expected behavior.
- Test framework and language.
- Edge cases or error conditions.
## Workflow
1. Identify core behaviors and failure cases from the function signature.
2. Propose table-driven cases with inputs and expected outputs.
3. Highlight one edge case and one negative case.
4. Show how to run the tests.
## Output
- Test case list with rationale.
- Sample test code snippet for the project test framework.
## Quality bar
- Keep tests deterministic and isolated.
- Prefer clear assertions over broad snapshots.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |