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.

Archit-13028 Updated

File contents

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_.

Rules

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

Archit-13028/agent-recipes/tree/main/skills/test-writer commit 7bb8c37850

Frequently asked questions

npx skillmds@latest add archit-13028/test-writer