Agents & OrchestrationSûr100100/100
Grouping (TanStack)
Group rows with columnGroupingFeature, groupedRowModel, groupedColumnMode, and manualGrouping. Load for grouped or placeholder cells and grouping interactions with expansion or pagination.
ou envoie-le directement à ton agent.
Installer dans ton projet
$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs grouping__tanstack-table__packages-table-core-skills-6b0e95e4e784TanStack
TanStack/table
Contenu à copier
---
name: grouping
description: >
Group rows with columnGroupingFeature, groupedRowModel, groupedColumnMode, and manualGrouping. Load for grouped or placeholder cells and grouping interactions with expansion or pagination.
metadata:
origin: TanStack
{ type: sub-skill, library: '@tanstack/table-core', library_version: '9.2.4' }
requires: ['core', 'table-features', 'client-vs-server']
sources:
- 'TanStack/table:docs/framework/react/guide/grouping.md'
- 'TanStack/table:packages/table-core/src/features/column-grouping'
- 'TanStack/table:examples/react/grouping'
---
This skill builds on `core`, `table-features`, and `client-vs-server`. Grouping creates row structure and the renderer chooses grouped-cell UI. Load the separate `aggregation` skill when grouped rows should also calculate values.
## Setup
```ts
import {
columnGroupingFeature,
createGroupedRowModel,
tableFeatures,
} from '@tanstack/table-core'
export const features = tableFeatures({
columnGroupingFeature,
groupedRowModel: createGroupedRowModel(),
})
```
## Core Patterns
```ts
const options = { groupedColumnMode: 'reorder' as const }
const mode = cell.getIsGrouped()
? 'grouped'
: cell.getIsPlaceholder()
? 'placeholder'
: 'value'
```
Render these cell modes deliberately.
## Common Mistakes
### [HIGH] Registering processing without grouping
Wrong: `tableFeatures({ groupedRowModel: createGroupedRowModel() })`
Correct: `tableFeatures({ columnGroupingFeature, groupedRowModel: createGroupedRowModel() })`
The grouped row-model slot requires `columnGroupingFeature`.
Source: `packages/table-core/src/types/TableFeatures.ts#FeatureSlotPrereqs`
### [HIGH] Treating rendered rows as underlying records
Wrong: `const leafCount = table.getRowModel().flatRows.filter(row => !row.subRows.length).length`
Correct:
```ts
const countLeafRows = (rows: typeof groupRow.subRows): number =>
rows.reduce(
(count, row) =>
count + (row.subRows.length ? countLeafRows(row.subRows) : 1),
0,
)
const leafCount = countLeafRows(groupRow.subRows)
```
Count descendants from one group row rather than the flattened render model,
where group rows and expanded rows may both appear. The current
`table.getRowModel().rows` is render order, while original dataset counts come
from the data owner.
Source: `docs/framework/react/guide/grouping.md`
### [HIGH] Rendering every cell identically
Wrong: `render(cell.getValue())`
Correct: `render(cell.getIsPlaceholder() ? null : cell.getValue())`
Placeholder cells do not represent ordinary leaf values. Group rows should
only render their grouped cell when aggregation is not enabled.
Source: `examples/react/grouping/src/main.tsx`
## API Discovery
Inspect `node_modules/@tanstack/table-core/dist/features/column-grouping/` for
grouping. Load the `aggregation` skill when totals, multiple aggregations,
grouped aggregate values, or custom definitions are part of the task.Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Grouping (TanStack)
Applique les pratiques du skill grouping__tanstack-table__packages-table-core-skills-6b0e95e4e784.
Comment utiliser Grouping (TanStack)
1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.
Déclencheurs pour Grouping (TanStack)
Dis simplement à ton agent quelque chose comme :
Applique le skill grouping__tanstack-table__packages-table-core-skills-6b0e95e4e784 à cette tâche
Utilise grouping__tanstack-table__packages-table-core-skills-6b0e95e4e784 pour améliorer cette implémentation
Passe en revue ce sujet avec grouping__tanstack-table__packages-table-core-skills-6b0e95e4e784
Skills liés à Grouping (TanStack)
Acceleration (Microsoft)
Compare synthetic acceleration options and clearly separate scenario value from forecast commitments.Account Overview (Microsoft)
Create a synthetic Acme account overview and identify evidence that merits seller attention.Acroform Writer (Microsoft)
Use this skill whenever the user wants values written INTO an existing PDF form that lives in the connected SharePoint knowledge source — filling out, completing, populating, or submitting a fillable PDF (application, intake sheet, contract, government form) from data they supply, a spreadsheet row, or the conversation. Triggers include "fill out the job application form", "complete the intake form for [person]", "populate our standard NDA template", and "make this ready to send / non-editable" (flatten). The source form should be found via knowledge search; only ask the user to upload it if knowledge search turns up nothing plausible. different task), and do NOT use it on scanned/image-only PDFs that have no real fillable fields — those need OCR or manual overlay instead, which this skill explicitly detects and reports rather than silently failing.