Laravel Tdd

🌐Community
by iserter · vlatest · Repository

Generates Laravel test cases using TDD principles, accelerating development and ensuring code quality through automated testing.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add laravel-tdd npx -- -y @trustedskills/laravel-tdd
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "laravel-tdd": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/laravel-tdd"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

The laravel-tdd skill enables AI agents to generate, execute, and maintain Test-Driven Development workflows specifically within Laravel applications. It automates the creation of unit and feature tests alongside corresponding application code, ensuring robust software quality from the start.

When to use it

  • Building new Laravel modules where you want to enforce test coverage before writing production logic.
  • Refactoring existing legacy codebases to add safety nets without breaking current functionality.
  • Generating comprehensive test suites for complex business logic or API endpoints.
  • Onboarding team members by providing immediate, executable documentation of expected behaviors.

Key capabilities

  • Generates PHPUnit tests tailored to Laravel's testing architecture.
  • Creates corresponding application code based on defined test expectations.
  • Supports both unit testing and feature-level integration scenarios.
  • Maintains alignment between implementation details and test assertions.

Example prompts

  • "Generate a failing test for a new User authentication endpoint, then implement the controller logic to pass it."
  • "Refactor this existing Order model class while adding comprehensive unit tests to verify data integrity rules."
  • "Create a feature test suite for the checkout flow that validates payment gateway interactions and database updates."

Tips & gotchas

Ensure your Laravel project has PHPUnit installed and configured before invoking this skill, as it relies on the framework's standard testing infrastructure. While the skill excels at generating boilerplate and logic, always manually review generated tests to ensure they accurately reflect complex business requirements.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
iserter
Installs
150

🌐 Community

Passed automated security scans.