glhd/aire/aire-development
Claude Code and agent skill by glhd/aire
- community
Checking that the SKILL.md file is still in the repository.
Build and work with Aire forms in Laravel, including the fluent PHP API, data binding, validation, and customization.
Install
npx vskill@latest install glhd/aire/aire-developmentSKILL.md
Aire Form Development
When to use this skill
Use this skill when creating, modifying, debugging, or styling HTML forms in a Laravel application that uses the glhd/aire package. This includes any work involving form elements, data binding, validation, or form customization.
Overview
Aire is a Laravel form builder with a fluent API. It is accessed via the Aire facade (Galahad\Aire\Support\Facades\Aire). Aire automatically handles CSRF tokens, HTTP method spoofing, old input repopulation, and server-side validation error display.
Opening and Closing Forms
Every form must be opened and closed. Aire uses output buffering between open and close to capture form fields.
Setting the Action
HTTP Methods
Aire automatically infers the method from the route. You can also set it explicitly:
For PUT, PATCH, and DELETE, Aire automatically adds a hidden _method field and sets the real method to POST.
Form Encoding
Data Binding
Bind an Eloquent model, array, or object to auto-populate form fields:
Or with resourceful (which calls bind internally):
Value precedence (highest to lowest):
- Explicitly set via
->value() - Old input from session (after validation failure)
- Bound data from the model/array/object
Available Form Elements
Text Inputs
Date and Time Inputs
Other Inputs
Textarea
Select
Checkboxes
Radio Buttons
Buttons
Error Summary
Display a summary of all validation errors at the top of the form:
Fluent Element Methods
All elements support chaining. Common methods available on every input element:
Grouping (Labels, Help Text, Errors)
By default, every form element is wrapped in a "group" that renders a label, the input, help text, and validation errors together. This is controlled by the group_by_default config option.
Validation
Server-Side Validation Errors
Aire automatically reads errors from the session (set by Laravel's validate() or FormRequest) and displays them inline within each element's group. No extra configuration needed.
Using a Custom Error Bag
Client-Side Validation
Aire includes optional JavaScript-based client-side validation using the validatorjs library:
Alpine.js Integration
Aire can generate x-data and x-model attributes for Alpine.js:
When enabled, each input element will get an x-model attribute matching its name, and the form gets an x-data attribute with JSON-serialized initial values.
Configuration
Publish the config file to customize Aire's behavior:
This publishes config/aire.php where you can set:
default_classes: CSS classes for each element typevariant_classes: Named style variants (e.g.,sm,lg,primary)validation_classes: CSS classes for validation states (none,valid,invalid)group_by_default: Whether elements are grouped by defaultvalidate_by_default: Whether client-side validation is on by default
You can also publish and override Blade templates:
Complete Form Examples
Create Form
Edit Form with Model Binding
Delete Form
Form with Client-Side Validation
File Upload Form
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationPassed, 70 of 100Effective. 2 runs. Evaluated 7 months ago.
Source
- SKILL.md in the repositoryCheckingresources/boost/skills/aire-development/SKILL.md
Popularity
- Repository stars
- 544
- Repository forks
- 40
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/glhd/aire/aire-development)