resource — Claude Code skill for FilamentPHP resources
Generate FilamentPHP v4 resources with forms, tables, pages, and relation managers. Use it when adding model management to a Filament panel.
no license 218 installs ★ 35 updated 2026-04-28
npx skills add mwguerra/claude-code-plugins --skill resource -a claude-codeWhat resource does
The skill builds a FilamentPHP v4 resource around a project model. It gathers the model, field, relationship, action, and authorization requirements, then prepares the form and table structure, resource pages, and relation managers. Decide what the resource should manage first; that information shapes the generated result.
It uses php artisan make:filament-resource with options such as --generate, --soft-deletes, and --simple. A separate Artisan command creates relation managers. The workflow consults Filament references for resources, forms, and tables. Its output includes a resource class, page files, relation managers, and a test at tests/Feature/Filament/ModelResourceTest.php. The project needs Laravel and FilamentPHP v4.
What it helps with
- create a FilamentPHP resource for a model
- define form fields for a resource
- configure table columns, filters, and actions
- manage related records from a resource
- add authorization checks to resource pages
Example prompts for the agent
- Create a FilamentPHP v4 resource for the
Productmodel with a form, table, and pages. - Add a relation manager for comments and tags to the
Postresource. - Configure the orders table with name search, date sorting, and a status filter.
How to install resource
1Skills CLI (Vercel)
npx skills add mwguerra/claude-code-plugins --skill resource -a claude-code2Manually: put the files in place
~/.claude/skills/resource/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/resource/
1Skills CLI (Vercel)
npx skills add mwguerra/claude-code-plugins --skill resource -a codex2Manually: put the files in place
.agents/skills/resource/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mwguerra/claude-code-plugins --skill resource -a cursor2Manually: put the files in place
.cursor/skills/resource/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mwguerra/claude-code-plugins filament-specialist/skills/resource2Manually: put the files in place
.github/skills/resource/SKILL.md1Skills CLI (Vercel)
npx skills add mwguerra/claude-code-plugins --skill resource -a gemini-cli2Platform CLI
gemini skills install https://github.com/mwguerra/claude-code-plugins --path filament-specialist/skills/resourceManually: put the files in place
.devin/skills/resource/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add mwguerra/claude-code-plugins --skill resource -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about resource
How do I install resource in Claude Code?
Run npx skills add mwguerra/claude-code-plugins --skill resource -a claude-code. The skill file is at ~/.claude/skills/resource/SKILL.md.
What does the resource skill do?
It generates FilamentPHP v4 resources with forms, tables, pages, and relation managers. The workflow also covers actions and authorization.
What files does resource generate?
It produces a resource class, page files, relation managers, and a test at tests/Feature/Filament/ModelResourceTest.php.