apexgrid-skill
v1.0.0
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>.
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
- Custom-element registration —
import 'apex-grid/define'vsApexGrid.register() - Generic
ColumnConfiguration<T>—key,type, templates,sort,filter - Lit cell & header templates with the right context shapes
- Sort & filter — programmatic API, UI events, operands, multi-column
- Server-side data —
dataPipelineConfigurationasync hooks - Virtualization —
grid.rowsvsgrid.dataViewvsgrid.totalItems - 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
│ ├── sort-and-filter.md # operands, expressions, events, multi-column
│ ├── data-pipeline.md # async hooks, server-side, virtualization
│ └── framework-integration.md # Lit, React, Vue, Angular
└── install/
├── claude-code.md
├── cursor.md
└── copilot.mdLinks
License
MIT
