phpstan-resolver

Resolve PHPStan errors in batches of five per file per iteration.

9|2|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/atournayre/claude-marketplace --skill phpstan-resolver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phpstan-resolver
Source: https://github.com/atournayre/claude-marketplace/tree/main/qa/skills/phpstan-resolver
Command: npx skills add https://github.com/atournayre/claude-marketplace --skill phpstan-resolver

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, and includes references (resource) components.

What problem does it solve?

This Skill eliminates the tedious, time-consuming process of manually fixing PHPStan static analysis errors by automatically detecting, analyzing, and resolving them in batches until zero errors remain.

Core Features & Use Cases

  • Automated Error Resolution: Systematically fixes PHPStan type errors in batches of 5 per file per iteration
  • Intelligent Stagnation Detection: Automatically stops when errors stop decreasing to prevent infinite loops
  • Detailed Progress Reporting: Provides comprehensive success rates and iteration tracking
  • Use Case: Imagine your PHP project has 50+ PHPStan errors across multiple files. This Skill will automatically resolve them in structured batches, saving you hours of manual debugging and code fixing.

Quick Start

Use the phpstan-resolver skill to analyze and fix all PHPStan errors in the current project.

Frequently Asked Questions about phpstan-resolver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically fix PHPStan errors in my PHP project?

PHPStan-resolver automatically detects and resolves PHPStan static analysis errors in batches of five per file per iteration, looping until errors reach zero or stop decreasing. It requires PHPStan installed with phpstan.neon configuration, valid JSON error output, the @phpstan-error-resolver agent, an Edit tool, and jq for JSON parsing.

Can I batch-process PHPStan type errors across multiple files at once?

Yes. PHPStan-resolver groups errors by file and applies corrections in structured batches, processing up to five errors per file per iteration across all files simultaneously, then repeats for up to ten iterations until zero errors or stagnation occurs.

What are the prerequisites for using PHPStan-resolver?

You need PHPStan installed and configured with phpstan.neon or phpstan.neon.dist, the ability to generate --error-format=json output, access to the @phpstan-error-resolver agent for applying fixes, an Edit tool for file modifications, and jq installed for JSON parsing and filtering.

How does PHPStan-resolver prevent infinite loops when fixing errors?

PHPStan-resolver includes intelligent stagnation detection that automatically stops processing when error count stops decreasing between iterations, preventing redundant cycles and ensuring termination within ten maximum iterations.

Does PHPStan-resolver work with large projects that have 50+ errors?

Yes. PHPStan-resolver is designed to handle projects with many errors by systematically processing them in batches across multiple iterations, automatically grouping errors by file and providing detailed progress reporting throughout the resolution process.