volt-development

Creates single-file Livewire components using Volt functional or class-based APIs.

1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/MoisesCorcho/anime-recommender --skill volt-development-moisescorcho
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: volt-development
Source: https://github.com/MoisesCorcho/anime-recommender/tree/main/.agents/skills/volt-development
Command: npx skills add https://github.com/MoisesCorcho/anime-recommender --skill volt-development-moisescorcho

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building Livewire components in Laravel often requires juggling separate PHP classes and Blade views. This Skill guides the creation of single-file Volt components, keeping logic and markup together while matching the existing functional or class-based style of your project. ## Core Features & Use Cases - Component Scaffolding: Generate Volt components with vendor/bin/sail artisan make:volt [name], with optional --test and --pest flags. - Style Consistency: Detects whether existing components use functional or class-based Volt APIs before creating new ones. - Testing Support: Provides Pest test patterns using Volt::test() to verify component behavior. - Use Case: When adding a counter widget to a Blade page, the Skill checks your existing Volt components, scaffolds a matching single-file component with the @volt directive, and generates a corresponding test. ## Quick Start Create a new Volt component named counter with a Pest test and show me the functional-style implementation.

Frequently Asked Questions about volt-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Volt component in Laravel?▼

Run vendor/bin/sail artisan make:volt [name] to scaffold a single-file Volt component. Add the --test or --pest flags to generate a corresponding test file at the same time.

What is the difference between functional and class-based Volt components?▼

Functional Volt components use imported functions like state() and computed() inside an @volt block, while class-based components define an anonymous class extending Livewire\Volt\Component. Check your existing components to match the project's established style.

How do I test a Volt component with Pest?▼

Use Volt::test('component-name') in a Pest test, then chain assertions like assertSee() and call() to interact with the component. Tests typically live in tests/Feature/Volt or the existing Volt test directory.

Why is my Volt component not rendering in Blade?▼

A common cause is forgetting the @volt directive wrapper around functional component code. Also verify the component was created with make:volt and that Livewire is properly installed in the Laravel application.

Can I convert an existing Livewire component to Volt?▼

Yes, Volt supports consolidating a Livewire class and its Blade view into one file using either the functional or class-based API. Match the conversion style to other Volt components already in the project.