filament-resource

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

A guide for building Filament resources, which are admin-panel screens connected to application data. It covers their pages, forms, tables, relationships, navigation, search, permissions, and tests.

In plain words
What is it for?
Use it when creating, editing, reviewing, or debugging complete Filament resources and the related screens and behaviors.
Why use it?
It helps keep all parts of an admin resource consistent with the application’s data model, rules, and existing project structure.

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); mentions AGENTS.md.

Good fit Use it when creating, editing, reviewing, or debugging complete Filament resources and the related screens and behaviors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leek/filament-agent-rules/filament-resource
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-resource
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-resource

README.md
[![agentmods](https://agentmods.dev/badge/skills/leek/filament-agent-rules/filament-resource/github.svg)](https://agentmods.dev/skills/leek/filament-agent-rules/filament-resource)
Your own site
<a href="https://agentmods.dev/skills/leek/filament-agent-rules/filament-resource"><img src="https://agentmods.dev/badge/skills/leek/filament-agent-rules/filament-resource/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-resource

Your own site · 80×15
<a href="https://agentmods.dev/skills/leek/filament-agent-rules/filament-resource"><img src="https://agentmods.dev/badge/skills/leek/filament-agent-rules/filament-resource.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 596 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.00046 $0.00596
Opus 5.5 $0.00018 $0.00238
Sonnet 5.5 $0.00009 $0.00119
Haiku 4.5 $0.00005 $0.00060

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

Security

Grade A, and why

filament-resource 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 19d 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-resource/SKILL.md · 57 lines

How it starts

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

Filament Resource Workflow

For complete resource work. A resource change usually touches the resource class plus extracted schema, table, page, relation, action, and test files.

Read First

Resolve paths from the current project root. Where the rules were installed for another agent, the same paths end in AGENTS.md, GEMINI.md, .cursorrules, .windsurfrules or .clinerules instead of CLAUDE.md:

  1. app/Filament/CLAUDE.md
  2. app/Filament/Resources/CLAUDE.md
  3. app/Providers/Filament/CLAUDE.md
  4. Whichever resource surface applies:
    • app/Filament/Resources/Schemas/CLAUDE.md
    • app/Filament/Resources/Tables/CLAUDE.md
    • app/Filament/Resources/Pages/CLAUDE.md
    • app/Filament/Resources/RelationManagers/CLAUDE.md
    • app/Filament/Actions/CLAUDE.md
    • tests/Feature/Filament/CLAUDE.md

Before generating code, inspect the target model, casts, relationships, database columns, policies, existing resource conventions, and panel discovery paths.

Build Flow

  1. Use the project's existing resource layout and artisan generators when available.
  2. Keep the resource class thin. Extract forms to Schemas/, tables to Tables/, and page behavior to Pages/.
  3. Bind the model, record title, navigation metadata, global search behavior, Eloquent query customization, and policy-backed authorization explicitly.
  4. Build forms and infolists as schema component trees. Use fields for input, entries for read-only display, and layout/prime components for structure.
  5. Build tables with indexed searchable/sortable columns, eager-loaded relations, filters, record actions, toolbar actions, and persisted user state when appropriate.
  6. Delegate non-trivial UI action work to app-level business actions.
  7. Add focused Pest + Livewire tests for page rendering, create/edit flows, table behavior, actions, authorization, and relation managers when touched.

Review Checklist

  • The class is inside the panel's discovered namespace.
  • Required model fields are represented and validated in the form.
  • Privileged attributes are not editable unless explicitly intended.
  • Dot-notation table columns have eager loading or a safe query strategy.
  • Bulk and inline-edit actions are authorized.
  • Tests authenticate a user that can access the panel.

Read the full file on GitHub · 57 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. 19d ago Changed f9761b1f7255
  2. 3mo ago First seen · 57 lines · 46 tokens per session scan A df247bd53831

Subscribe to this mod's changes

filament-resource is a skill published in the GitHub repository leek/filament-agent-rules (4 stars, last pushed 18d ago), licensed MIT. It adds 46 tokens to every session and 596 once invoked, about $0.0002 per session on Opus 5.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.

Related

filament-resource compared with skills from other repositories

filament-resource next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
filament-resourceleek/filament-agent-rulesSkill418d agoMITA46Claude Code, Codex
build-teaql-appteaql/teaql-agent-kitSkill2.8k23d agoMITA112Codex
firebaseericrisco/rsc-harnessSkill707yesterdayMITA77Claude Code, Codex
nodejsericrisco/rsc-harnessSkill707yesterdayMITA77Claude Code, Codex
om-system-extensionopen-mercato/open-mercatoSkill2.0ktodayMITA73Claude Code, Codex
backend-builderhashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A43Claude Code, Codex
api-contracthashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A44Codex