Skip to content
Productivity
Command

/write-tests

Generate comprehensive test coverage for existing code.

From plugin
nimbalyst
2.1k54 skills3 agents54 commands3 MCP
> /plugin marketplace add nimbalyst/nimbalyst
> /plugin install nimbalyst-wiki@nimbalyst

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
@nimbalyst
Ships withnimbalyst

Nimbalyst - The open-source visual workspace for Claude Code, Codex, and OpenCode. Run multiple coding agents in parallel, edit their work visually in markdown, mockups, and diagrams, and track tasks. Free, MIT-licensed desktop app for macOS, Windows, Linux, with mobile companion for iOS and Android.

2.1k16 skills3 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.1k
Star history of nimbalyst/nimbalyst on GitHub, a chart by star-history.com

Other commands on nimbalyst.

analyze-sessions

analyze-sessions

Command

Audit recent AI coding sessions to find repeated mistakes, speed losses, and missed Nimbalyst tool usage — then propose harness…

@nimbalyst@nimbalystInstall Command
audit-updates

audit-updates

Command

Triage pnpm audit findings and produce a prioritized, supply-chain-cautious package-update plan, then apply approved batches

@nimbalyst@nimbalystInstall Command
autofix-issues

autofix-issues

Command

Survey recently triaged GitHub issues, propose the ones safe to fix without a product decision, and fan the selected ones out to…

@nimbalyst@nimbalystInstall Command

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command