Agent skill

TDD With Pest

by dev-toolings in dev-toolings/superpowers-symfony

Apply RED-GREEN-REFACTOR with Pest v4 (PHP 8.3+) for Symfony via the PHPUnit bridge; Foundry factories, WebTestCase, verify failures first

MITAuto-check: notesTesting & QA

Install TDD With Pest

skills CLI
$ npx skills add dev-toolings/superpowers-symfony --skill tdd-with-pest -a claude-code

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

GitHub CLI
$ gh skill install dev-toolings/superpowers-symfony tdd-with-pest --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/dev-toolings/superpowers-symfony.git skills-src && mkdir -p .claude/skills && cp -r skills-src/content/skills/tdd-with-pest .claude/skills/tdd-with-pest && 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
tdd-with-pest
GitHub stars
223
Token cost
~526 tokens
SKILL.md length
221 words
Files
2
Skills in repo
44
Repo updated
First seen
Licence
MIT

At a glance

Apply RED-GREEN-REFACTOR with Pest v4 (PHP 8.3+) for Symfony via the PHPUnit bridge; Foundry factories, WebTestCase, verify failures first

  • Works in 5 steps: Confirm PHP 8.3+ and Pest v4, then… → Bind the bridge classes in… → RED: write an it() test with Foundry v2… → …
  • Tasks that involve Test-driven development
  • SKILL.md covers Use when, Default workflow, Guardrails and Progressive disclosure, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

TDD With Pest is an agent skill from dev-toolings/superpowers-symfony. Apply RED-GREEN-REFACTOR with Pest v4 (PHP 8.3+) for Symfony via the PHPUnit bridge; Foundry factories, WebTestCase, verify failures first

Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `reference.md`).

It sits in Testing & QA, covering Test-driven development. It works with Symfony and PHP. The repository describes itself as: Claude Code plugin for Symfony 7.4 LTS & 8.x — 44 skills, 7 AI subagents & 13 commands for API Platform v4, Doctrine ORM 3, TDD (Pest/PHPUnit), Messenger, security & DDD. The licence is MIT.

When your agent uses it

  • Tasks that involve Test-driven development

Example prompts

  • “/tdd-with-pest”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Write, Edit, Bash

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Confirm PHP 8.3+ and Pest v4, then generate tests/Pest.php with ./vendor/bin/pest --init.
  2. Bind the bridge classes in tests/Pest.php: uses(KernelTestCase::class, Factories::class, ResetDatabase::class)->in('Integration') and…
  3. RED: write an it() test with Foundry v2 factories, run ./vendor/bin/pest --filter and check it fails for the right reason.
  4. GREEN: write the minimal code, then REFACTOR and re-run ./vendor/bin/pest.
  5. Gate the suite with --parallel and --coverage --min=80.

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Write
    • Edit
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    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

TDD With Pest loads about 526 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 221 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Glob, Grep, Write, Edit, Bash

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 dev-toolings/superpowers-symfony at commit 459bcd0, republished under its MIT licence (© dev-toolings). 221 words, ~526 tokens.

Download SKILL.mdSave it as .claude/skills/tdd-with-pest/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
tdd-with-pest
description
Apply RED-GREEN-REFACTOR with Pest v4 (PHP 8.3+) for Symfony via the PHPUnit bridge; Foundry factories, WebTestCase, verify failures first
allowed-tools
Read, Glob, Grep, Write, Edit, Bash
capabilities
read, search, edit, shell
tags
testing, tdd

Tdd With Pest (Symfony)

Use when

  • Driving a feature with RED-GREEN-REFACTOR in a project that runs Pest v4 (PHP 8.3+).
  • Writing it() and expect() tests that need the Symfony kernel or an HTTP client.
  • Converting existing PHPUnit class tests to Pest syntax with pest-plugin-drift.
  • Adding a bug-reproducing test to a Pest suite before the fix.

Default workflow

  1. Confirm PHP 8.3+ and Pest v4, then generate tests/Pest.php with ./vendor/bin/pest --init.
  2. Bind the bridge classes in tests/Pest.php: uses(KernelTestCase::class, Factories::class, ResetDatabase::class)->in('Integration') and uses(WebTestCase::class, ...)->in('Functional').
  3. RED: write an it() test with Foundry v2 factories, run ./vendor/bin/pest --filter and check it fails for the right reason.
  4. GREEN: write the minimal code, then REFACTOR and re-run ./vendor/bin/pest.
  5. Gate the suite with --parallel and --coverage --min=80.

Guardrails

  • There is no official Symfony Pest plugin: never reference pestphp/pest-plugin-symfony, bind KernelTestCase or WebTestCase through uses().
  • Foundry v2 factories return real objects: no ->object() call.
  • Pest test files are anonymous, so use the Factories and ResetDatabase traits rather than the #[ResetDatabase] attribute.
  • Chain related checks with expect()->and(); keep one concept per test.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • The failing ./vendor/bin/pest output (RED), then the passing run.
  • tests/Pest.php bindings added or changed.
  • Test files changed and the commands executed.

