— No reviews yet
0 installs
4 views
0.0% view→install
Install
$ agentstack add skill-alizharb-agent-skills-create-livewire-component ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Create Livewire Component? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
Create Livewire Page Or Component
When To Use
Use this skill for Livewire UI state, forms, interactions, pages, and component behavior.
Inputs Needed
- Component format, state, actions, validation, authorization, view, route, and tests.
Workflow
- Inspect existing Livewire component format and config.
- Create the component with Artisan using the existing convention.
- Keep UI state and interaction in Livewire.
- Put business rules in Actions, DTOs, Policies, Services, Events, or Jobs.
- Prefer Livewire 4 attributes when they clarify component behavior:
#[Authorize],#[Validate],#[Url],#[Session],#[Locked],#[Computed],#[Async],#[Renderless],#[Lazy], and#[Defer]. - Choose the component format deliberately:
sfcfor most new components and small pagesmfcfor large components, significant JavaScript or CSS, or code that benefits from colocationclassfor migration work or when the project intentionally keeps the classic split
- Use the project-wide default format unless the component’s complexity justifies a different one.
- Use UX validation in Livewire when helpful.
- Keep authoritative validation in reusable layers.
- Authorize explicitly before protected behavior.
- Use
rules()instead of#[Validate]for dynamic rules or LaravelRuleobjects. - Use schema-based Filament APIs or Livewire 4 conventions that match the installed version; avoid older
Form $formstyle examples when the project expects newer signatures. - Add Livewire tests and Action tests where behavior belongs.
Files That May Be Created
- Livewire component files, Blade views, Actions, DTOs, policies, and tests.
Files That May Be Modified
- Routes, views, Actions, policies, tests, and navigation.
Architecture Rules
- Livewire manages UI state only.
- Livewire calls Actions for business operations.
- No request/response or API-specific assumptions inside Actions called by Livewire.
- Attributes are for declarative UI behavior, authorization, validation, and state persistence; they do not replace Actions.
- Keep blade views free of inline
@phpimports unless the component has no accompanying PHP class and the framework requires it. - Use
php artisan make:livewirewith--sfc,--mfc, or--classintentionally rather than relying on accidental defaults.
Testing Requirements
- Test component rendering, state changes, validation errors, authorization denial, Action effects, and events.
Security Requirements
- Treat Livewire public properties as user input.
- Authorize server-side; do not rely on hidden buttons.
Review Checklist
- Is business logic outside the component?
- Are public properties validated?
- Are loops keyed and loading states considered?
- Is the component format chosen intentionally for its size and complexity?
Common Mistakes
- Saving models directly from complex Livewire methods.
- Treating Livewire validation as the only authoritative validation.
- Forgetting policy checks in component actions.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: AlizHarb
- Source: AlizHarb/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.