filament-table-defaults
Aplicar quando criar ou revisar Table Filament v5 para Resource ou Relation page.
Skill by coringawc
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/coringawc-filament-table-defaults
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/filament-table-defaults
What's inside
- Skill name
filament-table-defaults- Description
- Aplicar quando criar ou revisar Table Filament v5 para Resource ou Relation page.
- License
- MIT
- Metadata
- author: coringawc · version: 2.0.0
- Instructions
- 158 lines in SKILL.md · view on GitHub
Files (5)
- SKILL.md
- advanced-filters.md · rules/
- editable-columns.md · rules/
- performance.md · rules/
- visual-defaults.md · rules/
SKILL.md (first lines)
# Filament Table Defaults
## Consistency First
Esta skill padroniza defaults locais da `Table` sem invadir defaults globais do Panel Provider. A tabela deve ser previsível: 25 itens por página, sort default coerente, search apenas em colunas display pesquisáveis e filtros úteis ao modelo.
Preserve decisões explícitas existentes. `created_at desc` é default para tabelas novas, não motivo para substituir ordenações semânticas como `name`, `title` ou `id desc` quando a tela já depende delas.
Densidade extra mora em `rules/`:
- `rules/editable-columns.md` — `TextInputColumn`, `SelectColumn`, `ToggleColumn`, `CheckboxColumn`.
- `rules/advanced-filters.md` — `Filter` com schema custom, `QueryBuilder`, filtros condicionais.
- `rules/performance.md` — `deferLoading()`, `persistFiltersInSession()`, `persistSortInSession()`, eager loading.
- `rules/visual-defaults.md` — `striped()`, `reorderable()`, `groups()`, `recordUrl()`, `recordAction()`.
- Para badges, `withCount()`, `counts()` e cache de contagens, aplicar `filament-cache-performance`.
## Quick Reference
- Consultar Laravel Boost `search-docs` antes de editar com `packages: ['filament/filament']` e queries `table pagination`, `default sort`, `table filters`, `searchable columns`.
- Paginação local: `->defaultPaginationPageOption(25)`. Se customizar `->paginated([...])`, inclua `25`.
- Sort novo: `->defaultSort('created_at', 'desc')` quando existir `created_at` e não houver sort explícito.
- Search: marcar `TextColumn` display com `->searchable()` ou `->searchable(['real_column'])` para valor computado.
- Filtros base: `TrashedFilter` para SoftDeletes, `SelectFilter` para enum/relationship, `TernaryFilter` para boolean, `Filter` com `->schema()` + `->query()` para intervalo.
- Actions de linha: namespace `Filament\Actions\*` (v5). Bulk actions: `->toolbarActions([...])` ou `->groupedBulkActions([...])` (v5).
- Toda action de tabela que abre modal exige `modalHeading(__('English'))` (ver `filament-action-with-modal-heading`).
- Contagens em coluna usam `TextColumn::make('items_count')->counts('items')`; cache de badge segue `filament-cache-performance`.
## Workflow
- [ ] Consultar docs versionadas via Laravel Boost `search-docs` com `packages: ['filament/filament']`.
- [ ] Mapear defaults existentes na tabela:
```bash
vendor/bin/sail bin grep -rE "defaultSort|defaultPaginationPageOption|paginated\(|paginationPageOptions\(|filters\(|recordActions\(|toolbarActions\(" app/Filament
```
- [ ] Em tabela nova ou sem paginação explícita, definir 25:
```php
use Filament\Tables\Table;
public static function configure(Table $table): Table
{
return $table
->defaultPaginationPageOption(25);
}
```
- [ ] Se a tabela usar `paginated([...])` ou `paginationPageOptions([...])`, garantir que `25` está presente:
```php
return $table
->paginated([10, 25, 50, 100])
->defaultPaginationPageOption(25);
```
- [ ] Definir sort default sem sobrescrever ordem semântica existente:
```php
return $table
->defaultSort('created_at', 'desc');
```
Preserve `->defaultSort('name')`, `->defaultSort('title')`, `->defaultSort('id', 'desc')` ou sort de coluna de negócio quando a tela exige leitura alfabética, hierarquia ou ordem de domínio.
- [ ] Marcar search em colunas display reais:
```php
use Filament\Tables\Columns\TextColumn;
TextColumn::make('name')
->label(__('Name'))
->searchable()
->sortable();
TextColumn::make('display_name')
->label(__('Display Name'))
->searchable(['first_name', 'last_name']);
```
- [ ] Adicionar filtros base só quando o model/tela justificar:
```php
use Filament\Forms\Components\DatePicker;
use Filament\Tables\Filters\Filter;
use Filament\Tables\Filters\SelectFilter;
use Filament\Tables\Filters\TernaryFilter;
use Filament\Tables\Filters\TrashedFilter;
use Illuminate\Database\Eloquent\Builder;
return $table
->filters([
TrashedFilter::make(),
SelectFilter::make('status')
->label(__('Status'))
->options(StatusEnum::class),
TernaryFilter::make('is_active')
->label(__('Active')),
Filter::make('created_at')
->schema([
DatePicker::make('created_from')->label(__('Created from')),
DatePicker::make('created_until')->label(__('Created until')),
])
->query(fn (Builder $query, array $data): Builder => $query
->when($data['created_from'] ?? null, fn (Builder $query, string $date): Builder => $query->whereDate('created_at', '>=', $date))
->when($data['created_until'] ?? null, fn (Builder $query, string $date): Builder => $query->whereDate('created_at', '<=', $date))),
]);
```
- [ ] Para SoftDeletes, confirmar trait no model antes de usar `TrashedFilter::make()`.
- [ ] Para filtros complexos, ver `rules/advanced-filters.md`.
- [ ] Para colunas editáveis inline, ver `rules/editable-columns.md`.
- [ ] Para `deferLoading`, `persistFiltersInSession`, eager loading, ver `rules/performance.md`.
- [ ] Para badges, relation tab counts, `withCount()` ou cache de contagem, ver `filament-cache-performance`.From CoringaWc/ai-first-kit, MIT.
More from CoringaWc/ai-first-kit
- 0.471score
composer-dep-install
coringawc
Aplicar quando init-project (A4) executar instalação da stack PHP ou quando o usuário pedir adição da stack composer canônica em projeto recém-criado.
SkillCFreshness: CClaude Code +9 - 0.471score
enable-octane-swoole
coringawc
Aplicar quando o usuário pedir migração de projeto Laravel existente em PHP-FPM para Octane com Swoole, mantendo compose, env e dados intactos.
SkillCFreshness: CClaude Code +9 - 0.471score
docker-stack-fpm
coringawc
Aplicar quando o usuário pedir stack Docker para Laravel rodando PHP-FPM com Nginx, Postgres, Redis, Reverb e libs Chromium para Pest Browser.
SkillCFreshness: CClaude Code +9 - 0.471score
ci-github-actions
coringawc
Aplicar quando o usuário pedir pipeline GitHub Actions para Laravel com Pint, Larastan, Pest unit/feature, Pest Browser e build Vite na branch main.
SkillCFreshness: CClaude Code +9 - 0.471score
filament-cache-performance
coringawc
Aplicar quando criar, revisar ou otimizar contagens, badges de navegação, badges de RelationManager, aggregates, withCount, cache ou performance de Table…
SkillCFreshness: CClaude Code +9 - 0.471score
docker-stack-octane-swoole
coringawc
Aplicar quando o usuário pedir stack Docker para Laravel rodando Octane com Swoole, Nginx, Postgres, Redis, Reverb e libs Chromium para Pest Browser.
SkillCFreshness: CClaude Code +9 - 0.470score
create-pack
CoringaWc
Scaffold a new pack inside ai-first-kit.
SkillCFreshness: CClaude Code +9 - 0.469score
filament-schema-class
coringawc
Aplicar quando compor schema de form Filament v5 para Model Laravel em Resource existente.
SkillCFreshness: CClaude Code +9 - 0.469score
action-class
coringawc
Aplicar quando extrair regra de negócio Laravel para app/Actions.
SkillCFreshness: CClaude Code +9 - 0.469score
enum-with-translations
coringawc
Aplicar quando criar enum PHP de domínio para status, tipo ou categoria usado por Laravel ou Filament.
SkillCFreshness: CClaude Code +9 - 0.469score
faker-realistic-ptbr
coringawc
Aplicar quando factory Laravel precisar de dados brasileiros realísticos além do Faker pt_BR nativo.
SkillCFreshness: CClaude Code +9 - 0.469score
filament-form-component-reusable
coringawc
Aplicar quando criar componente reutilizável de form Filament v5 com lógica própria e uso em 2+ contextos do painel.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 27, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 2.0.0
- License
- MIT
- Repository
- github.com/CoringaWc/ai-first-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from coringawc
- 0.471score
ci-github-actions
coringawc
Aplicar quando o usuário pedir pipeline GitHub Actions para Laravel com Pint, Larastan, Pest unit/feature, Pest Browser e build Vite na branch main.
SkillCFreshness: CClaude Code +9 - 0.471score
enable-octane-swoole
coringawc
Aplicar quando o usuário pedir migração de projeto Laravel existente em PHP-FPM para Octane com Swoole, mantendo compose, env e dados intactos.
SkillCFreshness: CClaude Code +9 - 0.471score
docker-stack-fpm
coringawc
Aplicar quando o usuário pedir stack Docker para Laravel rodando PHP-FPM com Nginx, Postgres, Redis, Reverb e libs Chromium para Pest Browser.
SkillCFreshness: CClaude Code +9 - 0.471score
composer-dep-install
coringawc
Aplicar quando init-project (A4) executar instalação da stack PHP ou quando o usuário pedir adição da stack composer canônica em projeto recém-criado.
SkillCFreshness: CClaude Code +9 - 0.471score
docker-stack-octane-swoole
coringawc
Aplicar quando o usuário pedir stack Docker para Laravel rodando Octane com Swoole, Nginx, Postgres, Redis, Reverb e libs Chromium para Pest Browser.
SkillCFreshness: CClaude Code +9 - 0.471score
filament-cache-performance
coringawc
Aplicar quando criar, revisar ou otimizar contagens, badges de navegação, badges de RelationManager, aggregates, withCount, cache ou performance de Table…
SkillCFreshness: CClaude Code +9
Cite this page
filament-table-defaults skill. Agent Mart. https://agentmart.dev/skills/coringawc-filament-table-defaults (last updated 2026-10-24)