Skip to content
Development
Command

/test-unit

Write unit tests following best practices

From plugin
promptscript
46514 skills6 agents14 commands1 MCP
Install
$ npx -y skills add mrwogu/promptscript --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/test-unit

Context preview

What this command does when you run it.

Write unit tests following best practices

Command definition

test-unit.md
# promptscript-generated: 2026-05-30T23:22:42.935Z | source: .promptscript/project.prs | target: claude
description: 'Write unit tests following best practices'

Write unit tests following:

  • AAA pattern (Arrange, Act, Assert)
  • Proper test isolation with mocks
  • Descriptive test names
  • Edge cases and error conditions
  • No testing of implementation details
Ships withpromptscript

Agent platform configuration as code _Define instructions, skills, agents, MCP servers, hooks, workflows, and policies once.

Get the whole plugin