apexgrid-skill
v2.1.1
Published
AI coding skill for the apex-grid web component — structured reference docs that help AI assistants (Claude, Cursor, Copilot, etc.) generate correct apex-grid code.
Maintainers
Readme
Apex Grid AI Skill
AI coding skill for building UIs with the apex-grid web component (the Lit-based ApexCharts data grid). Works with Claude Code, Cursor, GitHub Copilot, and any AI coding assistant.
Naming heads-up. The npm package is
apex-grid(with a hyphen), the custom-element tag is<apex-grid>, and the exported class isApexGrid<T>.
Separate skill — one of the ApexCharts ecosystem skills. This is the dedicated skill for Apex Grid (
apex-grid), shipped as its ownapexgrid-skillpackage and repo — distinct from the coreapexcharts-skilland the other product skills. Each product has its own library and skill; use the one that matches yours:| Product | npm library | Skill package & repo | |---|---|---| | ApexCharts — charts |
apexcharts|apexcharts-skill| | ApexGantt — Gantt / timeline |apexgantt|apexgantt-skill| | ApexTree — hierarchy / org charts |apextree|apextree-skill| | ApexSankey — flow / Sankey |apexsankey|apexsankey-skill| | Apex Grid — data grid · this skill |apex-grid|apexgrid-skill|
What This Does
AI models routinely get web-component grid code wrong: they treat <apex-grid> like a class with a constructor, forget to register the custom element, set columns as a stringified attribute, return strings (not Lit TemplateResults) from cellTemplate, or expect events from programmatic sort() calls. This skill ships structured reference files so the assistant generates correct apex-grid code on the first try.
Coverage
- Quickstart — register + size the host (
setup()does both); no theme import — the grid self-styles via--ag-*CSS variables - Custom-element registration —
setup(),import 'apex-grid/define', orApexGrid.register() - Generic
ColumnConfiguration<T>—key, the 13 columntypes (incl.date,select,currency, …), templates,sort,filter,pinned, explicit widths - Lit cell, header & editor templates with the right context shapes
- Sort, filter & quick-filter — programmatic API, UI events, operands, multi-column
- Editing, selection, pagination, tree & master-detail — the opt-in feature config objects
- Server-side data —
dataPipelineConfigurationasync hooks (sort/filter/pagination/quickFilter) - CSV export & column reordering/pinning
- Virtualization —
grid.rowsvsgrid.dataViewvsgrid.totalItems - Vanilla JS — full setup without using Lit's
render()in app code - Framework integration — Lit, React, Vue, Angular
Installation
Claude Code
mkdir -p .claude/skills
cd .claude/skills
git clone https://github.com/apexcharts/apexgrid-skill.gitCursor / Windsurf
curl -o .cursorrules https://raw.githubusercontent.com/apexcharts/apexgrid-skill/main/.cursorrulesGitHub Copilot
Reference SKILL.md in Copilot Chat: @workspace #file:SKILL.md, or paste the contents of .cursorrules into Copilot's custom instructions.
As an npm dependency
npm install apexgrid-skillimport { skillFile, referencePath } from 'apexgrid-skill';
import { readFile } from 'node:fs/promises';
const skill = await readFile(skillFile, 'utf8');
const cols = await readFile(referencePath('columns-and-templates.md'), 'utf8');Repository Structure
├── SKILL.md # Main entry point
├── .cursorrules # Self-contained Cursor / Windsurf version
├── references/
│ ├── columns-and-templates.md # ColumnConfiguration, types, Lit templates, widths
│ ├── sort-and-filter.md # operands, expressions, events, multi-column
│ ├── data-pipeline.md # async hooks, server-side, virtualization
│ ├── vanilla-js.md # full setup without Lit render() in app code
│ └── framework-integration.md # Lit, React, Vue, Angular
└── install/
├── claude-code.md
├── cursor.md
└── copilot.mdLinks
- apex-grid GitHub
- npm: apex-grid
- Lit framework
- igniteui-webcomponents (transitive dep — installs automatically)
License
MIT
