Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    LongTermSupport

    phpstan-runner

    LongTermSupport/phpstan-runner
    Coding
    2 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    Run PHPStan static analysis and fix errors using intelligent agent delegation...

    SKILL.md

    PHPStan Runner Skill

    This skill provides intelligent PHPStan static analysis and fixing through specialized agent delegation.

    Agent Delegation Strategy

    This skill delegates to specialized agents via the Task tool:

    1. php-qa-ci_phpstan-runner agent (haiku model) - Runs analysis and parses results
    2. php-qa-ci_phpstan-fixer agent (sonnet model) - Analyzes and fixes errors
    3. Escalation - Uses opus model or asks human for stubborn issues

    Workflow

    When User Says: "Run PHPStan"

    1. Launch runner agent:

      Use Task tool:
        description: "Run PHPStan analysis"
        subagent_type: "php-qa-ci_phpstan-runner"
        prompt: "Run PHPStan static analysis and provide summary"
      
    2. Receive runner output with log location

    3. If errors detected:

      • Launch fixer agent:
        Use Task tool:
          description: "Fix PHPStan errors"
          subagent_type: "php-qa-ci_phpstan-fixer"
          prompt: "Fix errors in log: {log_path}"
        
    4. After fixes applied, re-run via runner agent

    5. Repeat cycle until:

      • Analysis passes → Success
      • Same errors persist 2+ times → Escalate to opus or human
      • User intervention needed → Ask user

    When User Says: "Fix the PHPStan errors"

    1. Check if recent log exists in var/qa/phpstan_logs/

    2. If log found:

      • Launch fixer agent directly with log path
    3. If no log:

      • Launch runner agent first to generate log
      • Then launch fixer agent

    Escalation Triggers

    Launch opus model or ask human when:

    • Fixer agent reports "cannot fix" for same error 2+ times
    • Architecture questions arise (design patterns, type hierarchies)
    • User explicitly requests explanation of errors

    Runner Agent Reference

    The phpstan-runner agent (haiku model) handles:

    • PHPStan execution with proper configuration
    • Log parsing for error patterns
    • Concise summary generation

    See .claude/agents/php-qa-ci_phpstan-runner.md for agent implementation details.

    Fixer Agent Reference

    The phpstan-fixer agent (sonnet model) handles:

    • Log file discovery and parsing
    • Error grouping by pattern
    • Fix implementation for common PHPStan issues
    • Verification that fixes resolve issues

    See .claude/agents/php-qa-ci_phpstan-fixer.md for agent implementation details.

    Recommended Servers
    Hostsmith
    Hostsmith
    Nimble MCP Server
    Nimble MCP Server
    vastlint - IAB XML VAST validator and linter
    vastlint - IAB XML VAST validator and linter
    Repository
    longtermsupport/php-qa-ci
    Files