Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

fluent-validation-migrate-messages

Skill by SanderMuller

Migrates FormRequest messages() array entries into inline message: arguments on fluent rule chains in rules(). It is for Laravel developers using sandermuller/laravel-fluent-validation 1.19 or newer.

  • Score 76
  • 222 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install fluent-validation-migrate-messages

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-migrate-messages ~/.claude/skills/fluent-validation-migrate-messages

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install fluent-validation-migrate-messages in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill rewrites FormRequest messages(): array overrides into colocated message: named arguments on the rule chains in rules(). For each message key, it reads the matching rule, classifies the key as portable or unportable, and rewrites the chain. The source lists twelve cases, including variadic methods, composite methods, DateRule keys, wildcard keys in each(), and custom ValidationRule objects. Unportable keys stay in messages() with a comment, and the method is deleted only when no keys remain.

The skill starts with a dry-run report for each file, which the user confirms before any edits. It then applies changes one file at a time and runs that FormRequest's tests before moving on. A snapshot test is suggested to confirm that custom messages still appear after migration. It is intended for developers who use the sandermuller/laravel-fluent-validation package and want to remove messages() arrays.

Written from the project's SKILL.md and checked against it.

What it can do

  • Classify message keysSorts each messages() entry into portable or unportable cases with a stated reason.
  • Inline message argumentsRewrites portable entries as message: arguments on rule methods such as required or max.
  • messageFor rewritesUses messageFor() for composite methods and variadic methods where message: cannot bind.
  • Dry-run migration reportLists portable and unportable entries per file before any edits are made.
  • Per-file apply and testEdits one FormRequest at a time and runs its tests before continuing.
  • Snapshot test paritySuggests a snapshot test that checks custom error messages still surface after migration.
  • Empty method removalDeletes the messages() method only when all of its keys have been migrated.

What you need

  • sandermuller/laravel-fluent-validation ^1.19 or newer
  • Composer project with composer.json
  • Pest test runner (vendor/bin/pest)
  • ripgrep (rg) for the search commands

Try asking

  • Migrate the messages() array in my ClearSelectedVideoContentRequest to inline message:
  • Show a dry-run report of messages() entries that can move into rules()
  • Inline the custom messages in my workshop FormRequest and keep unportable keys

Good to know

  • Requires sandermuller/laravel-fluent-validation 1.19 or newer; older versions lack the message: argument.
  • Dynamic keys such as interpolated or match-based keys are reported and skipped.
  • Migrates one FormRequest at a time and asks for confirmation per file.
  • Unportable keys, such as the implicit string rule from FluentRule::email(), stay in messages().

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: resources/boost/skills/fluent-validation-migrate-messages/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to fluent-validation-migrate-messages

All alternatives →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

fluent-validation-migrate-messages: common questions

Does this skill change which validation rules run?

No. The source says messages are cosmetic and that any rewrite changing which rule fires or when is out of scope.

What happens to messages() entries that cannot be moved?

They stay in the messages() method with a comment explaining why. The method is only removed when no keys remain.

Does the skill preview changes before editing files?

Yes. It outputs a dry-run migration report for each file and asks the user to confirm per file before applying any changes.

How do I install fluent-validation-migrate-messages?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is fluent-validation-migrate-messages free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is fluent-validation-migrate-messages safe to use?

It scores 76 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-migrate-messages?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

fluent-validation-migrate-messages Install

Add to stack

Loading.