See .claude/agents/php-qa-ci_phpstan-fixer.md for agent implementation details.
When to Use This Skill vs phpstan-runner
Use phpstan-fixer when:
PHPStan was already run manually
You have a specific log file to analyze
You only want to analyze/fix, not run analysis
Use phpstan-runner when:
You want to run PHPStan AND fix errors
You want the full run→fix→run cycle
PHPStan hasn't been run yet
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: longtermsupport-php-qa-ci-phpstan-fixer3description: PHPStan Fixer Skill4---56# PHPStan Fixer Skill78This skill analyzes EXISTING PHPStan error logs and implements fixes. It does NOT run PHPStan.910## Agent Delegation Strategy1112This skill delegates to the php-qa-ci_phpstan-fixer agent (sonnet model).1314## Workflow1516### When User Says: "Fix the PHPStan errors"17181. Launch fixer agent:19 ```20 Use Task tool:21 description: "Fix PHPStan errors"22 subagent_type: "php-qa-ci_phpstan-fixer"23 prompt: "Find and fix errors in most recent PHPStan log"24 ```25262. Receive fixer output with:27 - Errors found and grouped by pattern28 - Fixes applied29 - Files modified30313. If no log found:32 - Suggest using phpstan-runner skill to generate log first3334### When User Provides Specific Log Path35361. Launch fixer agent with explicit log path:37 ```38 Use Task tool:39 description: "Fix PHPStan errors from log"40 subagent_type: "php-qa-ci_phpstan-fixer"41 prompt: "Fix errors in log: {user_provided_path}"42 ```4344### Escalation Triggers4546Launch opus model or ask human when:47- Fixer agent reports architecture questions (type hierarchies, design patterns)48- Same error pattern persists after 2 fix attempts49- User asks for explanation rather than fixes5051## Fixer Agent Reference5253The phpstan-fixer agent (sonnet model) handles:54- Auto-discovery of most recent PHPStan log55- Error parsing and pattern grouping56- Fix implementation for common PHPStan patterns57- Reporting which files were changed5859See `.claude/agents/php-qa-ci_phpstan-fixer.md` for agent implementation details.6061## When to Use This Skill vs phpstan-runner6263- **Use phpstan-fixer** when:64 - PHPStan was already run manually65 - You have a specific log file to analyze66 - You only want to analyze/fix, not run analysis6768- **Use phpstan-runner** when:69 - You want to run PHPStan AND fix errors70 - You want the full run→fix→run cycle71 - PHPStan hasn't been run yet7273---74> Converted and distributed by [TomeVault](https://tomevault.io/claim/longtermsupport) — claim your Tome and manage your conversions.75<!-- tomevault:4.0:skill_md:2026-04-15 -->
Run npx skillmds@latest add tomevault-io/longtermsupport-php-qa-ci-phpstan-fixer in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
PHPStan Fixer Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.