Skip to content
Niko Table

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.

pnpm dlx skills add Semkoo/niko-table-registry

The 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.

  1. Confirm install

    npx skills list

    You should see niko-table-best-practices.

  2. 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.”

  3. 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 include SKILL.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
  • “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.”
  • “Turn this table into a Niko Grid with editable text cells.”
  • “Add clipboard and fill handle as opt-in children of <DataGrid>.”
  • “Use useGridChanges for a save-button CRUD change-set.”
  • “Add date and select cell editors with resolve validation.”
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.

  1. 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.
  2. Enforce patterns. It uses the same structure and import rules as the docs and registry examples.
  3. Right level of help. A minimal scaffold, a filter deep-dive or grid composition, depending on your ask.
  4. Point to docs. It links to Installation, Examples and overview pages for full props tables.