phpstan-fixer
PHPStan Error Fixer
Fix PHPStan static analysis errors through proper type annotations, PHPDocs, and code improvements. This skill teaches agents how to resolve errors without suppressing them, respecting the project's configured strictness level.
Core Principles
- Never suppress errors as first resort — Fix the root cause with proper types and annotations
- Respect user configuration — Never modify
phpstan.neonsettings (level, paths, parameters) - No silent ignoring — Never add
ignoreErrorsto config without explicit user approval - Context-aware fixes — Understand the project type (Laravel, Symfony, vanilla PHP) before proposing solutions
- Ask before ignoring — If a legitimate ignore is needed, explain why and get user approval first
- Don't fix third-party code — Never modify files in
vendor/. Use stub files instead to override wrong types
More from marcelorodrigo/agent-skills
conventional-commit
Create conventional commit messages following best conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits specification.
745filament-pro
Build Laravel admin panels with Filament v5. Use for creating resources, forms, tables, widgets, and testing admin interfaces with Livewire v4.
528create-pr
Create Pull Requests following best conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review.
233spring-boot-testing
Expert Spring Boot 4 testing specialist that selects the best Spring Boot testing techniques for your situation with Junit 6 and AssertJ.
123