Agents & OrchestrationSûr100100/100
Create Table Hook (TanStack) — Alpine Table
Share Alpine tableFeatures, defaults, createAppTable, and createAppColumnHelper with createTableHook. Load when multiple Alpine tables repeat infrastructure; unlike JSX adapters, Alpine has no registered table/cell/header component or context registry.
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 create-table-hook__tanstack-table__packages-alpine-table-skills-2e230ddabda8TanStack
TanStack/table
Contenu à copier
---
name: create-table-hook
description: >
Share Alpine tableFeatures, defaults, createAppTable, and createAppColumnHelper with createTableHook. Load when multiple Alpine tables repeat infrastructure; unlike JSX adapters, Alpine has no registered table/cell/header component or context registry.
metadata:
origin: TanStack
type: framework
library: '@tanstack/alpine-table'
framework: alpine
library_version: '9.2.4'
requires:
- '@tanstack/table-core#core'
- getting-started
- table-state
sources:
- 'TanStack/table:docs/framework/alpine/guide/composable-tables.md'
- 'TanStack/table:examples/alpine/basic-app-table'
- 'TanStack/table:packages/alpine-table/src/createTableHook.ts'
---
This skill builds on @tanstack/table-core#core plus this package's getting-started and table-state skills.
## Setup
```ts
import Alpine from 'alpinejs'
import { createTableHook, tableFeatures } from '@tanstack/alpine-table'
type Person = { id: string; name: string }
const { createAppTable, createAppColumnHelper } = createTableHook({
features: tableFeatures({}),
getRowId: (row: Person) => row.id,
})
const helper = createAppColumnHelper<Person>()
const columns = helper.columns([helper.accessor('name', { header: 'Name' })])
Alpine.data('peopleTable', () => {
const local = Alpine.reactive({
data: [{ id: '1', name: 'Ada' }] as Array<Person>,
})
const table = createAppTable({
columns,
get data() {
return local.data
},
})
return { table }
})
```
## Core Patterns
### Share infrastructure, keep data local
Bind features, row models, row IDs, and defaults in the factory. Each Alpine component passes its own columns, reactive data getter, and controlled state.
### Reuse markup with Alpine primitives
Use real templates and `Alpine.bind` bundles for interactive reuse. `createTableHook` intentionally returns no component registry or context hooks.
### Use the helper to retain feature inference
Columns from `createAppColumnHelper<TData>()` know the factory's registered features without userland feature generics.
## Common Mistakes
### HIGH Assuming a JSX component registry
Wrong: pass `cellComponents` or `tableComponents` to Alpine `createTableHook`.
Correct: share features/defaults with the hook and build reusable interactive markup with Alpine templates or bind bundles.
The Alpine hook returns only app features, a column helper, and createAppTable.
Source: TanStack/table:packages/alpine-table/src/createTableHook.ts
### MEDIUM Abstracting a one-off table
Wrong: introduce an app factory for one table with no shared conventions.
Correct: use standalone `createTable` until infrastructure repeats.
The hook is an application reuse boundary, not required setup.
Source: TanStack/table:docs/framework/alpine/guide/composable-tables.md
### HIGH Reactive data captured as a snapshot
Wrong: `createAppTable({ columns, data: local.data })` when the array will be replaced.
Correct: provide a `get data()` option.
The app factory delegates to Alpine createTable, whose option effect tracks getters.
Source: TanStack/table:packages/alpine-table/src/createTable.ts
## API Discovery
Inspect `node_modules/@tanstack/alpine-table/dist/createTableHook.d.ts`; do not infer component/context APIs from React, Vue, Solid, Svelte, Angular, or Lit adapters.Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Create Table Hook (TanStack) — Alpine Table
Applique les pratiques du skill create-table-hook__tanstack-table__packages-alpine-table-skills-2e230ddabda8.
Comment utiliser Create Table Hook (TanStack) — Alpine Table
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 Create Table Hook (TanStack) — Alpine Table
Dis simplement à ton agent quelque chose comme :
Applique le skill create-table-hook__tanstack-table__packages-alpine-table-skills-2e230ddabda8 à cette tâche
Utilise create-table-hook__tanstack-table__packages-alpine-table-skills-2e230ddabda8 pour améliorer cette implémentation
Passe en revue ce sujet avec create-table-hook__tanstack-table__packages-alpine-table-skills-2e230ddabda8
Skills liés à Create Table Hook (TanStack) — Alpine Table
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.