commandby LEEI1337

Refactor

Refactor code for better maintainability and performance

Installs: 0
Used in: 1 repos
Updated: 1h ago
$npx ai-builder add command LEEI1337/refactor

Installs to .claude/commands/refactor.md

# Refactoring Task

Please refactor the provided code focusing on:

## 1. Code Structure
- Extract reusable functions/components
- Reduce complexity and nesting
- Improve modularity
- Apply design patterns where appropriate

## 2. Naming & Clarity
- Use descriptive variable and function names
- Remove magic numbers and strings
- Add meaningful comments
- Improve code readability

## 3. Performance
- Optimize algorithms
- Reduce redundant operations
- Improve resource usage
- Consider caching where appropriate

## 4. Maintainability
- Reduce dependencies
- Improve testability
- Follow language conventions
- Update documentation

Provide before/after comparisons and explain the improvements.

Quick Install

$npx ai-builder add command LEEI1337/refactor

Details

Type
command
Author
LEEI1337
Slug
LEEI1337/refactor
Created
3d ago