Development
Command
/test
Generate comprehensive tests
Install
$ 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
Stats
784
Stars
30
Forks
Active
Maintenance
TypeScript
Language
MIT
License
18d ago
Last commit
10mo ago
Created
Repo: assistant-ui/tool-ui
Other commands on tool-ui.
Command
Command
Command
generate-tool-ui
Generate a complete Tool UI component with docs, presets, and quality gates
Command
Command
Command

