Agent skill

Pest Testing

by slimani-dev in slimani-dev/muraqib

Tests applications using the Pest 4 PHP framework. An agent skill from slimani-dev/muraqib.

MITAuto-check passedTesting & QA

Install Pest Testing

skills CLI
$ npx skills add slimani-dev/muraqib --skill pest-testing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install slimani-dev/muraqib pest-testing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/slimani-dev/muraqib.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.gemini/skills/pest-testing .claude/skills/pest-testing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pest-testing
GitHub stars
128
Token cost
~1.2k tokens
SKILL.md length
435 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Tests applications using the Pest 4 PHP framework. An agent skill from slimani-dev/muraqib.

  • Needs to verify functionality works
  • SKILL.md covers When to Apply, Documentation, Basic Usage and Assertions, plus 4 more sections
  • Calls php
  • Tasks that involve Browser testing

What it does

Pest Testing is an agent skill from slimani-dev/muraqib. Tests applications using the Pest 4 PHP framework. Activates when writing tests, creating unit or feature tests, adding assertions, testing Livewire components, browser testing, debugging test failures, working with datasets or mocking; or when the user mentions test, spec, TDD, expects, assertion, coverage, or needs to verify functionality works.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Browser testing, Failing and flaky tests and Test-driven development. It works with PHP and Laravel. The repository describes itself as: A unified, developer-first homelab dashboard. Monitor and orchestrate your infrastructure, containers, and media from a single pane of glass. The licence is MIT.

When your agent uses it

  • Needs to verify functionality works
  • Tasks that involve Browser testing
  • Tasks that involve Failing and flaky tests

Example prompts

  • “Use the pest-testing skill to test applications using the Pest 4 PHP framework. An agent skill from slimani-dev/muraqib”
  • “/pest-testing”

What it can do on your machine

Read from SKILL.md and the folder at commit a32df1d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • php

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pest Testing loads about 1.2k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 435 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from slimani-dev/muraqib at commit a32df1d, republished under its MIT licence (© slimani-dev). 435 words, ~1,208 tokens.

Download SKILL.mdSave it as .claude/skills/pest-testing/SKILL.md (or your agent's skills folder).
name
pest-testing
description
Tests applications using the Pest 4 PHP framework. Activates when writing tests, creating unit or feature tests, adding assertions, testing Livewire components, browser testing, debugging test failures, working with datasets or mocking; or when the user mentions test, spec, TDD, expects, assertion, coverage, or needs to verify functionality works.

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
<code-snippet name="Basic Pest Test Example" lang="php">

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

</code-snippet>
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():

<code-snippet name="Pest Response Assertion" lang="php">

it('returns all', function () { $this->postJson('/api/docs', [])->assertSuccessful(); });

</code-snippet>
UseInstead 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.):

<code-snippet name="Pest Dataset Example" lang="php">

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

</code-snippet>

Pest 4 Features

FeaturePurpose
Browser TestingFull integration tests in real browsers
Smoke TestingValidate multiple pages quickly
Visual RegressionCompare screenshots for visual changes
Test ShardingParallel CI runs
Architecture TestingEnforce code conventions
Show full SKILL.md (185 more words)Show less
Browser Test Example

Browser tests run in real browsers for full integration testing:

  • Browser tests live in tests/Browser/.
  • Use Laravel features like Event::fake(), assertAuthenticated(), and model factories.
  • Use RefreshDatabase for clean state per test.
  • Interact with page: click, type, scroll, select, submit, drag-and-drop, touch gestures.
  • Test on multiple browsers (Chrome, Firefox, Safari) if requested.
  • Test on different devices/viewports (iPhone 14 Pro, tablets) if requested.
  • Switch color schemes (light/dark mode) when appropriate.
  • Take screenshots or pause tests for debugging.
<code-snippet name="Pest Browser Test Example" lang="php">

it('may reset the password', function () { Notification::fake();

$this->actingAs(User::factory()->create());

$page = visit('/sign-in');

$page->assertSee('Sign In')
    ->assertNoJavaScriptErrors()
    ->click('Forgot Password?')
    ->fill('email', 'nuno@laravel.com')
    ->click('Send Reset Link')
    ->assertSee('We have emailed your password reset link!');

Notification::assertSent(ResetPassword::class);

});

</code-snippet>
Smoke Testing

Quickly validate multiple pages have no JavaScript errors:

<code-snippet name="Pest Smoke Testing Example" lang="php">

$pages = visit(['/', '/about', '/contact']);

$pages->assertNoJavaScriptErrors()->assertNoConsoleLogs();

</code-snippet>
Visual Regression Testing

Capture and compare screenshots to detect visual changes.

Test Sharding

Split tests across parallel processes for faster CI runs.

Architecture Testing

Pest 4 includes architecture testing (from Pest 3):

<code-snippet name="Architecture Test Example" lang="php">

arch('controllers') ->expect('App\Http\Controllers') ->toExtendNothing() ->toHaveSuffix('Controller');

</code-snippet>

