filament-5-resources
Helper for building and maintaining Filament 5.x resources, forms, and tables.
Install
mkdir -p .claude/skills/filament-5-resources && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17994" && unzip -o skill.zip -d .claude/skills/filament-5-resources && rm skill.zipInstalls to .claude/skills/filament-5-resources
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when: working with Filament 5 Resources, Resource classes, make:filament-resource, simple resources, form(), infolist(), table(), getPages(), resource pages, ViewRecord pages, page routes, ListRecords, CreateRecord, EditRecord, ViewRecord, relation managers, relation pages, getRelations(), getRecordSubNavigation(), navigation icons, groups, parent items, sort order, badges, labels, plural model labels, slugs, getUrl(), global search record titles, authorization policies, deleting records, and soft deletes. Requires Context7 Filament 5.x docs before adding details.Key capabilities
- →Create Filament 5 Resources for Eloquent models.
- →Implement form, infolist, and table schemas for Resources.
- →Configure Resource pages and record sub-navigation.
- →Manage relationships using relation managers or relation pages.
- →Set up authorization policies and soft deletes for Resources.
How it works
The skill uses documented Filament 5.x patterns and commands to generate, review, or explain Resource components. It ensures that all generated code and guidance align with the official documentation.
Inputs & outputs
When to use filament-5-resources
- →Create new Resource classes
- →Implement form, table, or infolist schemas
- →Configure navigation or authorization policies
About this skill
Filament 5 Resources
Purpose
Use this skill to create, review, or explain Filament 5 Resources using only details confirmed in the Filament 5.x documentation from Context7.
Source Rule
- Before giving final code or guidance, query Context7 for
/websites/filamentphp_5_xwith the exact Resources topic. - Do not add behavior, APIs, options, namespaces, commands, properties, or conventions unless they appear in the retrieved documentation.
- If a requested Resources topic is not confirmed by the retrieved docs, say that the current documentation context did not confirm it and either run a narrower Context7 lookup or leave the topic out.
- Split broad Resource tasks into reference-backed sections instead of guessing or compressing undocumented details.
- Keep examples close to documented snippets and preserve documented method names, namespaces, route strings, and class names.
Reference Map
- Resource generation, simple resources, generated structure, Resource form/table/infolist delegation, custom slugs, and URLs: resource-setup.md
- Resource pages,
getPages(), page routes, and record sub-navigation: pages-navigation.md - Relation managers, relation pages, labels, and global search record titles: relationships-search.md
- Authorization policies, deleting records, and soft-delete Resource setup: authorization-soft-deletes.md
Workflow
- Identify the Resource task: generating a Resource, customizing navigation or labels, defining page routes, adding record sub-navigation, managing relationships, generating URLs, or reviewing existing Resource code.
- Run a narrow Context7 query for the exact Resources topic before producing code.
- Load the relevant reference file from the map above.
- Use only documented Resource entry points confirmed for the task:
php artisan make:filament-resource Customer,--simple,--soft-deletes,php artisan make:filament-page ViewUser --resource=UserResource --type=ViewRecord,form(),infolist(),table(),getUrl(),getPages(),route(),getRelations(),getRecordSubNavigation(),getRecordRouteBindingEloquentQuery(),$slug,$navigationIcon,$navigationLabel,$navigationParentItem,$navigationGroup,$navigationSort,getNavigationBadge(),getNavigationBadgeColor(),$navigationBadgeTooltip,getNavigationBadgeTooltip(),$shouldRegisterNavigation,shouldRegisterNavigation(),$pluralModelLabel, and$recordTitleAttribute. - For Resource schema or table internals, use this skill only for the Resource integration point and load the Filament 5 Schemas or Filament 5 Tables skill for the schema/table details.
- For relationships, choose between a relation manager and a relation page only when the current lookup confirms the requested pattern.
- For navigation and labels, add only documented static properties or methods confirmed by the current lookup.
- Finish by checking that every command, class, method, property, import, and route pattern in the answer is present in the Context7 result used for the task.
Confirmed Core Patterns
- The docs confirm
php artisan make:filament-resource Customerfor creating a Resource for an Eloquent model. - The docs confirm
php artisan make:filament-resource Customer --simplefor a simple Resource that manages records with modals on a single page. - The docs state that creating a Resource generates several files, including the main Resource class, Create/Edit/List pages, schemas for forms and infolists, and tables for data display.
- The docs confirm Resource
form(Schema $schema): Schema,infolist(Schema $schema): Schema, andtable(Table $table): Tablemethods delegating to dedicated schema/table configuration classes. - The docs confirm
php artisan make:filament-page ViewUser --resource=UserResource --type=ViewRecordfor adding a View page to an existing Resource, followed by registering the page ingetPages(). - The docs confirm
CustomerResource::getUrl()for generating the Resource List page URL. - The docs confirm
protected static ?string $slug = 'pending-orders';for customizing a Resource URL slug. - The docs confirm
getPages()route registration withPages\ListCustomers::route('/'),Pages\CreateCustomer::route('/create'),Pages\ViewCustomer::route('/{record}'), andPages\EditCustomer::route('/{record}/edit'). - The docs confirm
getRelations()with relation manager classes. - The docs confirm relation pages registered in
getPages(), including a route such as/{record}/addresses. - The docs state that when using a relation page, a separate relation manager does not need to be generated or registered.
- The docs confirm
getRecordSubNavigation(Page $page): arrayand$page->generateNavigationItems([...])for record sub-navigation. - The docs confirm
$navigationIcon,$navigationLabel,$navigationParentItem,$navigationGroup,$navigationSort, navigation badges, navigation badge color, navigation badge tooltip, and hiding Resources from navigation. - The docs confirm
$pluralModelLabeland$recordTitleAttributestatic properties. - The docs confirm Resource authorization through Laravel model policies for listing, editing, deleting, reordering, force-deleting, and restoring records.
- The docs confirm
php artisan make:filament-resource Customer --soft-deletes,TrashedFilter, delete/force-delete/restore actions, related bulk actions, andgetRecordRouteBindingEloquentQuery()withSoftDeletingScoperemoval for soft-delete Resources.
Completion Check
- The answer uses only APIs and examples confirmed by the current Context7 lookup.
- Each command, class, method, property, import, route pattern, and option is traceable to the retrieved Filament 5.x docs.
- Unconfirmed topics are not inferred from Filament 4.x, older examples, memory, or general Laravel knowledge.
- If the user asks for a Resource topic not present in the Context7 result, run a narrower lookup or explicitly leave it out.
- Code examples keep documented namespaces, method names, static properties, and route strings intact.
When not to use it
- →When not working with Filament 5 Resources.
- →When the task involves Filament 4.x or older versions.
- →When the requested topic is not confirmed by the retrieved documentation.
Limitations
- →The skill only uses details confirmed in the Filament 5.x documentation.
- →It does not add behavior, APIs, or options unless they appear in the retrieved documentation.
- →Unconfirmed topics are not inferred from older examples or general Laravel knowledge.
How it compares
This skill strictly adheres to Filament 5.x documentation for Resource creation and configuration, preventing the use of outdated or unconfirmed patterns, which differs from relying on general Laravel knowledge or older Filament versions.
Compared to similar skills
filament-5-resources side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| filament-5-resources (this skill) | 0 | 3mo | No flags | Intermediate |
| pennant-development | 2 | 4mo | No flags | Intermediate |
| extending-shopper | 1 | 3mo | No flags | Intermediate |
| controller | 1 | 6mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by kooda-ai
View all by kooda-ai →You might also like
pennant-development
laravel
Manages feature flags with Laravel Pennant. Activates when creating, checking, or toggling feature flags; showing or hiding features conditionally; implementing A/B testing; working with @feature directive; or when the user mentions feature flags, feature toggles, Pennant, conditional features, rollouts, or gradually enabling features.
extending-shopper
shopperlabs
Provides patterns for extending Laravel Shopper with custom sidebar items, component overrides, event listeners, and domain features like stock, pricing, and media. Use when customizing Shopper behavior.
controller
JaguarJack
Generate CRUD controller for CatchAdmin module.
laravel-pdf
spatie
Generate PDFs from Blade views or HTML using spatie/laravel-pdf. Covers creating, formatting, saving, downloading, and testing PDFs with the Browsershot, Cloudflare, or DOMPDF driver.
laravel-specialist
Jeffallan
Use when building Laravel 10+ applications requiring Eloquent ORM, API resources, or queue systems. Invoke for Laravel models, Livewire components, Sanctum authentication, Horizon queues.
developing-shopper
shopperlabs
Provides coding standards and patterns for Laravel Shopper development. Use when creating or modifying Models, Actions, Enums, Livewire components, migrations, or tests in any Shopper package.