Skip to content

drafael/coding-harness / skills/write-tests

write-tests

Verified

Write unit, integration, component, and end-to-end tests for code. Use when the user asks to "write tests", "add tests", "add test coverage", or "create test cases" for functions, services, components, CLIs, or user flows.

FileKindSize
README.mdmarkdown1.3 KB
SKILL.mdskill md3.6 KB
references/bun-test.mdmarkdown4.5 KB
references/jest.mdmarkdown4.7 KB
references/junit.mdmarkdown1.6 KB
references/node-test.mdmarkdown4.1 KB
references/playwright.mdmarkdown5.7 KB
references/typescript.mdmarkdown5.7 KB
references/vitest.mdmarkdown4.4 KB
# Write Tests Skill

## Description
Creates unit, integration, component, and end-to-end tests that follow project conventions, validate critical behavior, and improve reliability.

## Usage Examples
- "Write unit tests for this service class."
- "Add integration tests for this API endpoint."
- "Create Vitest coverage for this TypeScript package."
- "Add Playwright tests for the critical browser flow."
- "Add missing tests to improve coverage for this module."

## TypeScript runner references

TypeScript guidance is composable: load `references/typescript.md` for cross-runner test-authoring rules, then load every matching runner reference for Vitest, Jest, Node test, Bun test, or Playwright. Repository conventions and installed-version behavior remain authoritative.

## Origin (Custom Command Conversion)
This local skill was created by converting a custom slash command from the upstream repository.
- Original command: `.claude/commands/test/write-tests.md`
- Upstream repository: [qdhenry/Claude-Command-Suite](https://github.com/qdhenry/Claude-Command-Suite)

## Credits
- Original command author: **Quintin Henry**
- Converted/adapted into local skill format for this repo: `coding-harness`

## License
- Upstream repository README marks license as **MIT**: [qdhenry/Claude-Command-Suite](https://github.com/qdhenry/Claude-Command-Suite)
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 319kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 319kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 319kUpdated 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: 196kUpdated Claude CodeCodexVerifiedInstall