php-solid-review
Installation
SKILL.md
PHP SOLID Review
Scope
- Treat SOLID and object-oriented design rules as heuristics, not automatic mandates.
- Prefer maintainable, testable, intention-revealing, simple local designs over pattern-heavy code or hypothetical abstractions and optimizations.
- Apply project conventions and more specific PHP skills first when they are relevant.
Skill Precedence
- For tests, use
php-testing-style. This skill must not override its rules for test naming, mocking style, unit versus integration boundaries, assertions, layout, or verification scope. - For readable PHP naming, guard clauses, factories, utilities, nullable collections, and test-only production code, use
php-readable-code. - For domain-sensitive behavior, identifiers, persistence shape, or invariants, use
php-domain-clarificationbefore proposing or coding changes when rules are unclear. - Use
php-clean-architectureandphp-ddd-architectureonly when project instructions explicitly state those architectures; do not move code across such boundaries as incidental cleanup.
Review Workflow
- Identify production behavior, required change, root cause, responsibilities, contracts, and boundaries before editing non-trivial code.
- Locate the primary responsibility of each affected class or method.
- Check for SOLID violations, hidden assumptions, or mixed concerns that create real change, testability, or comprehension risk.
- Prefer the simplest local or vertical-slice refactor that removes the risk without changing behavior.
- Verify with the narrowest credible test scope, following
php-testing-style.