Test writer

From devclarityai/environment-setup · View interactive version

Test writer is an AI agent skill from the GitHub repository devclarityai/environment-setup. Generate thorough tests for a function or module

How to use this skill

Skill file

Use this template to generate thorough tests for a function or module.

INPUTS

INSTRUCTIONS

  1. Identify inputs, outputs, and invariants. Derive test matrix.
  2. Cover happy path, edge cases, and failure modes.
  3. Include unit and integration tests matching the project's testing stack.
  4. Provide fixtures, mocks, and stubs with minimal boilerplate.
  5. Add property/fuzz tests for parsers and validators.
  6. Include performance and concurrency probes if relevant.
  7. Ensure tests are deterministic and parallel-safe.
  8. Keep lines <= 80 chars.

OUTPUT FORMAT

Scope

Test matrix

| Case | Inputs | Setup | Expected |

|------|--------|-------|----------|

| 1 | ... | ... | ... |

Unit tests (sketches)

// Framework-specific unit test examples

Integration tests

Property/fuzz tests

Performance checks

Observability assertions

Coverage goals

Run commands

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.