{"enrichment":{"faq":[{"a":"laravel-tdd is a skill that guides you through Test-Driven Development methodology tailored for Laravel applications. It teaches you the red-green-refactor cycle using Pest PHP and Laravel's testing tools, helping you write reliable code by testing first. You'll learn patterns for testing controllers, models, APIs, authorization, and database operations to build robust Laravel applications.","q":"What is laravel-tdd and how does it help with testing?"},{"a":"laravel-tdd covers writing and structuring tests using Pest PHP in Laravel. Pest provides a clean, expressive syntax for testing Laravel features. The skill teaches you how to organize unit and feature tests, use Laravel's testing utilities, set up test databases, and leverage Pest's fluent API to write clear, maintainable tests for your Laravel codebase.","q":"How do I write tests for Laravel using Pest PHP?"},{"a":"laravel-tdd explains the red-green-refactor cycle\u2014a core TDD practice where you write a failing test (red), write minimal code to pass it (green), then improve the code (refactor). Applied to Laravel, this workflow ensures you build features incrementally with test coverage, reducing bugs and making refactoring safer across controllers, models, and business logic.","q":"What is the red-green-refactor cycle and how does it apply to Laravel?"},{"a":"laravel-tdd teaches testing Laravel features like controllers, models, and APIs. You'll learn to write feature tests that simulate HTTP requests, assert responses, validate JSON structures, and test authorization. The skill covers testing API endpoints, controller logic, middleware, and error handling using Laravel's testing helpers and Pest's expressive assertions.","q":"How to write tests for Laravel controllers and APIs?"},{"a":"laravel-tdd guides you through a consistent TDD workflow: write a failing test first, implement the feature to pass it, then refactor. This test-first approach applies to new features, bugfixes, and database operations. By following this cycle throughout your Laravel development, you ensure comprehensive test coverage and maintainable, reliable code from the start.","q":"What Laravel TDD workflow should I follow for development?"},{"a":"Yes, laravel-tdd includes Laravel model testing and database testing patterns. You'll learn to test model relationships, scopes, mutators, and validation. The skill covers using test factories, seeders, and database transactions to isolate tests, ensuring your database operations work correctly while keeping tests fast and independent.","q":"Does laravel-tdd cover testing models and database operations?"}],"shadow_tags":["red-green-refactor","behavior-driven","pest-framework","test-first-coding","laravel-testing","php-testing","feature-testing","quality-assurance"],"summary_rewrite":"This skill guides you through TDD methodology tailored for Laravel development, using Pest PHP and Laravel's testing tools. Learn the red-green-refactor cycle with Laravel-specific patterns for controllers, models, authorization, APIs, and database operations. Apply TDD consistently across features and bugfixes to build reliable Laravel applications."},"files":[{"bytes":3346,"path":"skills/laravel-tdd/SKILL.md","sha256":"364a1647221ff421f013ab78e6fec49a18bb4b0995e20737221aef4d6bdcc3f4","url":"https://skillfed.io/files/iSerter/laravel-claude-agents/laravel-tdd/512910d4/SKILL.md"}],"id":"iSerter/laravel-claude-agents/laravel-tdd","links":{"html":"https://skillfed.io/iSerter/laravel-claude-agents/laravel-tdd","md":"https://skillfed.io/iSerter/laravel-claude-agents/laravel-tdd.md","repo":"https://github.com/iSerter/laravel-claude-agents"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":8,"language":"PHP","last_updated":"2026-04-19","license":"MIT","name":"laravel-tdd","publisher":"iSerter","stars":41},"relations":{"similar":[{"id":"affaan-m/ECC/laravel-tdd"},{"id":"AsyrafHussin/agent-skills/laravel-testing"},{"id":"iSerter/laravel-claude-agents/laravel-systematic-debugging"},{"id":"spatie/freek.dev/pest-testing"},{"id":"Jeffallan/claude-skills/laravel-specialist"},{"id":"personamanagmentlayer/pcl/php-expert"},{"id":"iSerter/laravel-claude-agents/laravel-feature-flags"},{"id":"mwguerra/claude-code-plugins/testing"},{"id":"Pixel-Process-UG/superkit-agents/laravel-specialist"},{"id":"iSerter/laravel-claude-agents/laravel-authorization-patterns"}]},"slug":{"owner":"iSerter","repo":"laravel-claude-agents","skill":"laravel-tdd"},"version":"512910d4"}
