fluent-validation-rector

Convert Laravel validation rules to FluentValidation Rector rule classes.

5|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/SanderMuller/laravel-fluent-validation-rector --skill fluent-validation-rector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fluent-validation-rector
Source: https://github.com/SanderMuller/laravel-fluent-validation-rector/tree/main/resources/boost/skills/fluent-validation-rector
Command: npx skills add https://github.com/SanderMuller/laravel-fluent-validation-rector --skill fluent-validation-rector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured framework and context for developing, testing, and debugging Rector rules that migrate Laravel validation to the Fluent Validation Rector package. It centralizes rule architecture, set lists, testing conventions, and cross-process parallel worker support to accelerate migration.

Core Features & Use Cases

  • Architecture overview of the Rector rules, including Conversion rules and shared traits.
  • Details on available Set Lists and how to apply them in migrations.
  • Guidance on testing approaches using Rector's AbstractRectorTestCase and fixture-based workflows.
  • Cross-process parallel support and internal safety checks to ensure scalable migrations.

Quick Start

Review the Fluent Validation Rector architecture and tests to begin implementing or debugging the migration rules.

Frequently Asked Questions about fluent-validation-rector

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

FAQPage Schema
How do I automate Laravel validation migration to FluentValidation using Rector?

Automate Laravel validation migration by converting array-based rules, FormRequests, and Validator::make usage into FluentValidation Rector rule classes. This supports automated migration workflows across Laravel projects using Rector 2.4+ and PHP 8.2+.

What Laravel validation formats does Rector support for FluentValidation migration?

Rector supports migrating FormRequests, Validator::make usage, and array-based validation rules to FluentValidation. It handles these formats across Laravel projects to streamline automated migration workflows during framework transitions.

Do I need PHP 8.2 and Rector 2.4 to run FluentValidation migration rules?

Yes, FluentValidation migration rules require PHP 8.2+ and Rector 2.4+. You also need the FluentValidation package installed. These prerequisites ensure compatibility with the architecture, set lists, and cross-process parallel worker support.

How do I test Rector rules for Laravel validation conversion?

Test Rector rules for Laravel validation conversion using Rector's AbstractRectorTestCase and fixture-based workflows. The Skill provides structured testing conventions to verify that FormRequests and array-based rules migrate correctly to FluentValidation.

Can I run Rector migration rules in parallel for large Laravel projects?

Yes, Rector migration rules support cross-process parallel workers for large Laravel projects. Internal safety checks ensure scalable migrations when converting validation rules to FluentValidation across extensive codebases during automated workflows.

What is the best way to structure Rector set lists for FluentValidation migration?

Structure Rector set lists by applying the architecture overview of conversion rules and shared traits. The Skill details available set lists and how to apply them during migrations to automate Laravel validation conversion to FluentValidation systematically.