filament-testing

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

A testing guide for Filament, a Laravel toolkit for building admin panels, using Pest and Livewire. It covers tests for resources, forms, tables, actions, widgets, and access rules.

In plain words
What is it for?
Use it when writing or reviewing tests for Filament pages, forms, tables, actions, relation managers, widgets, and authorization.
Why use it?
It helps catch broken admin-panel behavior and permission problems before they reach users. It also provides a consistent way to inspect the project’s existing testing rules and patterns.

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 writing or reviewing tests for Filament pages, forms, tables, actions, relation managers, widgets, and authorization.

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

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

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

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

Security

Grade A, and why

filament-testing 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-testing/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 Testing Workflow

For focused Pest + Livewire feature coverage of Filament admin surfaces.

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. tests/Feature/Filament/CLAUDE.md
  2. app/Filament/CLAUDE.md
  3. The rule file for the surface under test:
    • app/Filament/Resources/CLAUDE.md
    • app/Filament/Resources/Schemas/CLAUDE.md
    • app/Filament/Resources/Tables/CLAUDE.md
    • app/Filament/Actions/CLAUDE.md
    • app/Filament/Widgets/CLAUDE.md
    • app/Filament/Resources/RelationManagers/CLAUDE.md

Inspect existing test style, factories, panel access rules, policies, and database refresh conventions before adding tests.

Build Flow

  1. Authenticate a user that passes the panel access check in setup.
  2. Add the lowest-cost render test for every page, relation manager, or widget touched.
  3. For forms, test create/edit success, required validation, unique rules with current-record ignore behavior, relationship fields, and conditional state.
  4. For tables, test visible records, search, sort, filters, important columns, dot-notation rendering, row actions, and bulk actions.
  5. For actions, test success, validation failures, visibility/authorization, redirects/downloads, and resulting database state.
  6. For authorization, test both allowed and forbidden users when the behavior is security relevant.
  7. Keep tests targeted. Do not snapshot whole rendered pages.

Review Checklist

  • Successful saves assert no form/action errors.
  • Factories create all related data needed by fields, filters, and columns.
  • Assertions check database state after mutations.
  • Tests cover the regression risk introduced by the change, not unrelated framework behavior.

Helper reference

Read tests/Feature/Filament/CLAUDE.md for action helper signatures, validation assertions, and deferred-filter examples. Use helpers supported by the project's installed Filament version and assert persisted outcomes.

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 · +1 lines c24678fe5f80
  2. 2mo ago Changed · -11 lines b1ac552ec8d7
  3. 3mo ago First seen · 67 lines · 45 tokens per session scan A b4f93cf993ae

Subscribe to this mod's changes

filament-testing is a skill published in the GitHub repository leek/filament-agent-rules (4 stars, last pushed 18d ago), licensed MIT. It adds 45 tokens to every session and 553 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-testing compared with skills from other repositories

filament-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
filament-testingleek/filament-agent-rulesSkill418d agoMITA45Claude Code, Codex
refocusingmvschwarz/openrigSkill9.0ktodayApache-2.0A59Claude Code
rulesyncdyoshikawa/rulesyncSkill1.7ktodayMITA64Claude Code, Codex
establishing-project-contextGanyuanRan/AegisSkill1.5kyesterdayMITA45Claude Code
gitnexushashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A58Codex
animateericrisco/rsc-harnessSkill707yesterdayMITA75Claude Code, Codex
gamedev-shadersericrisco/rsc-harnessSkill707yesterdayMITA102Claude Code, Codex