
filament-specialist
Laravel-focused FilamentPHP v4 plugin that bundles official docs to generate resources, forms, and tests.
- version
- 1.0.0
- GitHub stars
- 36
What it does
- Adds 9 commands (
/resource,/form,/table,/action,/widget,/infolist,/test,/diagnose,/docs) and thefilament-specialistagent - Covers resources, forms, tables, actions, widgets, infolists, and Pest tests, following v4 patterns from bundled documentation
- Logs solved errors to
~/claude-docs/solved-errors.mdso later diagnoses can reuse earlier fixes - Designed for Laravel 10+ projects on PHP 8.2+ that build admin panels with FilamentPHP v4
Expert FilamentPHP v4 assistant with complete official documentation. Generates resources, forms, tables, actions, widgets, infolists, and Pest tests following v4 patterns. Includes diagnosis and troubleshooting.
Add marketplace
/plugin marketplace add mwguerra/claude-code-pluginsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install filament-specialist@mwguerra-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceFilamentPHP Actions Generation Skill
Overview
This skill generates FilamentPHP v4 actions for resources, pages, and tables including modal actions, form actions, bulk operations, and custom workflows.
Documentation Reference
CRITICAL: Before generating actions, read:
/home/mwguerra/projects/mwguerra/claude-code-plugins/filament-specialist/skills/docs/references/actions/
Action Types
Standard CRUD Actions
use Filament\Actions;
// Create action
Actions\CreateAction::make()
->label('New Post')
->icon('heroicon-o-plus');
// Edit action
Actions\EditAction::make()
->label('Edit')
->icon('heroicon-o-pencil');
// View action
Actions\ViewAction::make()
->label('View Details')
->icon('heroicon-o-eye');
// Delete action
Actions\DeleteAction::make()
->requiresConfirmation()
->modalHeading('Delete post')
->modalDescription('Are you sure you want to delete this post? This action cannot be undone.')
->modalSubmitActionLabel('Yes, delete');
// Force delete (soft deletes)
Actions\ForceDeleteAction::make()
->requiresConfirmation();
// Restore (soft deletes)
Actions\RestoreAction::make();
Custom Actions with Modals
// Simple confirmation action
Actions\Action::make('publish')
->label('Publish')
->icon('heroicon-o-check-circle')
->color('success')
->requiresConfirmation()
->modalHeading('Publish Post')
->modalDescription('Are you sure you want to publish this post?')
->modalSubmitActionLabel('Yes, publish')
->action(function (Model $record): void {
$record->update(['status' => 'published', 'published_at' => now()]);
Notification::make()
->title('Post published')
->success()
->send();
});
// Action with form modal
Actions\Action::make('send_email')
->label('Send Email')
->icon('heroicon-o-envelope')
->color('info')
->form([
Forms\Components\TextInput::make('subject')
->label('Subject')
->required()
->maxLength(255),
Forms\Components\Select::make('template')
->label('Template')
->options([
'welcome' => 'Welcome Email',
'reminder' => 'Reminder',
'promotion' => 'Promotion',
])
->required(),
Forms\Components\RichEditor::make('body')
->label('Message')
->required()
->columnSpanFull(),
])
->action(function (Model $record, array $data): void {
Mail::to($record->email)->send(new CustomEmail(
subject: $data['subject'],
template: $data['template'],
body: $data['body'],
));
Notification::make()
->title('Email sent successfully')
->success()
->send();
});
// Wizard action (multi-step)
Actions\Action::make('create_order')
->label('Create Order')
->icon('heroicon-o-shopping-cart')
->steps([
Forms\Components\Wizard\Step::make('Customer')
->schema([
Forms\Components\Select::make('customer_id')
->relationship('customer', 'name')
->required()
->searchable(),
]),
Forms\Components\Wizard\Step::make('Products')
->schema([
Forms\Components\Repeater::make('items')
->schema([
Forms\Components\Select::make('product_id')
->relationship('product', 'name')
->required(),
Forms\Components\TextInput::make('quantity')
->numeric()
->required()
->default(1),
])
->columns(2),
]),
Forms\Components\Wizard\Step::make('Shipping')
->schema([
Forms\Components\Textarea::make('address')
->required(),
Forms\Components\Select::make('shipping_method')
->options([
'standard' => 'Standard',
'express' => 'Express',
]),
]),
])
->action(function (array $data): void {
Order::create($data);
});
Action Visibility and Authorization
Actions\Action::make('approve')
// Visible only for specific status
->visible(fn (Model $record): bool => $record->status === 'pending')
// Hidden in certain conditions
->hidden(fn (Model $record): bool => $record->is_archived)
// Authorization check
->authorize('approve')
// Or with closure
->authorized(fn (): bool => auth()->user()->can('approve_posts'));
Actions with Side Effects
// Action that refreshes data
Actions\Action::make('refresh')
->icon('heroicon-o-arrow-path')
->action(fn () => null) // No action needed
->after(fn ($livewire) => $livewire->dispatch('refresh'));
// Action with redirect
Actions\Action::make('view_invoice')
->icon('heroicon-o-document')
->url(fn (Model $record): string => route('invoices.show', $record->invoice_id))
->openUrlInNewTab();
// Action with download
Actions\Action::make('download_pdf')
->icon('heroicon-o-arrow-down-tray')
->action(function (Model $record) {
return response()->download(
storage_path("invoices/{$record->invoice_id}.pdf")
);
});
Table Row Actions
use Filament\Tables\Actions;
public static function table(Table $table): Table
{
return $table
->columns([...])
->actions([
// Icon-only actions
Actions\ActionGroup::make([
Actions\ViewAction::make(),
Actions\EditAction::make(),
Actions\DeleteAction::make(),
])->dropdownPlacement('bottom-end'),
// Or inline
Actions\ViewAction::make()
->iconButton(),
Actions\EditAction::make()
->iconButton(),
// Custom inline action
Actions\Action::make('duplicate')
->icon('heroicon-o-document-duplicate')
->iconButton()
->action(function (Model $record): void {
$replica = $record->replicate();
$replica->name = $record->name . ' (Copy)';
$replica->save();
}),
]);
}
Bulk Actions
use Filament\Tables\Actions;
->bulkActions([
Actions\BulkActionGroup::make([
// Standard bulk delete
Actions\DeleteBulkAction::make(),
// Custom bulk action
Actions\BulkAction::make('publish')
->label('Publish Selected')
->icon('heroicon-o-check-circle')
->color('success')
->requiresConfirmation()
->action(function (Collection $records): void {
$records->each->update(['status' => 'published']);
Notification::make()
->title(count($records) . ' posts published')
->success()
->send();
})
->deselectRecordsAfterCompletion(),
// Bulk action with form
Actions\BulkAction::make('assign_category')
->label('Assign Category')
->icon('heroicon-o-tag')
->form([
Forms\Components\Select::make('category_id')
->label('Category')
->relationship('category', 'name')
->required(),
])
->action(function (Collection $records, array $data): void {
$records->each->update(['category_id' => $data['category_id']]);
}),
// Export bulk action
Actions\BulkAction::make('export')
->label('Export to CSV')
->icon('heroicon-o-arrow-down-tray')
->action(function (Collection $records) {
return Excel::download(
new RecordsExport($records),
'records.csv'
);
}),
]),
]);
Header Actions
use Filament\Tables\Actions;
->headerActions([
// Create action
Actions\CreateAction::make()
->label('New Post'),
// Import action
Actions\Action::make('import')
->label('Import')
->icon('heroicon-o-arrow-up-tray')
->form([
Forms\Components\FileUpload::make('file')
->label('CSV File')
->acceptedFileTypes(['text/csv'])
->required(),
])
->action(function (array $data): void {
// Import logic
}),
// Attach action (for relationships)
Actions\AttachAction::make()
->preloadRecordSelect()
->recordSelectSearchColumns(['name', 'email']),
]);
Relation Manager Actions
// In RelationManager class
protected function getHeaderActions(): array
{
return [
Tables\Actions\CreateAction::make(),
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
->form(fn (Tables\Actions\AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('role')
->required(),
]),
Tables\Actions\AssociateAction::make(),
];
}
public function table(Table $table): Table
{
return $table
->columns([...])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\DetachAction::make(),
Tables\Actions\DissociateAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DetachBulkAction::make(),
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
Page Actions
// In resource page classes
protected function getHeaderActions(): array
{
return [
Actions\EditAction::make(),
Actions\DeleteAction::make(),
// Custom action
Actions\Action::make('preview')
->icon('heroicon-o-eye')
->url(fn (): string => route('posts.show', $this->record))
->openUrlInNewTab(),
];
}
// For List page
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
// Global action
Actions\Action::make('settings')
->icon('heroicon-o-cog')
->url(fn (): string => route('filament.admin.pages.settings')),
];
}
Action Styling and Configuration
Actions\Action::make('custom')
// Label and icon
->label('Custom Action')
->icon('heroicon-o-star')
->iconPosition(IconPosition::After)
// Colors
->color('success') // primary, secondary, success, warning, danger, info, gray
// Size
->size(ActionSize::Large)
// Button style
->button()
->outlined()
->iconButton()
->link()
// Keyboard shortcut
->keyBindings(['mod+s'])
// Extra attributes
->extraAttributes([
'class' => 'my-custom-class',
'data-action' => 'custom',
])
// Badge
->badge(fn () => 5)
->badgeColor('danger')
// Tooltip
->tooltip('Click to perform action');
Notifications with Actions
use Filament\Notifications\Notification;
use Filament\Notifications\Actions\Action;
Notification::make()
->title('Post created successfully')
->success()
->body('Your post has been created.')
->actions([
Action::make('view')
->button()
->url(route('posts.show', $record)),
Action::make('undo')
->color('gray')
->action(fn () => $record->delete()),
])
->send();
Output
Generated actions include:
- Proper action type selection
- Modal configurations
- Form schemas for modal forms
- Authorization checks
- Notifications
- Proper styling and icons
Readme
FilamentPHP Specialist Plugin
Ultra-specialized Claude Code plugin for FilamentPHP v4 development. This plugin provides comprehensive tools for generating resources, forms, tables, actions, widgets, infolists, and tests following official documentation patterns.
Features
- Complete FilamentPHP v4 Documentation: All official documentation is bundled with the plugin for accurate code generation
- Resource Generation: Create complete CRUD resources with forms, tables, relations, and tests
- Form Builder: Generate form schemas with all field types and validation
- Table Configuration: Build tables with columns, filters, and actions
- Action Creation: Generate modal actions, bulk actions, and page actions
- Widget Development: Create stats, charts, table, and custom widgets
- Infolist Builder: Design read-only data displays for view pages
- Test Generation: Comprehensive Pest tests for all components
- Issue Diagnosis: Troubleshoot FilamentPHP issues with documentation reference
Commands
| Command | Description |
|---|---|
/filament-specialist:resource <Model> | Generate a complete resource with form, table, and tests |
/filament-specialist:form <description> | Create a form schema with fields and validation |
/filament-specialist:table <description> | Build a table configuration with columns and filters |
/filament-specialist:action <description> | Generate actions (row, bulk, header, page) |
/filament-specialist:widget <description> | Create dashboard widgets (stats, chart, table, custom) |
/filament-specialist:infolist <description> | Design infolists for view pages |
/filament-specialist:test <Resource> | Generate Pest tests for a resource |
/filament-specialist:diagnose <error> | Diagnose and fix FilamentPHP issues |
/filament-specialist:docs <topic> | Search official documentation |
Usage Examples
Generate a Resource
/filament-specialist:resource Post --generate
Creates:
PostResource.phpwith form and table- List, Create, Edit, View pages
- Relation managers for relationships
- Pest tests for all operations
Create a Form
/filament-specialist:form "product with name, price, description, category, and images"
Generates a complete form schema with:
- TextInput for name
- Numeric input with currency prefix for price
- RichEditor for description
- Select with relationship for category
- FileUpload for images
Build a Table
/filament-specialist:table "orders with customer, items count, total, status badge"
Creates table configuration with:
- Relationship columns
- Aggregate counts
- Money formatting
- Badge colors for status
- Search, sort, and filters
Generate Actions
/filament-specialist:action "send email with subject and body" --modal
Creates an action with:
- Modal form with fields
- Validation
- Action handler
- Success notification
Create Widgets
/filament-specialist:widget "monthly revenue chart" --type chart
Generates:
- ChartWidget with data fetching
- Filter options (week, month, year)
- Styling configuration
Diagnose Issues
/filament-specialist:diagnose "form fields not saving to database"
- Analyzes the issue
- Consults documentation
- Provides solution with code
- Logs to solved-errors.md
Agent
The plugin includes a specialized agent (filament-specialist-agent) that can be used for complex FilamentPHP tasks:
- Autonomous resource creation
- Multi-component implementations
- Issue diagnosis and fixing
- Documentation-driven development
Documentation Structure
All FilamentPHP v4 documentation is stored in:
skills/docs/references/
├── actions/ # Action buttons and modals
├── forms/ # Form field types
├── general/
│ ├── 01-introduction/
│ ├── 03-resources/
│ ├── 06-navigation/
│ ├── 07-users/
│ ├── 08-styling/
│ ├── 09-advanced/
│ ├── 10-testing/
│ ├── 11-plugins/
│ └── 12-components/
├── infolists/ # Info display entries
├── notifications/ # Toast notifications
├── schemas/ # Schema validation
├── tables/
│ ├── 02-columns/
│ └── 03-filters/
└── widgets/ # Dashboard widgets
Skills
The plugin provides specialized skills that can be invoked:
docs- Search and reference documentationresource- Resource generation workflowforms- Form schema creationtables- Table configurationactions- Action generationwidgets- Widget creationinfolists- Infolist designtesting- Test generation
Best Practices
- Documentation-First: Always consults official docs before generating code
- Artisan Integration: Uses
php artisan make:filament-*commands when available - Type Safety: All generated code uses strict types and proper type hints
- Testing: Generates comprehensive Pest tests alongside components
- Error Logging: Logs solved errors to
~/claude-docs/solved-errors.mdfor future reference
Requirements
- Laravel 10+
- FilamentPHP v4
- PHP 8.2+
- Pest (for testing)
Details
- Marketplace
- mwguerra/claude-code-plugins
- Source
- filament-specialist
- Category
- Laravel
- Keywords
- filamentphp, filament, laravel, admin-panel, resources, forms, tables, crud, php, livewire, widgets
- Listed since
- Apr 7, 2026
More from mwguerra/claude-code-plugins
All 18- laravel-filament-package-development-specialistv1.0.0
- obsidian-vaultv1.0.0
- post-developmentv1.0.0
- prd-builderv1.0.0
- reverb-specialistv1.0.0
- secretaryv1.0.0
- taskmanagerv1.0.0
- terminal-specialistv1.0.0
- test-specialistv1.0.0
- article-writerv1.0.0
- boardv1.0.0
- codev1.0.0
- docker-localv1.0.0
- docker-specialistv1.0.0
- docs-specialistv1.0.0
- e2e-test-specialistv2.7.0
- error-memoryv1.0.0
Similar to filament-specialist
More Backend & APIs
filament-resourceSkillmwguerra/claude-code-plugins1.2K installsGenerate FilamentPHP v4 resources with form, table, relation managers, and actions for admin panels.
filament-proSkillmarcelorodrigo/agent-skills1.2K installsDeclarative Laravel admin panel builder with Filament v5 resources, forms, tables, and widgets on Livewire v4.
test-specialistPluginmwguerra/claude-code-plugins36 starsProactive Pest 4 testing for PHP, Laravel, Livewire, and Filament apps. Auto-generates tests for models, controllers, policies, and Livewire components. Analyze
Agent-Native FormsMCP serverbuilderio7.7K starsAgent-Native form builder - create, edit, and manage forms
documentation-generatorPluginccplugins/awesome-claude-code-plugins1K starsCreate comprehensive documentation for code, APIs, and projects.
nextra-writerPluginshipshitdev/library39 starsExpert in creating clear, comprehensive technical documentation with Nextra (Next.js-based docs fram