filament-docs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFilamentPHP Documentation Reference Skill
FilamentPHP文档参考Skill
Overview
概述
This skill provides access to the complete FilamentPHP v4 official documentation. Use this skill to look up exact implementations, method signatures, and patterns before generating any Filament code.
本Skill可访问完整的FilamentPHP v4官方文档。在生成任何Filament代码之前,可使用本Skill查找具体实现、方法签名及模式。
Documentation Location
文档位置
All documentation is stored in:
/home/mwguerra/projects/mwguerra/claude-code-plugins/filament-specialist/skills/filament-docs/references/所有文档存储于:
/home/mwguerra/projects/mwguerra/claude-code-plugins/filament-specialist/skills/filament-docs/references/Directory Structure
目录结构
references/
├── actions/ # Action buttons and modals
│ └── *.md # Action types and configurations
├── forms/ # Form components
│ └── *.md # All form field types
├── general/
│ ├── 01-introduction/ # Getting started, installation
│ ├── 03-resources/ # CRUD resources
│ ├── 06-navigation/ # Menu and navigation
│ ├── 07-users/ # Auth and permissions
│ ├── 08-styling/ # Themes and CSS
│ ├── 09-advanced/ # Advanced patterns
│ ├── 10-testing/ # Testing guide
│ ├── 11-plugins/ # Plugin development
│ └── 12-components/ # UI components
├── infolists/ # Infolist entries
│ └── *.md # Display components
├── notifications/ # Notification system
│ └── *.md # Toast and DB notifications
├── schemas/ # Schema validation
│ └── *.md # Schema patterns
├── tables/ # Table components
│ ├── 02-columns/ # Column types
│ └── 03-filters/ # Filter types
└── widgets/ # Dashboard widgets
└── *.md # Widget typesreferences/
├── actions/ # 操作按钮与模态框
│ └── *.md # 操作类型与配置
├── forms/ # 表单组件
│ └── *.md # 所有表单字段类型
├── general/
│ ├── 01-introduction/ # 入门指南、安装
│ ├── 03-resources/ # CRUD资源
│ ├── 06-navigation/ # 菜单与导航
│ ├── 07-users/ # 认证与权限
│ ├── 08-styling/ # 主题与CSS
│ ├── 09-advanced/ # 高级模式
│ ├── 10-testing/ # 测试指南
│ ├── 11-plugins/ # 插件开发
│ └── 12-components/ # UI组件
├── infolists/ # 信息列表条目
│ └── *.md # 展示组件
├── notifications/ # 通知系统
│ └── *.md # 提示框与数据库通知
├── schemas/ # Schema验证
│ └── *.md # Schema模式
├── tables/ # 表格组件
│ ├── 02-columns/ # 列类型
│ └── 03-filters/ # 筛选器类型
└── widgets/ # 仪表盘小部件
└── *.md # 小部件类型Usage
使用方法
When to Use This Skill
适用场景
- Before generating any Filament component code
- When troubleshooting Filament errors
- To verify method signatures and parameters
- To find correct import statements
- To understand Filament v4 patterns
- 生成任何Filament组件代码之前
- 排查Filament错误时
- 验证方法签名与参数
- 查找正确的导入语句
- 理解Filament v4模式
Search Workflow
搜索流程
- Identify Topic: Determine what documentation is needed
- Navigate to Folder: Go to relevant directory
- Read Documentation: Extract exact patterns
- Apply Knowledge: Use in code generation
- 确定主题:明确所需文档内容
- 导航至对应文件夹:进入相关目录
- 阅读文档:提取具体模式
- 应用知识:用于代码生成
Common Lookups
常见查询
| Topic | Directory |
|---|---|
| Resource creation | |
| Form fields | |
| Table columns | |
| Table filters | |
| Actions | |
| Widgets | |
| Infolists | |
| Testing | |
| Styling | |
| Navigation | |
| Auth/Permissions | |
| Plugin Development | |
| 主题 | 目录 |
|---|---|
| 资源创建 | |
| 表单字段 | |
| 表格列 | |
| 表格筛选器 | |
| 操作 | |
| 小部件 | |
| 信息列表 | |
| 测试 | |
| 样式定制 | |
| 导航 | |
| 认证/权限 | |
| 插件开发 | |
Documentation Reading Pattern
文档阅读模式
When reading documentation:
- Find the right file: Match component to documentation file
- Read the overview: Understand the component's purpose
- Extract code examples: Copy exact patterns
- Note imports: Get correct use statements
- Check configuration: Review options and parameters
阅读文档时:
- 找到对应文件:将组件与文档文件匹配
- 阅读概述:理解组件用途
- 提取代码示例:复制具体模式
- 记录导入语句:获取正确的use声明
- 查看配置:审阅选项与参数
Example Usage
使用示例
Looking up TextInput field
查询TextInput字段
- Navigate to directory
forms/ - Find text-input documentation
- Extract:
- Basic usage pattern
- Available methods (required, email, tel, etc.)
- Validation integration
- Correct import statement
- 导航至目录
forms/ - 找到text-input文档
- 提取:
- 基础使用模式
- 可用方法(required、email、tel等)
- 验证集成
- 正确的导入语句
Looking up Table columns
查询表格列
- Navigate to
tables/02-columns/ - Find specific column type
- Extract:
- Column configuration
- Formatting options
- Relationship handling
- Sorting and searching
- 导航至
tables/02-columns/ - 找到特定列类型
- 提取:
- 列配置
- 格式化选项
- 关联关系处理
- 排序与搜索
Output
输出结果
After reading documentation, provide:
- Exact code pattern from docs
- Required imports
- Configuration options
- Best practices noted
- Version-specific considerations
阅读文档后,需提供:
- 文档中的精确代码模式
- 所需导入语句
- 配置选项
- 注意到的最佳实践
- 版本特定注意事项