Agent Skills

View as Markdown

Summary

  • AdapTable publishes 4 Agent Skills that teach your coding agent how to work with AdapTable:
    • adaptable-setup — add AdapTable to a project for first time, onto existing AG Grid, from a dataset or nothing
    • adaptable-dev — write and change AdapTable code: Options, Initial State, Layouts, Format Columns, Alerts etc.
    • adaptable-debug — diagnose Grid running in browser through DevTools In-page API; assemble support case
    • adaptable-upgrade — plan the move to a newer AdapTable major, then apply the plan in a separate session
  • The Skills always work for the version installed in your project
  • Install the adaptable CLI in the project; the Skills run it. If it is not installed, the Skill runs it through npx

Note

An Agent Skill is a set of instructions which your coding agent follows for one AdapTable job

AdapTable publishes four skills:

SkillWhen it applies
adaptable-setupAdd AdapTable for the first time: onto an existing AG Grid, from a dataset, or from nothing
adaptable-devWrite and change AdapTable code: Options, Initial State, Layouts, formatting, Alerts, Expressions, API calls
adaptable-debugA Grid on screen is not doing what you expect, or you need an anonymised support case
adaptable-upgradePlan a move to a newer major, then apply that plan in a separate session

You install the Skills once in the project, then give your agent a command.

The agent opens the Skill that fits and follows it.

Developer Guide

Install the Skills and the CLI

Installing the Skills is straightforward.

Install the Skills and the CLI (steps 1 and 3). Telling the agent they exist (step 2) is optional but recommended.

Then ask one question to confirm it worked.

1
Install the Skills

Terminal
npx skills add https://www.adaptabletools.com

The four Skills are installed into the folder your agent reads.

Commit them so the whole team has them.

These tools need Node 22.20 or later.

  • Skills: .agents/skills/ in the project
  • Session-start file: AGENTS.md
  • Without prompts: npx skills add https://www.adaptabletools.com -a cursor -y
2
Repeat the routing each turn (optional, recommended)

This step is optional, but recommended.

Copy this block into AGENTS.md at the root of the repository, and commit it:

  • If AGENTS.md already exists, add the block to it
  • In a monorepo, use the repository root, not a package folder
  • Claude Code reads CLAUDE.md instead: put the block there, or add a CLAUDE.md containing the line @AGENTS.md
AGENTS.md
<!-- BEGIN:adaptable-agent-rules -->
AdapTable (`@adaptabletools/*`) is used in this project. Its Options, State shapes, API and AdapTableQL change between majors, so do not rely on recalled knowledge. Before writing or changing AdapTable code use the `adaptable-dev` skill; for first-time integration `adaptable-setup`; for a misbehaving running grid `adaptable-debug`; for version upgrades `adaptable-upgrade`. Validate State, expressions and setup with `npx -y @adaptabletools/adaptable-mcp@^1 check …` (or the `check_*` MCP tools when configured); read the docs for the installed version with `npx -y @adaptabletools/adaptable-mcp@^1 docs search "<topic>"`. The columnDefs, gridOptions and AG Grid modules of an AdapTable grid are covered by these skills too; consult the `ag-dev` / `ag-update` skills or AG Grid's documentation only for what the AdapTable docs and checks do not cover.
<!-- END:adaptable-agent-rules -->

The agent reads that file at the start of each session, so you do not paste it again.

Skills are already selected from their descriptions.

The block repeats that routing on every turn, which can make the choice more reliable.

If the block is missing or out of date, the Skill tells you at the end of its task.

3
Install the CLI in the project

Add the package as a devDependency, at the repository root:

Terminal
npm i -D @adaptabletools/adaptable-mcp

The Skills find this copy by themselves, so there is nothing else to configure.

  • Commit package.json and the lockfile: the whole team and CI then run the same version
  • Dependabot or Renovate keep it up to date, like any other dependency
  • In a monorepo, install it at the root, where the agent runs

Hint

