From superpowers-laravel
Enforces Laravel complexity guardrails: cyclomatic ≤7, ≤80 lines per function, guard clauses, helper extraction, table-driven/strategy patterns over switches. Flags mixed concerns and hard-to-test paths.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-laravel:complexity-guardrailsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Design to keep complexity low from day one.
Design to keep complexity low from day one.
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelAudits and restructures nested conditions, complex booleans, loop design, and callback chains using Code Complete rules. Targets deep nesting, high cyclomatic complexity, and unclear loop indexes.
Measuring and reducing cyclomatic complexity and cognitive complexity to improve maintainability.
Provides production-grade, idiomatic Laravel solutions with clean architecture, security best practices, performance optimizations, and modern standards for Laravel 10/11+. Use for features, refactoring, APIs, auth, services, DB interactions, and code reviews.