Skip to content
Agentmart
Submit a tool

filament-table-defaults

Aplicar quando criar ou revisar Table Filament v5 para Resource ou Relation page.

Skill by coringawc

IndexedMIT
Write a review

Chalk Labs

Need help deploying filament-table-defaults?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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.

We use your email only for this newsletter. Privacy

About

Aplicar quando criar ou revisar Table Filament v5 para Resource ou Relation page.

No 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

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
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from coringawc

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get filament-table-defaults running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying filament-table-defaults?

CallGet help
Cite this page

filament-table-defaults skill. Agent Mart. https://agentmart.dev/skills/coringawc-filament-table-defaults (last updated 2026-10-24)