# Test Writer

> Write focused unit tests for a module or function. Use when the user asks to add tests, improve coverage, or make a module testable.

- Skill: `archit-13028/test-writer` (Agent Skill)
- Install (CLI): `npx skillmds@latest add archit-13028/test-writer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/archit-13028/test-writer/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Archit-13028 (https://skillmd.com/u/archit-13028)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/archit-13028/test-writer

---


# Test Writer

## Instructions

1. Read the module first; list its public surface.
2. Write tests for behavior, not implementation details.
3. Cover: happy path, boundary values, error cases.
4. Use fixtures and temp dirs; never touch the network or real FS state.
5. Name tests as test_<unit>_<scenario>_<expectation>.

## Rules

- One assertion theme per test.
- No sleeps; use fakes for time.
- If the code is untestable, say why and propose the smallest refactor.

