review-static-analysis
Installation
SKILL.md
Review Static Analysis
When To Use
Use this skill when reviewing code for typing problems, generic misuse, nullability issues, or likely PHPStan failures.
Inputs Needed
- Files changed, intended types, collections, generics, and known analysis baseline.
Workflow
- Inspect the changed code with types in mind.
- Look for missing type hints, weak PHPDoc, and mixed arrays that should be typed.
- Prefer explicit return types and parameter types.
- Prefer small value objects, DTOs, and builders over ambiguous array structures.
- Check collection generics and array-shape documentation where helpful.
- Check for dead code, unreachable branches, and unsafe null assumptions.
- Keep the fix narrow and testable.