Common Pitfalls

  • Not importing use function Pest\Laravel\mock; before using mock
  • Using assertStatus(200) instead of assertSuccessful()
  • Forgetting datasets for repetitive validation tests
  • Deleting tests without approval
  • Forgetting assertNoJavaScriptErrors() in browser tests

© slimani-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .gemini/skills/pest-testing of slimani-dev/muraqib.

Open the folder on GitHubat commit a32df1d

Compare with similar skills

Pest Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pest Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pest Testing this skillslimani-dev/muraqib128—~1.2kAutomated safety check: PassMIT
Pest TestingAratKruglik/claude-laravel155—~1.6kAutomated safety check: PassNone
Pest Testingluadotsh/lua3421 repos~1.2kAutomated safety check: PassMIT
Pest Testingliberusoftware/real-estate-laravel1121 repos~1.8kAutomated safety check: PassMIT
Pest Testingmnapoli/vibephp158—~1.4kAutomated safety check: PassMIT
Pest TestingMineTrax/minetrax115—~787Automated safety check: PassMIT

Similar skills

  • Pest Testing

    AratKruglik/claude-laravel

    Tests applications using the Pest 4 PHP framework. An agent skill from AratKruglik/claude-laravel.

    155 GitHub stars~1.6k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Pest Testing

    luadotsh/lua

    A skill your agent uses for Pest PHP testing in Laravel projects only.

    342 GitHub starsUsed in 1 repo~1.2k tokens
    Testing & QAAuto-check passed
  • Pest Testing

    liberusoftware/real-estate-laravel

    A skill your agent uses for Pest PHP testing in Laravel projects only.

    112 GitHub starsUsed in 1 repo~1.8k tokens
    Testing & QAAuto-check passed
  • Pest Testing

    mnapoli/vibephp

    A skill your agent uses for Pest PHP testing in Laravel projects only.

    158 GitHub stars~1.4k tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Pest Testing

    MineTrax/minetrax

    A skill your agent uses for Pest PHP testing in Laravel projects only.

    115 GitHub stars~787 tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Guides changes and reviews of the Cucumber and Playwright end-to-end suite under `e2e/`: feature files, step definitions, support code, tags, locators and assertions.

    158k GitHub stars~682 tokensUpdated today
    Testing & QAAuto-check passed

More from slimani-dev/muraqib

  • Wayfinder Development

    slimani-dev/muraqib

    A skill your agent uses for Laravel Wayfinder which auto-generates typed functions for Laravel controllers and routes.

    128 GitHub starsUsed in 1 repo~622 tokens
    Auto-check passed
  • Developing With Fortify

    slimani-dev/muraqib

    Laravel Fortify headless authentication backend development.

    128 GitHub stars~1.3k tokensUpdated 8 days ago
    Auto-check passed
  • Tailwindcss Development

    slimani-dev/muraqib

    Styles applications using Tailwind CSS v4 utilities. An agent skill from slimani-dev/muraqib.

    128 GitHub stars~970 tokensUpdated 8 days ago
    Auto-check passed
  • Wayfinder Development

    slimani-dev/muraqib

    Activates whenever referencing backend routes in frontend components.

    128 GitHub stars~561 tokensUpdated 8 days ago
    Auto-check passed

Works with

Categories

Questions about Pest Testing

What does Pest Testing do?

Tests applications using the Pest 4 PHP framework. An agent skill from slimani-dev/muraqib. Pest Testing is an agent skill from slimani-dev/muraqib. Tests applications using the Pest 4 PHP framework.

When should I use Pest Testing?

Pest Testing fits situations like: needs to verify functionality works; tasks that involve Browser testing; tasks that involve Failing and flaky tests.

How do I install Pest Testing in Claude Code?

Run `npx skills add slimani-dev/muraqib --skill pest-testing -a claude-code`. Or copy the skill folder (.gemini/skills/pest-testing in slimani-dev/muraqib) into .claude/skills/pest-testing in your project. Claude Code loads it when a task matches its description.

How do I install Pest Testing in Codex?

Run `npx skills add slimani-dev/muraqib --skill pest-testing -a codex`. Or copy the skill folder (.gemini/skills/pest-testing in slimani-dev/muraqib) into .agents/skills/pest-testing in your project. Codex loads it when a task matches its description.

Can I use Pest Testing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add slimani-dev/muraqib --skill pest-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pest-testing, .gemini/skills/pest-testing, .github/skills/pest-testing and .opencode/skills/pest-testing in your project.

What does Pest Testing need to run?

Going by SKILL.md and its folder, Pest Testing needs the command-line tools its instructions call (php).

Does Pest Testing access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pest Testing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pest Testing use?

Pest Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pest Testing use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pest Testing?

Skills that share tags, products or a category with Pest Testing: Pest Testing (AratKruglik/claude-laravel, 155 stars), Pest Testing (luadotsh/lua, 342 stars), Pest Testing (liberusoftware/real-estate-laravel, 112 stars) and Pest Testing (mnapoli/vibephp, 158 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pest Testing?

slimani-dev (a GitHub user) maintains it in slimani-dev/muraqib, which has 128 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 29, 2026.

Source: slimani-dev/muraqib on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.