filament-actions

filament-actions is a skill for Claude Code, Codex from leek/filament-agent-rules. It costs 50 tokens per session (767 once invoked), scanned A, original, MIT.

An action-building guide for Filament, a Laravel toolkit for building admin panels. It covers buttons and operations in pages, tables, bulk selections, modals, imports, exports, and notifications.

In plain words
What is it for?
Use it when adding or reviewing page actions, table actions, bulk actions, modal workflows, import or export actions, and action authorization.
Why use it?
It helps state-changing operations handle confirmation, validation, permissions, success messages, and failure messages consistently.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents).

Good fit Use it when adding or reviewing page actions, table actions, bulk actions, modal workflows, import or export actions, and action authorization.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leek/filament-agent-rules/filament-actions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add leek/filament-agent-rules --skill filament-actions
Clone the repo
git clone --depth 1 https://github.com/leek/filament-agent-rules

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for filament-actions

README.md
[![agentmods](https://agentmods.dev/badge/skills/leek/filament-agent-rules/filament-actions/github.svg)](https://agentmods.dev/skills/leek/filament-agent-rules/filament-actions)
Your own site
<a href="https://agentmods.dev/skills/leek/filament-agent-rules/filament-actions"><img src="https://agentmods.dev/badge/skills/leek/filament-agent-rules/filament-actions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for filament-actions

Your own site · 80×15
<a href="https://agentmods.dev/skills/leek/filament-agent-rules/filament-actions"><img src="https://agentmods.dev/badge/skills/leek/filament-agent-rules/filament-actions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 767 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.00767
Opus 5 $0.00025 $0.00383
Sonnet 5 $0.00010 $0.00153
Haiku 4.5 $0.00005 $0.00077

Measured 10d ago against content hash daf74b1d27f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

filament-actions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/filament-actions/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Filament Action Workflow

Use this skill for UI actions rendered by Filament. Do not confuse these with domain actions under app/Actions/; a Filament action should call domain logic, not contain it.

Read First

Resolve paths from the current project root:

  1. app/Filament/CLAUDE.md
  2. app/Filament/Actions/CLAUDE.md
  3. app/Filament/Resources/Tables/CLAUDE.md for table actions
  4. app/Filament/Resources/Schemas/CLAUDE.md for modal schemas
  5. tests/Feature/Filament/CLAUDE.md when tests are expected

Check global action defaults in service providers before adding modal, color, slide-over, icon, or confirmation settings locally.

Build Flow

  1. Identify the action surface:
    • page header action
    • table header action
    • table record action
    • toolbar or bulk action
    • schema action
    • notification action
  2. Use Filament\Actions\* imports.
  3. Use schema([...]) or steps([...]) for action modal input.
  4. Add requiresConfirmation() for destructive or irreversible actions.
  5. Set visibility and authorization from policies or explicit abilities.
  6. Delegate non-trivial work to an app-level action/service.
  7. Add success and failure notifications for work that changes state or can fail.
  8. Chunk or queue bulk work that can touch many records.
  9. Extract the action class only when it is reused or too large inline.

Review Checklist

  • The action has the right scope for the data it needs.
  • The UI does not show unauthorized actions.
  • Modal input is validated by the schema.
  • Bulk actions are authorized and do not process huge selections in one request.
  • Tests call the action and cover validation/error paths where meaningful.

Deep Pattern: Reuse Across Surfaces

An extracted Action can be reused on page headers, table rows, and relation manager headers when its setup does not assume a record exists. Keep bulk behavior in a separate BulkAction class.

protected function getHeaderActions(): array
{
    return [
        EmailCustomerAction::make(),
    ];
}

$table->recordActions([
    EmailCustomerAction::make(),
]);

$table->toolbarActions([
    BulkActionGroup::make([
        EmailCustomersBulkAction::make(),
    ]),
]);

Read the full file on GitHub · 110 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 110 lines · 50 tokens per session scan A daf74b1d27f6

Subscribe to this mod's changes

filament-actions is a skill published in the GitHub repository leek/filament-agent-rules (4 stars, last pushed 1mo ago), licensed MIT. It adds 50 tokens to every session and 767 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.