If you skip this step, the Skill runs the CLI through npx and still does the work — see How Skills run the tools

4
Check it worked

Ask your agent:

any AdapTable SkillAI Skill

Which AdapTable Skills do you have, what AdapTable version is this project on, and which version of the CLI is running?

It should name the four Skills, the AdapTable version from your package.json, and the CLI version.

If you installed the CLI in the project, that version is the local CLI.

Update, remove and share

  • npx skills update -p -y refreshes the Skills installed in the project (-g for Skills installed for your user)
  • The four Skills are published together, with the CLI, under one version number
  • npx skills remove adaptable-setup adaptable-dev adaptable-debug adaptable-upgrade removes them
  • Commit the Skills folder and skills-lock.json so the whole team, and CI, gets the same Skills

Detection

When each Skill starts, detect compares the latest release with:

  • the installed Skills
  • the CLI
  • the AGENTS.md block

If the Skills or the CLI are behind that release, the Skill stops and asks you to choose between:

  • updating them (recommended)

Note

  • Choosing update refreshes the Skills and the project's @adaptabletools/adaptable-mcp
  • Then the Skill stops so you can start a new session on that version
  • continuing with the versions that are installed

Hint

  • If the Skills and the CLI are on different major versions, it tells you which to update and stops
  • This is because instructions for another major are useless (and even counter-productive)

What you can ask

Ask forSkill
Start a new Gridadaptable-setup
Add AdapTable to AG Gridadaptable-setup
Add a featureadaptable-dev
Review what you haveadaptable-dev
Fix a running Gridadaptable-debug
Get helpadaptable-debug
Upgrade to latest versionadaptable-upgrade

Note

Each Skill's page shows an example in full: what the agent does, what you get back, and how the result was checked

Hint

  • Some tips for good results
    • Give your agent one command — use the Skills one a time
    • Name the Skill when it matters — agents usually pick the right one; naming it makes it certain
    • Say where a setting belongs — e.g. Adaptable Options (fixed at design time) or the Adaptable API (at run time)
    • Be specific — name the column, the rule and the Layout. Vague prompts are how agents fall back on memory
    • Initial State change doesn't display, browser's saved State winning; adaptable-debug will explain Revision fix
    • Read the diff — the checks catch wrong Expressions and State; they do not replace a review

How a Skill runs

Every Skill follows the same five steps, written once in the files under references/_shared/ that each Skill carries:

  1. Find what is installed. adaptable detect reads the AdapTable major and exact version, the AG Grid version, the framework and wrapper package, and every project in a monorepo. Everything after targets what it found — never the newest version the agent remembers
  2. Read the docs, don't recall. For the feature at hand the agent looks it up for that version: the feature index (docs list, docs search), the handbook page (docs get), the exact State or Options shape (docs get technical-reference-…), a working demo (docs demo), and the AdapTableQL functions the engine accepts (aql functions). It checks whether AdapTable already has a feature before hand-rolling one
  3. Write the code, where it belongs
  4. Check and fix. Every Expression goes through check expression for its Module, every Initial State through check state against your columnDefs, any wiring change through check setup. It applies the fix each finding gives and checks again — up to three rounds — then reports what is left word for word, never a false "clean"
  5. Ask only at decision points. The Skill tells you what it found and carries on, and asks — then waits — only where a choice is expensive to reverse: licence keys, a ColDef migration, saved State, a package upgrade, and when the Skills or the CLI are behind the released version. Each phase writes its file before the next one starts, so a long task can be resumed from disk

Three guards hold in every Skill:

GuardWhat it means
No licence keys in sourceKeys go to environment variables; a key you paste is used to configure the environment file and is never echoed back; Grid Info read from a page has its key stripped before it is shown
Saved State is the user'sThe agent never calls restoreState, clears browser storage or changes the state key (adaptableId, user name) without your confirmation in the conversation
Planning never editsA phase whose result is a plan or a report writes only its own files; and an upgrade plan finds changes by letting the CLI search the code, not by reading your source
You

