livewire-development
Skill4 starsChanged 5 months agoMITView on GitHub
Build, refactor, secure, optimize, and test Laravel Livewire v2-v4 components, including state, forms, events, uploads, pagination, Alpine, and v4 formats.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- relaticle/relaticletheir own version, first seen Oct 4, 2026
- felipeArnold/filament-ai-skillstheir own version, first seen Jun 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- relaticle/relaticle★ 1.8ksame name
- felipeArnold/filament-ai-skills★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository75 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- actions-and-servicesSkill
- ai-sdkSkill
- api-resources-and-paginationSkill
- api-surface-evolutionSkill
- architectureSkill
- blade-components-and-layoutsSkill
- brainstormingSkill
- code-review-requestsSkill
- complexity-guardrailsSkill
- config-env-storageSkill
- constants-and-configurationSkill
- controller-cleanupSkill
- controller-testsSkill
- custom-helpersSkill
- daily-workflowSkill
- database-transactionsSkill
- data-chunking-large-datasetsSkill
- debugging-promptsSkill
- dependencies-trim-packagesSkill
- documentation-best-practicesSkill
- e2e-playwrightSkill
- effective-contextSkill
- eloquent-patternsSkill
- eloquent-relationshipsSkill
- exception-handling-and-loggingSkill
- executing-plansSkill
- extract-laravel-standardsSkill
- filesystem-uploadsSkill
- form-requestsSkill
- horizon-metrics-and-dashboardsSkill
- http-client-resilienceSkill
- integrate-whatsapp-baileys-laravelSkill
- interfaces-and-diSkill
- internationalization-and-translationSkill
- iterating-on-codeSkill
- laravel-11-12-app-guidelinesSkill
- laravel-database-optimizationSkill
- laravel-prompting-patternsSkill
- laravel-specialistSkill
- least-codeSkill
- memory-managementSkill
- migrations-and-factoriesSkill
- module-per-menuSkill
- nova-resource-patternsSkill
- performance-cachingSkill
- performance-eager-loadingSkill
- performance-select-columnsSkill
- php-attributesSkill
- policies-and-authorizationSkill
- ports-and-adaptersSkill
- prompt-structureSkill
- quality-checksSkill
- queues-and-jobsSkill
- rate-limitingSkill
- request-forgery-protectionSkill
- responsive-ui-testingSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
30 rules. About 0 are common, 21 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use this skill for Laravel Livewire implementation, refactoring, debugging, security review, performance work, and tests.
- Very specific: line 15
When the Livewire work is primarily UI/UX design, visual browser iteration, frontend flow shaping, or backend contract alignment, also use …
- Very specific: line 19
Read composer.json and composer.lock or run composer show livewire/livewire to confirm the installed major version.
- Distinctive: line 22
Follow the project's Blade, Alpine, Tailwind, Flux, Filament, and testing conventions when present.
- Distinctive: line 23
Use documentation for the installed major version.
- Distinctive: line 25
Read references/livewire-4.md when the project uses Livewire v4 or the task involves v4 migration, component formats, directives, …
- Distinctive: line 32
Add validation and authorization before persistence or external side effects.
- Distinctive: line 35
Test validation, authorization, persistence, events, redirects, and browser-only behavior at the appropriate level.
- Distinctive: line 43
call an Action or Service.
- Distinctive: line 52
keep secrets, unbounded collections, or large serialized graphs in public state.
- Distinctive: line 58
Treat every public property and action parameter as untrusted client input.
- Distinctive: line 60
Prefer model binding or explicit model lookup followed by a Policy check.
- Very specific: line 61
Use #[Locked] only where supported to prevent client mutation of identifiers, but keep authorization because locking is not access control.
- Very specific: line 62
Keep helper methods protected or private when they must not be callable as component actions.
- Distinctive: line 66
Read references/testing-and-security.md for a secure action pattern, testing matrix, and browser-test boundaries.
- Distinctive: line 70
Use Livewire validation for component-local forms.
- Distinctive: line 71
Use Form objects when a form has substantial state or rules.
- Very specific: line 73
Use plain wire:model when synchronization on the next action is sufficient.
- Very specific: line 74
Use .live, .blur, .change, debounce, or throttle deliberately.
- Very specific: line 82
Keep render() and computed properties free of hidden repeated or unbounded queries.
- Very specific: line 84
Add stable wire:key values to repeated components and dynamic list items.
- Very specific: line 87
Prefer the project's existing loading-state pattern.
- Distinctive: line 91
Prefer direct props and actions for parent-child relationships.
- Distinctive: line 92
Keep event names local, intention-revealing, and payloads small.
- Distinctive: line 93
Use reactive/modelable props only when the installed version supports them and the parent-child synchronization is necessary.
- Distinctive: line 94
Use Alpine for truly client-local state such as disclosure, focus, or transitions.
- Distinctive: line 95
Use Livewire JavaScript hooks or component scripts for browser APIs and third-party widgets.
- Distinctive: line 96
Use browser tests for focus management, modals, uploads, previews, drag/drop, navigation, and third-party JavaScript integration.
- Distinctive: line 100
Test the smallest behavior that proves the risk:
- Distinctive: line 109
Use factories and Laravel fakes for files, queues, notifications, mail, and HTTP integrations.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Livewire Development
Use this skill for Laravel Livewire implementation, refactoring, debugging, security review, performance work, and tests.
This is the canonical Livewire skill in this repository. It consolidates the former livewire-patterns guidance and the public laravel-livewire topic into one version-aware workflow.
When the Livewire work is primarily UI/UX design, visual browser iteration, frontend flow shaping, or backend contract alignment, also use ui-agent-browser. Use e2e-playwright when browser behavior needs durable Playwright coverage.
Detect The Project First
- Read
composer.jsonandcomposer.lockor runcomposer show livewire/livewireto confirm the installed major version. - Inspect existing components, routes, tests, layouts, and
config/livewire.phpbefore choosing syntax. - Detect whether the project uses class-based components, Volt, Livewire v4 single-file components, multi-file components, or a mixture maintained for compatibility.
- Follow the project's Blade, Alpine, Tailwind, Flux, Filament, and testing conventions when present.
- Use documentation for the installed major version. Do not introduce v4-only attributes, directives, component paths, or routing into v2/v3 projects.
Read references/livewire-4.md when the project uses Livewire v4 or the task involves v4 migration, component formats, directives, attributes, or routing.
Implementation Workflow
- Define one interactive surface and its user-visible states.
- Choose the component format already used by the project; change formats only for a concrete maintenance benefit.
- Model the smallest public state needed by the template.
- Add validation and authorization before persistence or external side effects.
- Delegate reusable domain workflows to Actions or Services.
- Shape queries deliberately, add loading and error feedback, and keep DOM identity stable.
- Test validation, authorization, persistence, events, redirects, and browser-only behavior at the appropriate level.
Component Boundaries
A component may:
- hold UI and request-shaped state;
- validate input and authorize actions;
- call an Action or Service;
- dispatch focused events;
- coordinate rendering, pagination, uploads, and browser feedback.
A component should not:
- contain long multi-model workflows;
- build provider payloads inline;
- duplicate model-state authorization that belongs in Policies;
- keep secrets, unbounded collections, or large serialized graphs in public state;
- perform slow external calls during rendering;
- bypass a transaction for atomic writes.
State And Security
- Treat every public property and action parameter as untrusted client input.
- Validate input and authorize the resolved model or operation inside every mutating action.
- Prefer model binding or explicit model lookup followed by a Policy check; never trust a submitted identifier by itself.
- Use
#[Locked]only where supported to prevent client mutation of identifiers, but keep authorization because locking is not access control. - Keep helper methods
protectedorprivatewhen they must not be callable as component actions. - Store secrets and service credentials in configuration or injected services, never component state.
- Restrict mass-assignment payloads to validated, explicitly selected fields.
Read references/testing-and-security.md for a secure action pattern, testing matrix, and browser-test boundaries.
Forms And Data Binding
- Use Livewire validation for component-local forms.
- Use Form objects when a form has substantial state or rules; move reusable domain rules to shared rule objects or services.
- Normalize localized numbers, dates, booleans, and text before applying validation rules.
- Use plain
wire:modelwhen synchronization on the next action is sufficient. - Use
.live,.blur,.change, debounce, or throttle deliberately; avoid extra requests without a UX requirement. - Reset or pull state after successful submission when the interaction should return to a clean form.
- Show field-level errors and disable or style in-flight actions to prevent accidental duplicate submissions.
Queries, Rendering, And Performance
- Eager load relationships used by the view and select only required columns on hot paths.
- Paginate lists instead of storing unbounded Eloquent collections in public properties.
- Keep
render()and computed properties free of hidden repeated or unbounded queries. - Cache computed results across requests only when keys, authorization scope, invalidation, and staleness are understood.
- Add stable
wire:keyvalues to repeated components and dynamic list items. - Re-key dependent controls when their available options depend on another field.
- Lazy-load below-the-fold or expensive components only when the installed Livewire version supports the chosen API.
- Prefer the project's existing loading-state pattern; Livewire v4 can style automatic
data-loadingattributes, whilewire:loadingremains useful for targeted visibility.
Events, Nesting, And JavaScript
- Prefer direct props and actions for parent-child relationships; use events for decoupled UI coordination.
- Keep event names local, intention-revealing, and payloads small.
- Use reactive/modelable props only when the installed version supports them and the parent-child synchronization is necessary.
- Use Alpine for truly client-local state such as disclosure, focus, or transitions.
- Use Livewire JavaScript hooks or component scripts for browser APIs and third-party widgets; isolate initialization and cleanup so DOM morphing does not duplicate handlers.
- Use browser tests for focus management, modals, uploads, previews, drag/drop, navigation, and third-party JavaScript integration.
Testing And Handoff
Test the smallest behavior that proves the risk:
- component rendering and initial state;
- validation failures and normalized input;
- authorization denial for properties and action parameters;
- successful database changes and transaction boundaries;
- dispatched events, redirects, pagination, uploads, and query-string state;
- loading, focus, modal, navigation, and JavaScript behavior in a browser test when component tests cannot prove it.
Use factories and Laravel fakes for files, queues, notifications, mail, and HTTP integrations. Run targeted tests, formatting, static analysis, and frontend checks supported by the project before handoff.
Related Skills
actions-and-servicesfor reusable workflows and integrations.database-transactionsfor atomic multi-write actions.filesystem-uploadsfor storage and file lifecycle rules.policies-and-authorizationfor model access decisions.ui-agent-browserfor stack-aware UI/UX implementation and browser inspection.e2e-playwrightfor durable browser workflow coverage.responsive-ui-testingfor viewport and browser-state coverage.testingfor test selection and handoff verification.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

