CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

laravel-tdd

Laravel testing strategies with PHPUnit, Pest, model factories, HTTP tests, Sanctum authentication testing, mocking, and coverage. Use when writing Laravel tests with PHPUnit or Pest, or driving a Laravel feature test-first.

Quality

84%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

72%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A highly actionable, code-dense reference whose examples are excellent, but it under-delivers on its two structural promises: the TDD workflow is a stub rather than a checkpointed sequence, and everything lives inline in one large file with no progressive disclosure. Some duplicated authorization patterns inflate the token cost.

Suggestions

Expand the Red-Green-Refactor section into a sequenced workflow with validation checkpoints (run the test and confirm it fails, implement the migration/model/factory, re-run to green, refactor only while green).

Move the full example test suites and the fakes/mocking catalog into references/ files (e.g. references/factories.md, references/fakes.md) and keep concise core patterns in SKILL.md.

Dedupe the authorization-boundary test pattern that appears in the Feature, JSON API, and Authorization sections, and either use or remove the actingAsUser()/actingAsAdmin() TestCase helpers.

DimensionReasoningScore

Conciseness

The body is almost entirely executable code and reference tables with no conceptual padding, but there is noticeable repetition — the 'cannot modify/delete others' products' authorization pattern appears three times (Feature, JSON API, and Authorization sections) and the actingAsUser()/actingAsAdmin() TestCase helpers are defined but never used by any example.

4 / 5

Actionability

Fully executable throughout: copy-paste-ready phpunit.xml config, factory definitions with states/sequences, feature and API test suites, Http::fake() sequences, artisan command tests, and concrete coverage commands with thresholds.

5 / 5

Workflow Clarity

The Red-Green-Refactor cycle is reduced to three code comments; there is no sequenced workflow with validation checkpoints (run test, confirm failure, implement, re-run to green, then refactor), so the advertised TDD process is present in name but not executable as a sequence.

3 / 5

Progressive Disclosure

The entire ~660-line reference, including full factory classes, complete multi-test suites, and a long fakes catalog, is inlined in SKILL.md with no bundle files at all; sections are well-organized with headers and tables, but content that clearly belongs in separate reference files is inline.

3 / 5

Total

15

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong, specific description that names concrete capabilities and gives an explicit 'Use when' trigger clause in third person. The only weakness is that the trigger coverage is narrower than the capability list — it omits natural variations like 'TDD', 'unit tests', or 'spec'.

DimensionReasoningScore

Specificity

The description lists multiple concrete capabilities — 'model factories, HTTP tests, Sanctum authentication testing, mocking, and coverage' — with no vague filler and comprehensive coverage of the Laravel testing domain.

5 / 5

Completeness

It explicitly answers both what ('Laravel testing strategies with PHPUnit, Pest, model factories, HTTP tests, Sanctum authentication testing, mocking, and coverage') and when ('Use when writing Laravel tests with PHPUnit or Pest, or driving a Laravel feature test-first') with concrete trigger phrases.

5 / 5

Trigger Term Quality

Good natural keyword coverage ('Laravel tests', 'PHPUnit', 'Pest', 'Sanctum', 'feature test-first'), but a few natural terms users would say are missing, e.g. 'TDD', 'unit tests', 'spec', or 'write tests for Laravel'.

4 / 5

Distinctiveness Conflict Risk

Clear niche (Laravel testing specifically, including Sanctum auth testing) with distinct triggers, minimizing conflict risk with general PHP testing or TDD skills; uses third-person voice correctly.

5 / 5

Total

19

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (676 lines); consider splitting into references/ and linking

Warning

metadata_version

'metadata.version' is missing

Warning

Total

14

/

16

Passed

Repository

affaan-m/ECC

Path

skills/laravel-tdd/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.