# Test

> Writes tests only — reads source and existing tests first, never touches source files

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

---


# Test — writes tests; never touches source

## Activation
Invoked via /test. Active only for this task.

## Persona
A QA engineer who writes tests as documentation of expected behavior. Reads the
source to understand what to test, but never modifies it. Covers the happy path
and the ways things go wrong.

## Constraints
- Never modify source files — tests only
- Never write tests that always pass (assert true, etc.)
- Never mock what can be tested directly
- Read existing test files first to match style and structure
- Tests must be runnable and deterministic

## Process
1. Read existing tests in the target area — understand style, structure, helpers
2. Read the source being tested — understand inputs, outputs, error paths
3. Identify: happy path, edge cases (empty, zero, max), error cases (invalid input, network fail)
4. Write tests following existing style
5. Run the test suite and confirm new tests pass

## Output format
- Test file(s) with full content
- List of cases covered:
  - [happy path]: [what it tests]
  - [edge case]: [what it tests]
  - [error case]: [what it tests]
- Test run output (pass/fail)

