
Filament Resource
Spin up complete FilamentPHP v4 admin resources from an Eloquent model with forms, tables, relations, and actions aligned to official docs.
Overview
Filament-resource is an agent skill for the Build phase that generates FilamentPHP v4 resources with forms, tables, relation managers, and actions from your model requirements.
Install
npx skills add https://github.com/mwguerra/claude-code-plugins --skill filament-resourceWhat is this skill?
- Workflow: gather model/fields/relationships, then artisan `make:filament-resource` with flags (--generate, --soft-delete
- Requires reading bundled filament-docs references for resources, forms, and tables before generating code
- Covers form schemas, table columns, relation managers, custom pages, and custom actions
- Output follows Filament v4 documentation patterns rather than ad-hoc panel code
- 4-step workflow (gather requirements through generate base resource)
- 3 documentation reference areas: resources, forms, tables
Adoption & trust: 1.2k installs on skills.sh; 32 GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You have Laravel models but no consistent, doc-aligned Filament v4 admin resources and keep rewriting form/table boilerplate by hand.
Who is it for?
Solo builders adding or extending a Filament v4 admin on an existing Laravel app who want doc-checked resource scaffolding in one session.
Skip if: Greenfield apps with no models yet, non-PHP stacks, or teams that want a one-shot deploy without reading Filament docs paths the skill mandates.
When should I use this skill?
Generate FilamentPHP v4 resources with form, table, relation managers, and actions.
What do I get? / Deliverables
You get artisan-scaffolded Filament resources and follow-on schema/table/relation code structured to match official Filament v4 documentation references.
- Filament Resource class and related form/table configuration
- Relation managers and optional custom pages/actions as specified
Recommended Skills
Journey fit
Admin CRUD surfaces are built after the Laravel model layer exists—this skill accelerates the backend/admin slice of the product. Filament resources are server-side panel configuration tied to models, not marketing or deploy work.
How it compares
Use instead of pasting generic Laravel admin tutorials that may target older Filament versions.
Common Questions / FAQ
Who is filament-resource for?
Laravel developers using FilamentPHP v4 who want an agent-guided workflow to create resources, forms, tables, and relation managers from model-centric requirements.
When should I use filament-resource?
During Build when you are implementing admin CRUD for new or existing Eloquent models and need Filament v4 patterns for forms, tables, soft deletes, view pages, or relation managers.
Is filament-resource safe to install?
Review the Security Audits panel on this Prism page before installing; the skill expects shell access for artisan and reads project documentation paths on disk.
SKILL.md
READMESKILL.md - Filament Resource
# FilamentPHP Resource Generation Skill ## Overview This skill generates complete FilamentPHP v4 resources including form schemas, table configurations, relation managers, and custom pages. All generated code follows official documentation patterns. ## Documentation Reference **CRITICAL:** Before generating any resource, read: - `/home/mwguerra/projects/mwguerra/claude-code-plugins/filament-specialist/skills/filament-docs/references/general/03-resources/` - `/home/mwguerra/projects/mwguerra/claude-code-plugins/filament-specialist/skills/filament-docs/references/forms/` - `/home/mwguerra/projects/mwguerra/claude-code-plugins/filament-specialist/skills/filament-docs/references/tables/` ## Workflow ### Step 1: Gather Requirements Identify: - Model name and namespace - Fields to include in form - Columns to display in table - Relationships to manage - Custom actions needed - Authorization requirements ### Step 2: Generate Base Resource Use Laravel artisan to create the resource: ```bash # Basic resource php artisan make:filament-resource ModelName # With generate flag (creates form/table from model) php artisan make:filament-resource ModelName --generate # Soft deletes support php artisan make:filament-resource ModelName --soft-deletes # View page only php artisan make:filament-resource ModelName --view # Simple resource (modal forms instead of pages) php artisan make:filament-resource ModelName --simple ``` ### Step 3: Customize Form Schema Read form field documentation and implement: ```php use Filament\Forms; use Filament\Forms\Form; public static function form(Form $form): Form { return $form ->schema([ Forms\Components\Section::make('Basic Information') ->schema([ Forms\Components\TextInput::make('name') ->required() ->maxLength(255), Forms\Components\Textarea::make('description') ->rows(3) ->columnSpanFull(), ]), Forms\Components\Section::make('Settings') ->schema([ Forms\Components\Toggle::make('is_active') ->default(true), Forms\Components\Select::make('status') ->options([ 'draft' => 'Draft', 'published' => 'Published', ]), ]), ]); } ``` ### Step 4: Customize Table Read table documentation and implement: ```php use Filament\Tables; use Filament\Tables\Table; public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('name') ->searchable() ->sortable(), Tables\Columns\IconColumn::make('is_active') ->boolean(), Tables\Columns\BadgeColumn::make('status') ->colors([ 'warning' => 'draft', 'success' => 'published', ]), Tables\Columns\TextColumn::make('created_at') ->dateTime() ->sortable() ->toggleable(isToggledHiddenByDefault: true), ]) ->filters([ Tables\Filters\SelectFilter::make('status') ->options([ 'draft' => 'Draft', 'published' => 'Published', ]), Tables\Filters\TernaryFilter::make('is_active'), ]) ->actions([ Tables\Actions\ViewAction::make(), Tables\Actions\EditAction::make(), Tables\Actions\DeleteAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\Del