# resource

Generate FilamentPHP v4 resources with forms, tables, pages, and relation managers. Use it when adding model management to a Filament panel.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 218 installs · ★ 35 repo stars
- Author: mwguerra
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mwguerra/claude-code-plugins/tree/HEAD/filament-specialist/skills/resource/SKILL.md
- Updated: 2026-04-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/resource

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mwguerra/claude-code-plugins --skill resource -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/resource/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/resource/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mwguerra/claude-code-plugins --skill resource -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/resource/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mwguerra/claude-code-plugins --skill resource -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/resource/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mwguerra/claude-code-plugins filament-specialist/skills/resource
```

2. **Manually: put the files in place**
- File: `.github/skills/resource/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mwguerra/claude-code-plugins --skill resource -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mwguerra/claude-code-plugins --path filament-specialist/skills/resource
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/resource/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add mwguerra/claude-code-plugins --skill resource -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/mwguerra/claude-code-plugins/tree/HEAD/filament-specialist/skills/resource/SKILL.md

## When to use it
- 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
- Create a FilamentPHP v4 resource for the `Product` model with a form, table, and pages.
- Add a relation manager for comments and tags to the `Post` resource.
- Configure the orders table with name search, date sorting, and a status filter.

## Similar
- [laravel-specialist](https://affpapa.org/en/nevibecode/skills/laravel-specialist.md) — skill · 24200 installs
- [php-pro](https://affpapa.org/en/nevibecode/skills/httpsgithubcomjeffallan-php-pro.md) — skill · 16400 installs
- [laravel-tdd](https://affpapa.org/en/nevibecode/skills/laravel-tdd.md) — skill · 6800 installs
- [laravel-verification](https://affpapa.org/en/nevibecode/skills/laravel-verification.md) — skill · 6400 installs
- [filament-pro](https://affpapa.org/en/nevibecode/skills/filament-pro.md) — skill · 1200 installs
- [laravel-testing](https://affpapa.org/en/nevibecode/skills/laravel-testing.md) — skill · 1000 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
