/test
Generate comprehensive tests
$ npx -y skills add assistant-ui/tool-ui --agent claude-codeHow 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
Context preview
What this command does when you run it.
Generate comprehensive tests
Command definition
test.mddescription: Generate comprehensive tests
Generate unit tests for $ARGUMENTS covering:
1. **Happy Path** - Normal expected behavior 2. **Edge Cases** - Boundary conditions, empty states, null/undefined 3. **Error Handling** - Failed API calls, invalid inputs, exceptions 4. **User Interactions** - Clicks, inputs, form submissions 5. **State Changes** - Component state updates, prop changes 6. **Async Behavior** - Promises, loading states, race conditions
Use:
- React Testing Library for components
- Mock external dependencies
- Descriptive test names
- Arrange-Act-Assert pattern
- Follow existing test patterns in the codebase
Repo: assistant-ui/tool-ui
Other commands on tool-ui.
- /component
Create new React component
Open command - /fix
Debug and fix errors
Open command - /generate-tool-ui
Generate a complete Tool UI component with docs, presets, and quality gates
Open command - /optimize
Optimize performance
Open command - /refactor
Refactor code for better quality
Open command - /review
Comprehensive code review
Open command

