Development
Command
/component
Create new React component
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
/component
Context preview
What this command does when you run it.
Create new React component
Command definition
component.mddescription: Create new React component
Create a new component: $ARGUMENTS
Follow project patterns:
- **Location**: `apps/www/app/components/` (or specify subdirectory)
- **Style**: Functional component with TypeScript
- **Props**: Properly typed interface
- **Styling**: Tailwind CSS classes
- **Exports**: Named export (not default)
- **Accessibility**: ARIA labels, keyboard navigation
- **Theme**: Support light/dark mode via next-themes
Include: 1. TypeScript interface for props 2. JSDoc comments for complex logic 3. Proper prop validation 4. Responsive design considerations 5. Error boundaries if needed
Check `apps/www/app/components/` for similar patterns to follow.
Stats
766
Stars
31
Forks
Maintained
Maintenance
TypeScript
Language
MIT
License
3mo ago
Last commit
9mo ago
Created
Repo: assistant-ui/tool-ui
Other commands on tool-ui.
- /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 - /test
Generate comprehensive tests
Open command