References

  • reference.md

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

Files

SKILL.md and 1 other file in content/skills/tdd-with-pest of dev-toolings/superpowers-symfony.

  • SKILL.md
  • reference.md

Open the folder on GitHubat commit 459bcd0

Compare with similar skills

TDD With Pest 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.

TDD With Pest compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
TDD With Pest this skilldev-toolings/superpowers-symfony223—~526Automated safety check: NotesMIT
Pest Testingluadotsh/lua3431 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
Pest Testingslimani-dev/muraqib129—~1.2kAutomated safety check: PassMIT

Similar skills

  • Pest Testing

    luadotsh/lua

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

    343 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
  • Pest Testing

    slimani-dev/muraqib

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

    129 GitHub stars~1.2k tokensUpdated 9 days ago
    Testing & QAAuto-check passed
  • 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

More from dev-toolings/superpowers-symfony

All 44 skills in this repo
  • Symfony Scheduler

    dev-toolings/superpowers-symfony

    Schedule recurring tasks with the Symfony Scheduler component (native since 7.x); define schedules, triggers, and integrate with Messenger

    223 GitHub stars~526 tokensUpdated 3 days ago
    Auto-check: notes
  • API Platform Dto Resources

    dev-toolings/superpowers-symfony

    Map entities to API DTOs in API Platform (v5, 4.4, 4.3) with the Symfony Object Mapper ([Map], stateOptions) for decoupled input/output contracts

    223 GitHub stars~593 tokensUpdated 3 days ago
    Auto-check: notes
  • API Platform Filters

    dev-toolings/superpowers-symfony

    Implement API Platform filters - Parameters API (QueryParameter, v5/4.4/4.3) and the [ApiFilter] attribute deprecated since 4.4 - for search, date, range, boolean, and custom filtering

    223 GitHub stars~610 tokensUpdated 3 days ago
    Auto-check: notes
  • API Platform Resources

    dev-toolings/superpowers-symfony

    Configure API Platform resources (v5, 4.4, 4.3) with explicit operations, pagination, and typed OpenAPI for clean, versioned REST/GraphQL APIs

    223 GitHub stars~560 tokensUpdated 3 days ago
    Auto-check: notes
  • API Platform Security

    dev-toolings/superpowers-symfony

    Secure API Platform resources with security expressions, voters, securityPostValidation, and operation-level access control

    223 GitHub stars~551 tokensUpdated 3 days ago
    Auto-check: notes
  • API Platform Serialization

    dev-toolings/superpowers-symfony

    Control API Platform serialization with groups, [Context], IRI links (readableLink/writableLink), and custom context builders

    223 GitHub stars~519 tokensUpdated 3 days ago
    Auto-check: notes

Works with

Categories

Questions about TDD With Pest

What does TDD With Pest do?

Apply RED-GREEN-REFACTOR with Pest v4 (PHP 8.3+) for Symfony via the PHPUnit bridge; Foundry factories, WebTestCase, verify failures first. TDD With Pest is an agent skill from dev-toolings/superpowers-symfony.

When should I use TDD With Pest?

TDD With Pest fits situations like: tasks that involve Test-driven development.

How do I install TDD With Pest in Claude Code?

Run `npx skills add dev-toolings/superpowers-symfony --skill tdd-with-pest -a claude-code`. Or copy the skill folder (content/skills/tdd-with-pest in dev-toolings/superpowers-symfony) into .claude/skills/tdd-with-pest in your project. Claude Code loads it when a task matches its description.

How do I install TDD With Pest in Codex?

Run `npx skills add dev-toolings/superpowers-symfony --skill tdd-with-pest -a codex`. Or copy the skill folder (content/skills/tdd-with-pest in dev-toolings/superpowers-symfony) into .agents/skills/tdd-with-pest in your project. Codex loads it when a task matches its description.

Can I use TDD With Pest 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 dev-toolings/superpowers-symfony --skill tdd-with-pest -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tdd-with-pest, .gemini/skills/tdd-with-pest, .github/skills/tdd-with-pest and .opencode/skills/tdd-with-pest in your project.

What does TDD With Pest need to run?

SKILL.md names no scripts, command-line tools or credentials: TDD With Pest is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep, Write, Edit, Bash.

Does TDD With Pest 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 TDD With Pest safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does TDD With Pest use?

TDD With Pest 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 TDD With Pest use?

About 526 tokens (SKILL.md is roughly 2.1k 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 TDD With Pest?

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

Who maintains TDD With Pest?

dev-toolings (a GitHub organization) maintains it in dev-toolings/superpowers-symfony, which has 223 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 5, 2026.

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