Write Tests

Generate focused tests for deterministic local software changes.

rogerchappel 0ec2856 938 B Updated

File contents

Write Tests

When To Use

Use this skill when a user asks for new tests, bug reproduction coverage, or fixture-backed regression checks.

Inputs

Use the target source file, existing test style, package scripts, and fixture data already present in the repo.

Side Effects

Limit edits to tests, fixtures, and tiny support helpers unless the user asks for implementation changes.

Approval

Ask before installing dependencies, changing snapshots broadly, or running commands that write outside the repository.

Examples

  • Add regression tests for this parser bug.
  • Cover the CLI error path with fixtures.

Validation

Add fixtures first, cover edge cases, and keep tests runnable offline. Run the narrow test command before wider validation. Verify by running the affected test command and recording the result.

rogerchappel/skilldeck/tree/main/fixtures/valid-pack/skills/write-tests commit 0ec2856d26

Frequently asked questions

npx skillmds@latest add rogerchappel/write-tests