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();
    }
Related skills
Installs
5
GitHub Stars
71
First Seen
Mar 9, 2026