Use with AI assistants
Give Claude Code, Cursor, Codex, GitHub Copilot and others the right way to use SpreadsheetGrid
SpreadsheetGrid is a new library, and AI coding tools still know very little about its API. Without documentation, they guess from how other grids such as AG Grid are written and may write props that don't exist. Give them documentation in one of the following three ways (the higher ones work better).
Install the Skill
The npm package includes an Agent Skill (skills/spreadsheet-grid/SKILL.md, since 0.57.0). It is a short guide to the rules that are easy to get wrong, the minimal form, and which headings of API_REFERENCE.md to read. Tools that read SKILL.md (Claude Code / Cursor / Codex / GitHub Copilot and others) load it automatically when working with this library, once it is in their Skill folder.
Install from GitHub (the skills command; you can pick which tools to install it for):
npx skills add https://github.com/ishibashi0112/datasheet-grid/tree/main/packages/react/skills/spreadsheet-gridInstalling from GitHub gives you the latest Skill on main. To match the version you installed, copy it from the npm package (Claude Code example):
mkdir -p .claude/skills
cp -r node_modules/@ishibashi0112/spreadsheet-grid/skills/spreadsheet-grid .claude/skills/skills-npm, which links the Skills found in installed packages, finds it too (it is in the package's skills/).
The Solid version includes a Skill written for Solid (skills/spreadsheet-grid-solid/SKILL.md, since 0.1.2). From GitHub, use npx skills add https://github.com/ishibashi0112/datasheet-grid/tree/main/packages/solid/skills/spreadsheet-grid-solid; from the npm package, copy node_modules/@ishibashi0112/spreadsheet-grid-solid/skills/spreadsheet-grid-solid. The Solid version also includes API_REFERENCE.md (the same document as the React version, with a Solid translation guide at the top).
The Skill contains only short instructions and sends the AI to the bundled API_REFERENCE.md for the detailed API. When you upgrade the package, copy the Skill again too.
Language
The Skill and the bundled API_REFERENCE.md are written in Japanese. AI coding tools read them fine, and the English API reference is on this site (API reference; add .md to the URL for Markdown).
Add one sentence to AGENTS.md / CLAUDE.md
Even with tools that don't use Skills, writing this sentence in your project's instruction file (AGENTS.md / CLAUDE.md / .cursor/rules and so on) makes them read the bundled documentation before writing code.
Before writing grid code, read node_modules/@ishibashi0112/spreadsheet-grid/API_REFERENCE.md
and use only the props and methods listed there.API_REFERENCE.md covers the whole public API of the version you installed (the fields of the main types are also explained in the type definitions (JSDoc) your editor shows on hover). It is about 2,600 lines long, so it is faster to have the AI list the headings first and then read only the sections it needs (the Skill describes this too).
Give it this site's documentation
| Document | Contents |
|---|---|
| llms.txt | A table of contents for every page of the docs (links to each page with a description) |
| llms-full.txt | Every page in one file. It is large, so giving only the pages you need from the table of contents works better |
Any page URL + .md | That page in Markdown (for example /en/docs/react/installation.md) |
| The buttons at the top of each page | "Copy Markdown" (copy the page as Markdown) and "Open" (open the page in ChatGPT / Claude / Cursor and others) |