fluent-validation
Skill by SanderMuller
Guides an AI assistant to write Laravel validation rules with FluentRule builders in FormRequests, Livewire components, and Validators. Built for Laravel developers who use the sandermuller/laravel-fluent-validation package.
Install fluent-validation
Built from the published package, never by AI.
git clone --depth 1 https://github.com/SanderMuller/laravel-fluent-validation /tmp/laravel-fluent-validation && mkdir -p ~/.claude/skills && cp -r /tmp/laravel-fluent-validation/resources/boost/skills/fluent-validation ~/.claude/skills/fluent-validationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/SanderMuller/laravel-fluent-validation /tmp/laravel-fluent-validation && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/laravel-fluent-validation/resources/boost/skills/fluent-validation ~/.gemini/antigravity-cli/skills/fluent-validationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The fluent-validation skill tells an AI assistant how to write Laravel validation rules with FluentRule builders, such as string, numeric, email, array, and file. It applies when rules are written or changed in FormRequest classes, Livewire components, or Validator instances. Every rule class implements FluentRuleContract, so rules() can use one return type. Typed builders give IDE autocompletion, and the skill says to pick the matching typed builder instead of field() with a string escape hatch.
The skill covers labels, per-rule messages, each() and children() for nested arrays, build-time and validation-time conditions, enum values in in(), and macros. It also explains how to extend a parent's each() or children() shape in subclass FormRequests. It points to FluentRulesTester for unit tests of rules, RuleSets, form requests, validators, and Livewire components. It is for Laravel developers who use the sandermuller/laravel-fluent-validation package.
Written from the project's SKILL.md and checked against it.
What it can do
- Typed rule buildersWrites rules with FluentRule factories such as string(), numeric(), date(), file(), and password().
- Untyped field builderUses FluentRule::field() only when no base type constraint applies, with modifiers and embedded-rule factories.
- Nested arraysBuilds wildcard children with each() and fixed-key children with children().
- Conditional rulesApplies rules at build time with when() or at validation time with whenInput().
- Custom messages and labelsSets labels that replace :attribute and per-rule messages inline.
- Rule extensionAdds sub-rules to a parent's each() or children() shape in subclass FormRequests with modifyEach() or modify().
- MacrosRegisters reusable rule chains on rule classes through a service provider.
- Livewire validationPoints to HasFluentValidation for Livewire components, with wildcard and each() support.
- Rule testingUses FluentRulesTester to assert passes, fails, and failure messages for rules and requests.
What you need
- Laravel project
- sandermuller/laravel-fluent-validation package installed
Try asking
- Convert this FormRequest's string rules to FluentRule builders
- Write FluentRule rules for an array of order items with a name and quantity
- Add a FluentRule password rule with mixed case and numbers
Good to know
- Type-specific methods such as min, max, or regex throw UnknownFluentRuleMethod when called on field().
- Only the package's FluentRulesTester is a stable test surface; other Testing classes are internal.
- Requires the sandermuller/laravel-fluent-validation package to be installed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: resources/boost/skills/fluent-validation/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to fluent-validation
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
fluent-validation: common questions
What does the fluent-validation skill do?
It guides an AI assistant to write Laravel validation rules using FluentRule builders with IDE autocompletion. It covers FormRequests, Livewire components, and Validators.
When should I use FluentRule::field()?
Use it only when no base type constraint applies. For rules that constrain the value, the skill says to use a typed builder such as string() or numeric().
Can it test my validation rules?
Yes. The skill points to FluentRulesTester for unit tests of FluentRule chains, RuleSets, FormRequests, FluentValidators, and Livewire components.
How do I install fluent-validation?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fluent-validation free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is fluent-validation safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to fluent-validation?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
