一键导入
filament-resource-testing
Defines how Filament UI resources are tested using Livewire
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Defines how Filament UI resources are tested using Livewire
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Ensures correct execution order of migrations, seeders, and tests in CI
Defines DTO structure, lifecycle, and transformation rules across the application
Handles Filament multi-tenancy: tenant scoping, TenantAware trait, observer behaviour, isScopedToTenant, and tenant switching. Activates when adding tenant-aware models, fixing company_id scoping, working with Filament::getTenant, debugging tenant isolation, or when the user mentions company scope, tenant, multi-tenancy, or company_id.
Configures Filament panel providers. Activates when adding a new panel, registering module resources in a panel, configuring tenant middleware, adjusting auth or theme settings, or when the user mentions PanelProvider, viteTheme, discoverResources, or panel configuration.
Defines the Filament v4 resource page structure used in this project: Resource + Pages + Schemas + Tables split, action patterns, and BaseResource conventions.
Creates and modifies code inside a modular Laravel structure. Targets internachi/modular (modules as real Composer packages with src/). Activates when adding a new module, adding a model/factory/migration/resource/service to an existing module, registering a module with Filament, or when the user mentions modules, modular, or a specific module name.
| name | filament-resource-testing |
| description | Defines how Filament UI resources are tested using Livewire |
| license | MIT |
| metadata | {"author":"project"} |
This skill defines UI-level testing patterns for Filament resources only.
It validates:
It does NOT define:
These are owned by other skills.
This skill ONLY covers:
Each test MUST validate one UI behavior:
No multi-behavior tests allowed.
All Filament tests MUST use Livewire:
Livewire::actingAs($this->user)
->test(CreateInvoice::class)
No direct HTTP testing of Filament pages.
Form input MUST use:
->set('data.field', value)
Not:
Tests MUST assert business outcome:
NOT framework internals.
Delete actions are tested as UI actions only:
->callAction(DeleteAction::class)
Outcome MUST be verified via database assertion.
Tenant behavior is NOT owned by this skill.
If multi-tenancy is present:
Filament resource tests verify what the user sees and does, not how the system enforces rules internally.