test-writer

star 20

Generate comprehensive test coverage for existing code. Use when writing or expanding tests.

nimbalyst By nimbalyst schedule Updated 2/16/2026

name: test-writer description: Generate comprehensive test coverage for existing code. Use when writing or expanding tests.

/write-tests Command

Generate comprehensive test coverage for existing code.

What This Command Does

  1. Analyzes code to test
  2. Identifies test cases (happy path, edge cases, errors)
  3. Generates test code in appropriate framework
  4. Includes setup/teardown as needed

Usage

/write-tests [file or function]

Test Generation Approach

  • Uses existing test framework in project
  • Follows project test patterns
  • Includes meaningful test names
  • Covers edge cases and error conditions
  • Adds necessary mocks/fixtures

Best Practices

  • Review generated tests for accuracy
  • Adjust assertions as needed
  • Run tests to verify they pass
  • Add tests incrementally for large files
Install via CLI
npx skills add https://github.com/nimbalyst/skills --skill test-writer
Repository Details
star Stars 20
call_split Forks 4
navigation Branch main
article Path SKILL.md
More from Creator