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

  1. Inspect the changed code with types in mind.
  2. Look for missing type hints, weak PHPDoc, and mixed arrays that should be typed.
  3. Prefer explicit return types and parameter types.
  4. Prefer small value objects, DTOs, and builders over ambiguous array structures.
  5. Check collection generics and array-shape documentation where helpful.
  6. Check for dead code, unreachable branches, and unsafe null assumptions.
  7. Keep the fix narrow and testable.
Installs
3
GitHub Stars
1
First Seen
Jul 7, 2026
review-static-analysis — alizharb/agent-skills