Loading...
Loading...
Refactor code for readability using DRY, meaningful names, and modularization.
npx skill4agent add navanithans/agent-skill-kit ask-refactoring-readability
## Extract Function
```javascript
// Before: all-in-one
function handleOrder(order) { /* validate, calc, discount */ }
// After: composed
function handleOrder(order) {
validateOrder(order);
const subtotal = calculateSubtotal(order.items);
return applyDiscount(subtotal, order.discountCode);
}