mcpField
L
laravel-filament

laravel-filament

github.com/ulpi-ioDevelopment5444 installsUpdated 9w ago
Repository

About laravel-filament

laravel-filament is a skill for implementing Filament admin tasks using v5 conventions. It directs coding agents to the relevant references, current APIs, and focused verification while keeping business logic outside Resources.

Key features

  1. 01Enforces Filament v5 conventions
  2. 02Loads only task-relevant references
  3. 03Guidance for resources, forms, and tables
  4. 04Keeps business logic outside Resources
  5. 05Recommends focused tests and checks

Use cases

  1. 01Create or update Filament CRUD resources
  2. 02Build forms, tables, actions, or filters
  3. 03Verify admin pages and resource changes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ulpi-io/skills --skill laravel-filament

After installing, type/laravel-filamentin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
actions.md
filters.md
forms.md
infolists.md
namespaces.md
notifications.md
panels.md
relationships.md
resources.md
tables.md
testing.md
widgets.md

Details

From the project README
This skill exists to keep Filament work aligned with v5, not to duplicate the entire reference library.

Non-negotiable rules:

  1. Read references/namespaces.md first.
  2. Then load only the reference files the task actually needs.
  3. Keep business logic out of Resources.
  4. Use the v5 action and table APIs, not old v3 patterns.
  5. Keep the heavy Filament cookbook in references/, not inline here.

laravel-filament

Inputs

  • $request: The Filament admin task or component to modify

Goal

Route Filament work through the correct v5 conventions so the implementation uses the right namespaces, table APIs, and admin-panel composition patterns.

Step 0: Read the v5 namespace contract

Always start with:

  • references/namespaces.md

That establishes the namespace and API changes that commonly break Filament work.

Success criteria: The task is grounded in the correct Filament v5 surface before editing.

Step 1: Load only the relevant admin references

Use the routing table to pick reference files. Do not bulk-load everything.

TaskRead
v5 namespace and API changesreferences/namespaces.md
Creating or editing a Resource (CRUD)references/resources.md
Form fields, sections, layoutreferences/forms.md
Table columns, sorting, searchingreferences/tables.md
Bulk actions, row actions, header actionsreferences/actions.md
Table filters, filter formsreferences/filters.md
Relation managers, BelongsToMany, HasManyreferences/relationships.md
Dashboard widgets, stats, chartsreferences/widgets.md
Multi-panel setup, navigation, tenancyreferences/panels.md
Flash messages, database notificationsreferences/notifications.md
Infolist entries, read-only viewsreferences/infolists.md
Testing resources, pages, actionsreferences/testing.md

Multiple tasks? Read multiple files.

Success criteria: Only the task-relevant Filament conventions are in the active context.

Step 2: Implement with the core Filament guardrails

Keep these rules active:

  • actions come from Filament\\Actions\\*
  • tables use the v5 record/toolbar/header action methods
  • badge presentation uses TextColumn->badge()
  • layout components come from the Schemas package
  • Resource classes delegate real business work to application Actions

Success criteria: The change uses valid v5 APIs and stays maintainable.

Step 3: Verify the admin surface

Use the narrowest relevant verification:

  • focused feature tests
  • Filament page/resource tests
  • lightweight UI smoke coverage if the repo already has it

Success criteria: The Filament surface still behaves correctly after the change.

Guardrails

  • Do not inline the whole Filament handbook in SKILL.md.
  • Do not skip references/namespaces.md.
  • Do not use v3 action namespaces or deprecated table methods.
  • Do not put business logic directly in Resource classes.

When To Load References

  • references/namespaces.md Always.

  • then only the task-relevant files under references/

Output Contract

Report:

  1. which Filament references were loaded
  2. the v5 pattern applied
  3. the change made
  4. the verification run

Comments

Markdown supported