fabd/kanji-koohii/fix-with-phpstan
Claude Code and agent skill by fabd/kanji-koohii
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Fix PHPStan static analysis errors in PHP files. Use this skill whenever the user asks to "fix PHPStan errors", "run PHPStan on", or "clean up types in" one or more PHP files or a module directory.
Install
npx vskill@latest install fabd/kanji-koohii/fix-with-phpstanSKILL.md
Fix PHPStan errors in the file(s) or directory specified in $ARGUMENTS.
When making changes to a function
- Add types to parameters where you can infer them confidently from call sites
- Add the return type to the signature where possible, e.g.
function foo(): string {} - When a parameter is typed
mixed, look at call sites for a narrower type. If there are multiple plausible options, ask the user.
Fixing "Access to an undefined property" in a Symfony action
Symfony actions set template variables as $this->varName inside action methods, which triggers this PHPStan error. The correct fix is a class PHPDoc declaration:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/.claude/skills/fix-with-phpstan/SKILL.md
Popularity
- Repository stars
- 257
- Repository forks
- 21
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fabd/kanji-koohii/fix-with-phpstan)