Development
Command
/refactor
Refactor code for better quality
$ npx -y skills add assistant-ui/tool-ui --agent claude-code
Command definition
refactor.mddescription: Refactor code for better quality
Refactor $ARGUMENTS to improve:
1. **Readability**
- Clear variable/function names
- Reduce complexity
- Extract helper functions
- Add helpful comments
2. **Maintainability**
- DRY principle
- Single responsibility
- Loose coupling
- High cohesion
3. **Type Safety**
- Replace `any` with proper types
- Add generics where helpful
- Improve type inference
4. **Modern Patterns**
- Use modern React patterns
- Leverage TypeScript features
- Apply functional programming where appropriate
IMPORTANT: Maintain exact same functionality and API - this is refactoring, not rewriting.
Stats
776
Stars
30
Forks
Maintained
Maintenance
TypeScript
Language
MIT
License
Last commit
Created
7761 skill5 agents
Other commands on tool-ui.
generate-tool-ui
CommandGenerate a complete Tool UI component with docs, presets, and quality gates
More commands from other plugins.
Auto-invoked
Auto-invoked
build
CommandImplement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

