/superpowers-laravel:laravel:tdd-with-pestfrom superpowers-laravel
Guides Laravel TDD workflow with Pest/PHPUnit using RED-GREEN-REFACTOR, model factories, feature tests for HTTP, and parallel test runners. Verifies failures before implementing.
Ships in superpowers-laravel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write the test first. Watch it fail. Write minimal code to pass. Keep tests fast and realistic.
# Sail
sail artisan test --parallel
# Non-Sail
php artisan test --parallel
Prefer Pest (default in new Laravel apps). PHPUnit is fine if your project uses it.
Example (feature):
it('rejects empty email on signup', function () {
$response = $this->post('/register', [
'name' => 'Alice',
'email' => '',
'password' => 'secret',
'password_confirmation' => 'secret',
]);
$response->assertSessionHasErrors('email');
});
Run and confirm it fails for the right reason.
Write the simplest code to pass your failing test. No extras. No refactors.
Remove duplication, clarify names, extract small services. Keep tests green.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravel57 skills in this plugin
/laravel:ai-sdkBuild AI features with the first-party Laravel AI SDK (Laravel 13+); agents, embeddings, images, audio, and tool calling with provider-agnostic APIs/laravel:api-resources-and-paginationUse API Resources with pagination and conditional fields; keep response shapes stable and cache-friendly/laravel:api-surface-evolutionEvolve APIs safely using versioned DTOs/transformers, deprecations, and compatibility testsOther plugins' skills for the same job