Skip to content
Productivity
Command

/write-tests

Generate comprehensive test coverage for existing code.

From plugin
nimbalyst
1.4k35 skills3 agents35 commands
Install
$ npx -y skills add nimbalyst/nimbalyst --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/write-tests

Context preview

What this command does when you run it.

Generate comprehensive test coverage for existing code.

Command definition

write-tests.md
packageVersion: 1.0.0
packageId: developer
description: Generate comprehensive test coverage for existing code.

/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
Ships withnimbalyst

Nimbalyst is a free, open-source, local, interactive visual editor & session/task manager for developers, product managers, designers, builders.

Get the whole plugin