Test Writer

Generate production-grade unit tests for Go, Python, and TypeScript with clear edge-case coverage.

eddieran ee708f7 3 files · 3.9 KB Updated

File contents

Test Writer

Use this skill when the user wants high-signal unit tests from an existing source file or module.

Agent Compatibility

  • Claude Code: supported
  • Codex: supported

Inputs

  • One or more source files
  • Existing test style, helpers, and framework conventions when they exist
  • Bug reports or regressions that the tests must lock in

Workflow

  1. Read the source file and nearby tests before writing anything.
  2. Infer the existing test framework and naming conventions.
  3. Cover the main behavior, edge cases, and failure paths.
  4. Prefer deterministic tests over brittle snapshots.
  5. Add only the smallest helpers needed to keep the tests readable.

Output Contract

  • Explain the behavioral areas covered.
  • Add or update tests in the repository's existing style.
  • Mention untestable paths, hidden dependencies, or coverage gaps.

Guardrails

  • Do not mock what the codebase already exercises cheaply with real objects.
  • Do not encode internal implementation details when public behavior is enough.
  • Do not stop at a happy-path test if error paths matter.

eddieran/skillpm/tree/main/skills/test-writer commit ee708f791f

Frequently asked questions

npx skillmds@latest add eddieran/test-writer