laravel-feature

Automates Laravel feature scaffolding with TDD-driven models, migrations, factories, tests, validation, and Livewire components.

1|Updated Aug 27, 2025
One-click install
npx skills add https://github.com/bmadigan/ask-my-doc --skill laravel-feature
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-feature
Source: https://github.com/bmadigan/ask-my-doc/tree/main/.claude/skills/laravel-feature
Command: npx skills add https://github.com/bmadigan/ask-my-doc --skill laravel-feature

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of complete Laravel features using Test-Driven Development. It guides developers from planning to test-first implementation, reducing boilerplate and ensuring consistent architecture.

Core Features & Use Cases

  • Feature scaffolding: Create models, migrations, factories, tests, validation rules, and Livewire components following project conventions.
  • Quality assurance: Enforce Pest tests and code-quality checks to ensure reliable behavior.
  • Use Case: When starting a new CRUD module or implementing complex business logic, this Skill quickly generates a maintainable skeleton ready for refinement.

Quick Start

Provide the feature name and basic requirements to generate a fully-tested Laravel feature. Then run the test suite to verify the implementation.

Frequently Asked Questions about laravel-feature

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold Laravel features using a TDD workflow?

To scaffold Laravel features using TDD, provide the feature name and basic requirements to generate models, migrations, factories, tests, validation rules, and Livewire components. The workflow enforces test-first implementation to ensure consistent architecture and reduce boilerplate.

What do I need to set up before generating CRUD modules with Livewire and Pest?

Before generating CRUD modules with Livewire and Pest, you need a local environment running PHP, Composer, Node.js, and Laravel. You must also install Livewire and Pest tooling, along with configuring your project-specific dependencies, to support the automated generation process.

Can I use this to generate tests and validation rules for complex business logic?

You can use this to generate tests and validation rules for complex business logic by guiding the process from initial planning through implementation to validation. It targets new CRUD features and complex logic, creating a maintainable skeleton ready for refinement.

What's the best way to ensure code quality when building new Laravel components?

The best way to ensure code quality when building new Laravel components is to enforce Pest tests and code-quality checks during the scaffolding process. This approach verifies reliable behavior and maintains consistent project conventions across the generated models and Livewire components.

Why does this approach target new CRUD features instead of existing codebases?

This approach targets new CRUD features because it automates the creation of a complete, test-driven skeleton from scratch. Generating models, factories, and Livewire components from the start reduces boilerplate and enforces consistent architecture, making it less suited for retrofitting existing untested code.