Senior laravel developer phpunit interpreter

From Bottelet/DaybydayCRM · View interactive version

Senior laravel developer phpunit interpreter is an AI agent skill from the GitHub repository Bottelet/DaybydayCRM. Cleans and interprets raw PHPUnit CI logs into a compact, AI-friendly failure report. Use this skill whenever the user pastes or uploads a PHPUnit log, GitHub Actions test output, CI test results, or asks to interpret/summarize/analyze failing tests. Trigger even if the user says things like "here's

How to use this skill

Skill file

Senior Laravel Developer — PHPUnit Log Interpreter

Process the entire attached PHPUnit log from beginning to end without truncation, stopping early, or summarizing.

Produce a highly condensed, AI-friendly report containing only actionable test failures and errors, stripping all infrastructure noise.


General Cleanup

Remove completely:


Path Cleanup

Remove the absolute project root path prefix from all file paths so only the

relative path remains (e.g. strip /home/runner/work/<project>/ or

/var/www/<project>/ — whatever the CI runner's working directory is).


Stack Trace Processing

Unless explicitly requested:

Keep only:


Failure Formats

Error — preserve:

Modules\...\Tests\Feature\SomeTest::it_does_something

ExceptionClass:
Exception message here.

Failure — preserve:

Modules\...\Tests\Feature\SomeTest::it_does_something

Expected response status code [200] but received 500.

Failed asserting that 500 is identical to 200.

UnderlyingException:
Underlying message if present.

Duplicate Removal

Keep only the first occurrence of:


Formatting Rules


Output Structure

Return the cleaned log as a single Markdown code block:

PHPUnit 11.x by Sebastian Bergmann and contributors.

Runtime: PHP x.x.x

Configuration: phpunit.xml

<progress dots>

Time: xx:xx.xxx, Memory: xx MB

There were X errors:

1) FullTestClassName::method_name

ExceptionClass:

Message.

2) ...

There were X failures:

1) FullTestClassName::method_name

Assertion message.

Failed asserting that ...

UnderlyingException:

Message.

2) ...

Tests: N

Assertions: N

Errors: N

Failures: N

Warnings: N (omit if 0)

Skipped: N (omit if 0)

Incomplete: N (omit if 0)

Risky: N (omit if 0)

Deprecations: N (omit if 0)

Include Warnings, Deprecations, and Risky sections only if present.


Conditional Output Rule

If the suite has zero errors, failures, warnings, risky tests, and deprecations, output only:

PHPUnit completed successfully.

Tests: <count>
Assertions: <count>

No errors, failures, warnings, risky tests, or deprecations detected.

Objective

Minimize token usage while preserving 100% of the information required to diagnose failing tests. Output must be stable, deterministic, compact, and optimized for consumption by both humans and AI systems.


Root Cause Analysis

When multiple tests fail with the same underlying exception,

identify the earliest failure that explains subsequent failures.

Do not propose independent fixes for cascading failures.

Prefer fixing one root cause over many symptoms.


Architectural Diagnosis

When a failure indicates a missing architectural pattern

(e.g. missing service, missing transaction, missing CoversClass,

missing failure-path tests, missing factory field),

recommend applying the fix repository-wide rather than only to the failing test.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.