laravel-simple-rag: Skill for Claude Code

.agents/skills/pest-testing/SKILL.md

pest-testing is a skill for Claude Code, Codex from schrojf/laravel-simple-rag. It costs 72 tokens per session (1,066 once invoked), scanned A, original, MIT.

A testing workflow for Pest 4, a PHP framework for writing automated tests. It covers unit, feature, browser, and architecture tests, including tests for Livewire components.

In plain words
What is it for?
Use it to create or modify tests, run focused or complete test suites, test browser behavior, work with test data and mocks, and investigate failures.
Why use it?
It provides consistent test locations, commands, assertions, and failure-debugging practices for Laravel applications.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is schrojf/laravel-simple-rag's own configuration. It tells Claude Code and Codex how to work on laravel-simple-rag itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything laravel-simple-rag configures →

Reuse

Borrowing it

Nothing to install: this file belongs to schrojf/laravel-simple-rag. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/schrojf/laravel-simple-rag/main/.agents/skills/pest-testing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/schrojf/laravel-simple-rag

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 pest-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/schrojf/laravel-simple-rag/pest-testing/github.svg)](https://agentmods.dev/skills/schrojf/laravel-simple-rag/pest-testing)
Your own site
<a href="https://agentmods.dev/skills/schrojf/laravel-simple-rag/pest-testing"><img src="https://agentmods.dev/badge/skills/schrojf/laravel-simple-rag/pest-testing/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 pest-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/schrojf/laravel-simple-rag/pest-testing"><img src="https://agentmods.dev/badge/skills/schrojf/laravel-simple-rag/pest-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,066 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.00072 $0.01066
Opus 5.5 $0.00029 $0.00426
Sonnet 5.5 $0.00014 $0.00213
Haiku 4.5 $0.00007 $0.00107

Measured 2mo ago against content hash 9da4d9f8ac27, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pest-testing 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 2mo ago.

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.

.agents/skills/pest-testing/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pest Testing 4

When to Apply

Activate this skill when:

  • Creating new tests (unit, feature, or browser)
  • Modifying existing tests
  • Debugging test failures
  • Working with browser testing or smoke testing
  • Writing architecture tests or visual regression tests

Documentation

Use search-docs for detailed Pest 4 patterns and documentation.

Basic Usage

Creating Tests

All tests must be written using Pest. Use php artisan make:test --pest {name}.

Test Organization

  • Unit/Feature tests: tests/Feature and tests/Unit directories.
  • Browser tests: tests/Browser/ directory.
  • Do NOT remove tests without approval - these are core application code.

Basic Test Structure

it('is true', function () {
    expect(true)->toBeTrue();
});

Running Tests

  • Run minimal tests with filter before finalizing: php artisan test --compact --filter=testName.
  • Run all tests: php artisan test --compact.
  • Run file: php artisan test --compact tests/Feature/ExampleTest.php.

Assertions

Use specific assertions (assertSuccessful(), assertNotFound()) instead of assertStatus():

it('returns all', function () {
    $this->postJson('/api/docs', [])->assertSuccessful();
});
Use Instead of
assertSuccessful() assertStatus(200)
assertNotFound() assertStatus(404)
assertForbidden() assertStatus(403)

Mocking

Import mock function before use: use function Pest\Laravel\mock;

Datasets

Use datasets for repetitive tests (validation rules, etc.):

it('has emails', function (string $email) {
    expect($email)->not->toBeEmpty();
})->with([
    'james' => '[email protected]',
    'taylor' => '[email protected]',
]);

Pest 4 Features

Feature Purpose
Browser Testing Full integration tests in real browsers
Smoke Testing Validate multiple pages quickly
Visual Regression Compare screenshots for visual changes
Test Sharding Parallel CI runs
Architecture Testing Enforce code conventions

Read the full file on GitHub · 167 lines

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. 2mo ago First seen · 167 lines · 72 tokens per session scan A 9da4d9f8ac27

Subscribe to this mod's changes

pest-testing is a skill published in the GitHub repository schrojf/laravel-simple-rag (0 stars, last pushed 8mo ago), licensed MIT. It adds 72 tokens to every session and 1,066 once invoked, about $0.0003 per session on Opus 5.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-08-31.

Related

pest-testing compared with skills from other repositories

pest-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pest-testingschrojf/laravel-simple-ragSkill08mo agoMITA72Claude Code, Codex
Codeception TestingPramodDutta/qaskillsSkill2453d agoMITA42Claude Code, Codex
craft-pestmichtio/craftcms-claude-skillsSkill882d agoMITA175Claude Code
phpunit-unit-test-reviewingshopwareLabs/ai-coding-toolsSkill4510d agoMITA31Claude Code
phpunit-unit-test-writingshopwareLabs/ai-coding-toolsSkill4510d agoMITA187Claude Code
noerd-testingnoerd-dev/noerdSkill17yesterdayMITA121Claude Code, Codex
php-testingfusengine/agentsSkill3425d agoMITA38Claude Code