---
name: write-test
description: Write one test for a named file and a named behavior. Use when the user runs /write-test with a path and the behavior to cover.
argument-hint: "[file] [behavior]"
disable-model-invocation: true
allowed-tools: Read Grep Glob
---

Write one test. Do not change production code. Do not invent a test runner.

File: $0
Behavior to cover: $1

1. Read $0.
2. Find the test file that already covers that module. If none exists, say so and name the path you would add. Do not create a new runner.
3. Add one test for the behavior in $1. Match the runner and the file layout the repo already uses.
4. If the instructions you receive still contain the characters $0 or $1, that argument was not passed. Stop and say which one is missing.
