Skip to content

gpsaggese/helpers / .claude/skills/testing.write_unit_tests

testing.write_unit_tests

Verified

Propose a plan for unit testing a file and then implement it

FileKindSize
SKILL.mdskill md741 B
---
description: Propose a plan for unit testing a file and then implement it
model: haiku
---

# Goal
- Propose a unit test plan for a file, then implement it after the user approves

# Workflow

## Propose a Unit Test Plan
- For a file `<FILE>`, write a comprehensive unit test plan per
  `.claude/skills/testing.rules.md`
- Save a file summarizing what will be tested

## Implement the Unit Test Plan
- Wait for the user to approve or modify the plan
- Then implement it

# Important
- All unit test invariants and conventions are in `.claude/skills/testing.rules.md`
- For all code, follow `.claude/skills/coding.rules.md`

# Verification
- [ ] Make sure everything in `# Verification` in `.claude/skills/testing.rules.md`
  is verified
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall