laravel-testing-lord

laravel-testing-lord is a skill for Claude Code, Codex from m3taz-ahmed/ai-globals. It costs 42 tokens per session (1,120 once invoked), scanned A, original, MIT.

A testing guide for Laravel 13 and Filament 5 applications using Pest, a PHP testing framework. It covers feature, admin-panel, API, database, and continuous-integration tests, including fast checks during development and the full test suite before completion.

In plain words
What is it for?
Use it to test Filament resources and forms, API responses and authentication, database behavior, and application changes in CI.
Why use it?
It helps catch broken behavior, invalid data, API changes, and access-control problems without relying on manual checking.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test Filament resources and forms, API responses and authentication, database behavior, and application changes in CI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/m3taz-ahmed/ai-globals/laravel-testing-lord
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add m3taz-ahmed/ai-globals --skill laravel-testing-lord
Clone the repo
git clone --depth 1 https://github.com/m3taz-ahmed/ai-globals

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for laravel-testing-lord

README.md
[![agentmods](https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/laravel-testing-lord/github.svg)](https://agentmods.dev/skills/m3taz-ahmed/ai-globals/laravel-testing-lord)
Your own site
<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/laravel-testing-lord"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/laravel-testing-lord/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for laravel-testing-lord

Your own site · 80×15
<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/laravel-testing-lord"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/laravel-testing-lord.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,120 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01120
Opus 5 $0.00021 $0.00560
Sonnet 5 $0.00008 $0.00224
Haiku 4.5 $0.00004 $0.00112

Measured today against content hash 8a175115e310, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

laravel-testing-lord scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/laravel-testing-lord/SKILL.md · 51 lines

What it actually says

Laravel Testing Lord

[OBJ] Mastery of testing for Laravel 13 + Filament v5 — Pest 3+, feature tests, Filament resource tests, API tests, database tests, and CI/CD integration.

[RULES]

  1. [CMD] Query Context7 for Pest 3+ and Laravel testing docs. Use /pestphp/pest and /laravel/framework library IDs.
  2. [REQ] Pest 3+: Use Pest 3+ for all backend tests. describe() blocks for grouping. it() for test cases. AAA pattern (Arrange-Act-Assert). One behavior per test.
  3. [REQ] Two-Tier Testing: FAST tier — artisan test --filter=<test> (~5s, during iteration). FULL tier — artisan test (complete suite + coverage, before done). NEVER run full suite on every change.
  4. [REQ] Filament Resource Tests: Use Filament\Tables\Table testing helpers. ->canSeeRecord() / ->cannotSeeRecord(). Test Action visibility via policy. Test form validation via ->fillForm() + ->assertHasFormErrors().
  5. [REQ] API Tests: ->assertJsonStructure(Resource::JSON_STRUCTURE) for response shape. ->assertJsonPath() for specific values. Test all CRUD operations. Test API versioning via X-Api-Version header. NEVER test without authentication context.
  6. [REQ] Database Tests: RefreshDatabase trait for test isolation. Database\Factories for test data. NEVER hardcoded IDs or dates. Use Model::factory()->create() for test data. Test constraints (foreign keys, unique, not null).
  7. [REQ] Coverage: 80% logic, 90% API, 70% total. Use --coverage in FULL tier. XDEBUG_MODE=coverage for accurate coverage. NEVER declare done without coverage report.
  8. [REQ] Parallel Testing: artisan test --parallel --exclude-group=serial for fast parallel. --group=serial for tests that can't run in parallel (shared state, migrations). SQLite for fast tier, MySQL/PG for FULL tier.
  9. [REQ] Mocking: Mock external services (Http::fake(), Queue::fake(), Event::fake()). Use FakePlusLicenseService pattern for swappable implementations. NEVER mock Eloquent models — use factories + in-memory DB.
  10. [REQ] Vector Search Tests: Test whereVectorSimilarTo() with known embeddings. Test AsVector cast round-trip (set array → get array). Test MariaDB binary format vs PG JSON text. Mock embedding API in tests.
  11. [REQ] Security Tests: Test authorization (policy gates) on every resource action. Test input validation (FormRequest). Test SQL injection prevention. Test XSS prevention. Test CSRF tokens. NEVER skip auth tests.
  12. [REQ] Browser Testing: pestphp/pest-plugin-browser for E2E. Test critical user flows (login, CRUD, admin panel). Use Laravel\Dusk for JavaScript-dependent tests. NEVER rely only on unit tests for UI.
  13. [REQ] CI/CD: Run FULL tier in CI. --parallel for speed. Upload coverage report. Fail on < 70% total. NEVER merge without green CI.

[WORKFLOWS]

  1. Test a Filament Resource: Create tests/Filament/Resources/UserResourceTest.php → test list (->canSeeRecord()) → test create (->fillForm()->call('create')->assertHasNoFormErrors()) → test edit → test delete → test policy (->cannotSeeRecord() for unauthorized user) → test validation (->fillForm(['email' => 'invalid'])->assertHasFormErrors(['email'])).
  2. Test an API Endpoint: Create tests/Feature/Api/UserApiTest.php → test index (->getJson('/api/users')->assertJsonStructure(UserResource::JSON_STRUCTURE)) → test store → test show → test update → test destroy → test auth (->actingAs($user)) → test validation → test versioning (->withHeader('X-Api-Version', '2')).
  3. Test Vector Search: Create tests/Feature/VectorSearchTest.php → seed known embeddings → test whereVectorSimilarTo() returns correct order → test AsVector cast → test distance threshold → test with MariaDB binary format → mock embedding API.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 51 lines · 42 tokens per session scan A 8a175115e310

Subscribe to this mod's changes

laravel-testing-lord is a skill published in the GitHub repository m3taz-ahmed/ai-globals (5 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 1,120 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

Other skills, from other repositories

sync-new-data-type

Adds scaffolding for a new Sync data type in Chromium across protocol buffers, DataType definitions, feature flags, controller builders, unit tests, and metrics.

chromium/chromium · 36 tokens

generate-testability-wrappers

DO NOT USE when the target already consumes an injected interface or built-in abstraction such as IFileSystem or TimeProvider, even if the request says "generate a wrapper"; no new wrapper is needed. Use only when C# source calls an ambient/static dependency and no injectable seam exists: first-time TimeProvider…

dotnet/skills · 147 tokens

convex-test

Generate convex-test tests for the app's Convex functions.

openclaw/clawhub · 16 tokens

platform-apex-test-generate

Generate and validate Apex test classes with TestDataFactory patterns, bulk testing (251+ records), mocking strategies, assertion best practices, and disciplined test-fix loops. Use this skill when creating new Apex test classes, improving test coverage, debugging and fixing failing Apex tests, running test execution…

forcedotcom/sf-skills · 135 tokens

platform-apex-test-run

Apex test execution, coverage analysis, and test-fix loops with 120-point scoring. Use when the user needs to run Apex tests, check code coverage, fix failing tests, or work with Test.cls / Test.cls files. TRIGGER when: user runs Apex tests, checks code coverage, fixes failing tests, or touches Test.cls / Test.cls…

forcedotcom/sf-skills · 124 tokens

backend/testing-guide

A guide for writing backend tests: small unit tests, tests that check connected parts such as an API and database, and end-to-end tests that follow a complete user flow.

echoVic/boss-skill · 30 tokens