Ask in plain English: add AdapTable, add a feature, explain a misbehaving Grid, plan an upgrade. Naming the skill (use the adaptable-dev skill) makes the trigger certain

Your coding agent

The agent you already use still writes the code

Agent Skill

A procedure the agent follows: ground in the installed version, read the docs, write, then validate. The Skills have to be installed or the agent has nothing to follow

runs the CLI, or calls the MCP server when one is configured
The CLI, or MCP

The Skill runs the CLI installed in the project (or through npx), or calls the MCP server's tools when one is configured. Either way it reads the docs for your version and checks State, Expressions and setup before you see results. You don't call either yourself.

You get back

A diff, a diagnosis of a live Grid, or an upgrade plan

The Skills are required. They run the CLI, installed in the project or through npx, or call the MCP server when one is configured. You do not call either yourself.
For a running Grid, the agent reads it through the DevTools In-page API and check state validates what came back.

Note

  • With no network the CLI works from its cache; a command that needs something not cached fails and says so, and the Skill reports that rather than guessing
  • With the MCP server configured the Skill calls the MCP tools of the same names (check_state, search_docs …) instead of the commands; the procedure and the results are the same
  • With no shell and no MCP, the Skill reads package.json by hand (and says so) and reads the docs pages as markdown from /docs/<slug>/index.md

Inside a Skill

Each Skill is plain markdown you can open and audit.

The same files are published unpacked at https://www.adaptabletools.com/.well-known/skills/.

Caution

npx skills update overwrites them, so keep local notes for your agent in AGENTS.md rather than in the Skill

Deep Dive

Published Skill Descriptions

Troubleshooting

Symptom

The agent did not use the Skill

Suggested fix

Name it in the prompt: "use the adaptable-dev skill". Check that the block from the install steps is in AGENTS.md at the repository root (CLAUDE.md for Claude Code), start a new session, and ask "Which AdapTable Skills do you have?"

Symptom

The agent wrote an Option, API or State property that does not exist

Suggested fix

It answered from memory instead of the Skill. Name the Skill and ask it to look the feature up for the installed version and to run check state / check setup on what it wrote

Symptom

The agent says the AdapTable Skills or the CLI are outdated

Suggested fix

Choose update when it asks. That runs npx skills update -p -y for the Skills (-g when they are installed for your user) and npm i -D @adaptabletools/adaptable-mcp@^1 in the project, or deletes the npx cache folder it names. Then start a new session and repeat the request. You can instead tell it to continue with the installed versions. When the Skills and the CLI are on different majors, it stops until you update, with no option to continue

Symptom

Every command is slow to start, or npx is blocked

Suggested fix

Install the CLI as a devDependency at the repository root so npx finds it locally — see Install and run

Symptom

The Skills are installed but one agent in the team never sees them

Suggested fix

Each agent reads its own folder: Claude Code reads .claude/skills/, most others .agents/skills/. Re-run npx skills add and select that agent too, and commit both folders

FAQ

Do the Skills need the MCP server? No. In a project, install the CLI as a devDependency and the Skills run it; without it they run the CLI through npx. When an MCP server is configured, the Skill calls its tools instead, with the same procedure and results. See CLI or MCP.

Can I change a Skill? You can, but npx skills update overwrites it. Put project-specific instructions in AGENTS.md instead, next to the AdapTable block.

Which AdapTable versions do they support? Projects on AdapTable 21 and later, for reading the docs and for upgrade planning. Checks and migrations run with engine from AdapTable 24 or later package — project's own, or one the CLI downloads. The Skills never improvise a command the installed CLI does not have (adaptable --capabilities lists them).

Do they work with AG Grid's Skills? Yes, and they expect to work with them. Every AdapTable Skill checks whether ag-dev and ag-update are installed and hands AG Grid work over to them. Without them, the Skills work from AG Grid's documentation: adaptable-upgrade plans AG Grid's changes from AG Grid's upgrade guides either way.