suggest-simplification
Installation
SKILL.md
Code Simplification Suggestions
Analyze PHP code for simplification and refactoring opportunities.
Simplification Patterns
1. Extract Method
// BEFORE: Long inline code block
public function processOrder(Order $order): void
{
// Validate order (5 lines)
if ($order->getItems()->isEmpty()) {
throw new EmptyOrderException();
}
if ($order->getTotal()->isNegative()) {
throw new InvalidTotalException();
}