# Writing Tests

> Instructions and hints for writing tests.

- Skill: `chattocorp/writing-tests` (Agent Skill)
- Install (CLI): `npx skillmds@latest add chattocorp/writing-tests`
- Raw SKILL.md: https://api.skillmd.com/api/skills/chattocorp/writing-tests/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: chattocorp (https://skillmd.com/u/chattocorp)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/chattocorp/writing-tests

---


## Testing Judgment

- Pick the lowest test layer that exercises the change, but do not stop below
  the layer where the bug could occur.
- When testing an early rejection, use input that would fail a later check. The
  test should still return the early error.
- Choose additional integration or end-to-end coverage when the regression can
  occur only across component or process boundaries.

