filament-testing

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

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.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.svg" alt="Measured on agentmods" 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 625 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.00625
Opus 5 $0.00023 $0.00313
Sonnet 5 $0.00009 $0.00125
Haiku 4.5 $0.00005 $0.00063

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

How it starts

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

Filament Testing Workflow

Use this skill for focused Pest + Livewire feature coverage of Filament admin surfaces.

Read First

Resolve paths from the current project root:

  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

Common Filament Livewire helpers:

Helper Use
callAction('name') header/footer action
callAction('name', data: [...]) action with modal form state
callTableAction('name', $record) row action
callTableBulkAction('name', $records) bulk action
assertActionVisible('name') / assertActionHidden('name') action visibility
assertHasNoActionErrors() / assertHasActionErrors([...]) action modal validation
assertFormSet([...]) hydrated form state

Read the full file on GitHub · 67 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. 7d 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 28d ago), licensed MIT. It adds 45 tokens to every session and 625 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

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens

writing-tests

Write unit tests, component tests, and integration tests for AiderDesk using Vitest and React Testing Library. Use when creating new tests, adding test coverage, configuring mocks, setting up test files, or debugging failing tests.

hotovo/aider-desk · 48 tokens

unity-agent-workflows

Use for AI-assisted Unity work that needs live repo discovery, project-derived routing, runtime-owner proof, runtime-visible output hard stops, runtime numeric proof for repeated visible-output failures, state-step guards, multi-agent scope ownership, modular C#/asmdef safety, UI/scene/visual asset gates, data-first…

hashgraph-online/awesome-codex-plugins · 146 tokens

laravel-tdd

Test-driven development for Laravel with PHPUnit and Pest, factories, database testing, fakes, and coverage targets.

hashgraph-online/awesome-codex-plugins · 27 tokens

browser-qa

A browser-based quality check for deployed web pages and user flows. It uses browser automation to test rendering, navigation, forms, interactions, responsive behaviour, and accessibility-related issues.

hashgraph-online/awesome-codex-plugins · 58 tokens

eval-harness

An evaluation framework for AI-assisted development that defines pass/fail criteria, measures pass@k reliability, and runs regression checks. Eval-driven development means testing an agent's expected behavior before and after changes, much like tests for software.

hashgraph-online/awesome-codex-plugins · 43 tokens