Skills
Install the agent skill so AI assistants build Niko Table and Niko Grid the right way.
An agent skill is a small package of instructions that your AI assistant loads when you work on Niko Table. Install it once. It guides the model to:
- Compose components the right way.
- Use direct imports (no barrels).
- Follow the examples on this site.
It covers both tables and the Niko Grid.
Install
Section titled “Install”pnpm dlx skills add Semkoo/niko-table-registryThe CLI finds niko-table-best-practices in this repo. It installs it into your agent’s skills directory (Cursor, Claude Code, Windsurf and others supported by skills.sh).
After that, a new chat that mentions data tables, Niko Table or editable grids picks it up on its own.
Learn about the skills format at skills.sh.
Verify
Section titled “Verify”-
Confirm install
npx skills listYou should see
niko-table-best-practices. -
Smoke-test in chat
Open a new agent session in a React and shadcn project. Ask for something specific, e.g. “Add a Niko Table with search and pagination” or “Scaffold a minimal Niko Grid with text cells.”
-
Optional: manual install
Copy
.cursor/skills/niko-table-best-practices(or the same copy under.agents/skills/) into your agent’s skills directory. The folder must includeSKILL.md.Agent Project path Global (all projects) Cursor .cursor/skills/~/.cursor/skills/Claude Code .claude/skills/~/.claude/skills/Windsurf .windsurf/skills/none Other / agents .agents/skills/or.agent/skills/per tool docs
What to ask
Section titled “What to ask”Tables
Section titled “Tables”- “Add a data table with search and pagination.”
- “Build a table with faceted filters for category and brand.”
- “Add the advanced filter menu and sort menu.”
- “Implement row drag-and-drop for reordering.”
- “Wire up server-side pagination with
totalCount.” - “Sync filters, sort and pagination to the URL with nuqs.”
Niko Grid
Section titled “Niko Grid”- “Turn this table into a Niko Grid with editable text cells.”
- “Add clipboard and fill handle as opt-in children of
<DataGrid>.” - “Use
useGridChangesfor a save-button CRUD change-set.” - “Add date and select cell editors with
resolvevalidation.”
What the skill teaches
Section titled “What the skill teaches”| Topic | Guidance |
|---|---|
| Composition | DataTableRoot, toolbar, DataTable, header and body, then pagination. Virtualized body for large lists. |
| Imports | Direct file paths only (@/components/niko-table/core/...). No barrel index exports. |
| Layers | DataTable* (context) vs Table* (direct table prop) |
| Filters / DnD | Toolbar and column menus. Row DnD needs getRowId and must not mix with sort or filter. |
| Server / URL | manualPagination / pageCount / totalCount; nuqs for shareable state |
| Niko Grid | useDataGrid, <DataGrid> and typed cells. Opt-in children. Edits addressed by id. Links to Basic Grid. |
Most DataTableRoot config is auto-detected from the components you mount. Pass config only to override it, or for manual and server-side modes.
How it works
Section titled “How it works”- Trigger. It turns on when you talk about data tables, Niko Table, faceted or advanced filters, DnD, server-side paging, nuqs, selection, expansion, tree or grouping tables, or editable spreadsheet grids.
- Enforce patterns. It uses the same structure and import rules as the docs and registry examples.
- Right level of help. A minimal scaffold, a filter deep-dive or grid composition, depending on your ask.
- Point to docs. It links to Installation, Examples and overview pages for full props tables.
- Installation - Set up
@niko-tableand install core - Components - Full registry catalog
- Simple Table and Basic Grid - Reference examples
- Documentation Guidelines - How we write docs and examples
- skills.sh: niko-table-best-practices - Skill listing