filament-resource

filament-resource is a skill for Claude Code, Codex from leek/filament-agent-rules. It costs 46 tokens per session (559 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).

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 559 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.00559
Opus 5 $0.00023 $0.00280
Sonnet 5 $0.00009 $0.00112
Haiku 4.5 $0.00005 $0.00056

Measured 9d ago against content hash df247bd53831, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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

Use this skill 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, using the active agent filename where installed:

  1. app/Filament/CLAUDE.md
  2. app/Filament/Resources/CLAUDE.md
  3. app/Providers/Filament/CLAUDE.md
  4. Then read 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 they are 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. 9d 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 1mo ago), licensed MIT. It adds 46 tokens to every session and 559 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

django-tdd

Django testing strategies with pytest-django, TDD methodology, factoryboy, mocking, coverage, and testing Django REST Framework APIs.

loulanyue/awesome-claude-notes · 32 tokens

springboot-tdd

Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.

loulanyue/awesome-claude-notes · 42 tokens

ring:running-dev-cycle

Running the backend dev cycle: implements every task in a rolling-wave plan.md (ring:writing-plans format) for a Go/TS service, driving specialist agents through Gate 0 implementation/TDD, Gate 8 parallel review, and Gate 9 validation per epic, elaborating later phases at each phase boundary. Use when starting or…

LerianStudio/ring · 122 tokens

ring:instrumenting-streaming-events

Instrumenting streaming events: wires lib-streaming event emission end-to-end into a Lerian Go service via a 13-gate cycle (catalog, Builder bootstrap, Emit sites, outbox, HTTP manifest, NoopEmitter fallback, integration and chaos tests), dispatching ring:backend-go under TDD. Consumes the validated…

LerianStudio/ring · 102 tokens

csharp-dotnet

Use when writing, reviewing, testing, or shipping C# / .NET code — ASP.NET Core APIs (minimal APIs vs controllers), EF Core data access, async correctness, solution layout in .cs/.csproj/.sln. NOT a Java/Spring backend (that is spring-boot), NOT a Node/TypeScript backend (that is nestjs), NOT framework-neutral REST…

ericrisco/rsc-harness · 89 tokens

nestjs

Use when building or structuring a NestJS backend — feature modules, providers and DI wiring, provider scopes and request-lifecycle order, where to bind guards/pipes/interceptors/filters, and testing with Test.createTestingModule. NOT a bare Express/Fastify service with no DI (that is nodejs), NOT framework-agnostic…

ericrisco/rsc-harness · 81 tokens