Skip to content
Development
Command

/refactor

Refactor code for better quality

From plugin
tool-ui
7767 skills5 agents7 commands
$ npx -y skills add assistant-ui/tool-ui --agent claude-code

Command definition

refactor.md
description: 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.

@assistant-ui
Ships withtool-ui

UI components for AI interfaces

7761 skill5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
776
Star history of assistant-ui/tool-ui on GitHub, a chart by star-history.com

Other commands on tool-ui.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command