scaffold-filament-page

📁 iurygdeoliveira/labsis-kit 📅 Jan 23, 2026
4
总安装量
4
周安装量
#53910
全站排名
安装命令
npx skills add https://github.com/iurygdeoliveira/labsis-kit --skill scaffold-filament-page

Agent 安装分布

claude-code 3
windsurf 2
opencode 2
antigravity 2
gemini-cli 2

Skill 文档

Scaffold Filament Page

Use this skill when you need a dashboard, settings page, or report view that is NOT attached to a specific Model Resource.

Context

Custom pages are useful for “dashboard” like views, settings, or tools that don’t map 1:1 to a database record.

Tools

  • scaffold-filament-resource: Use that skill if the page IS attached to a model.

Rules

1. Navigation Grouping

  • Always define protected static ?string $navigationGroup = 'Settings'; (or appropriate group).
  • Use protected static ?int $navigationSort to order items.

2. View Construction

  • Use standard Filament widgets or Blade components within the view().
  • If custom HTML is needed, use standard Tailwind classes (v4).

3. Authorization

  • Add mount() check using abort_unless(auth()->user()->can('view_page'), 403); or similar Policy check.

4. Title & Breadcrumbs

  • Customize title: protected static ?string $title = 'Custom Title';

Workflow

  1. Check for Clusters: Ask if this page belongs to an existing Cluster (e.g., Settings).
  2. Create Page: php artisan make:filament-page [PageName] --cluster=[ClusterName]
  3. Define Cluster/Group: If not using clusters, use $navigationGroup.