Test

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

puukis eb06fc7 1.2 KB Updated

File contents

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)

puukis/lstack/tree/main/skills/test commit eb06fc7ac3

Frequently asked questions

npx skillmds@latest add puukis/test