スキル一覧に戻る
LongTermSupport

phpunit-fixer

by LongTermSupport

PHP QA and CI configuration

0🍴 0📅 2026年1月22日
GitHubで見るManusで実行

SKILL.md


name: phpunit-fixer description: | Analyze existing PHPUnit test failure logs without running tests. Use when:

  • User says "fix the test failures" (after manually running tests)
  • User says "what tests are failing?"
  • User points to specific log file
  • Tests were run outside Claude's context Delegates to fixer agent (sonnet) to find logs, parse failures, and implement fixes. Does NOT execute tests - use phpunit-runner for that. allowed-tools: Task

PHPUnit Fixer Skill

This skill analyzes EXISTING PHPUnit test failure logs and implements fixes. It does NOT run tests.

Agent Delegation Strategy

This skill delegates to the php-qa-ci_phpunit-fixer agent (sonnet model).

Workflow

When User Says: "Fix the test failures"

  1. Launch fixer agent:

    Use Task tool:
      description: "Fix PHPUnit test failures"
      subagent_type: "php-qa-ci_phpunit-fixer"
      prompt: "Find and fix failures in most recent test log"
    
  2. Receive fixer output with:

    • Errors found and grouped by pattern
    • Fixes applied
    • Files modified
  3. If no log found:

    • Suggest using phpunit-runner skill to generate log first

When User Provides Specific Log Path

  1. Launch fixer agent with explicit log path:
    Use Task tool:
      description: "Fix test failures from log"
      subagent_type: "php-qa-ci_phpunit-fixer"
      prompt: "Fix failures in log: {user_provided_path}"
    

Escalation Triggers

Launch opus model or ask human when:

  • Fixer agent reports business logic questions (test vs code expectations)
  • Same error pattern persists after 2 fix attempts
  • User asks for explanation rather than fixes

Fixer Agent Reference

The phpunit-fixer agent (sonnet model) handles:

  • Auto-discovery of most recent JUnit XML log
  • Error parsing and pattern grouping
  • Fix implementation for common patterns
  • Reporting which files were changed

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

When to Use This Skill vs phpunit-runner

  • Use phpunit-fixer when:

    • Tests were already run manually
    • You have a specific log file to analyze
    • You only want to analyze/fix, not run tests
  • Use phpunit-runner when:

    • You want to run tests AND fix failures
    • You want the full run→fix→run cycle
    • Tests haven't been run yet

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です