ObjectStackObjectStack

AI skill reference — every field explained

Reference for every ObjectStack AI skill — domain-scoped knowledge modules that teach AI assistants the protocol's schemas and constraints

ObjectStack ships a set of domain-specific skills that teach AI assistants (Claude Code, GitHub Copilot, Cursor, …) the protocol's schemas, patterns, and constraints — plus process skills that teach how work moves through a project rather than what to author. This guide is the complete catalog.

New to skills? Read AI Skills System first for the conceptual overview, then return here for the per-skill reference.


Installing skills

The catalog ships as the npm package @objectstack/skills, released together with every other @objectstack/* package at one shared version. Install it at the version of the @objectstack/spec your project has installed — the catalog's version is then your spec's, so the skills teach what that spec accepts — and copy it from node_modules into your coding agent's skills directory:

# 1 · the catalog, at the version of your installed @objectstack/spec
pnpm add -D "@objectstack/skills@$(node -p "require('@objectstack/spec/package.json').version")"
#   npm: npm install --save-dev "@objectstack/skills@…"   ·   yarn: yarn add -D "@objectstack/skills@…"

# 2 · copy it from node_modules into your agent's skills directory
npx skills@1.7.2 experimental_sync --agent claude-code --copy -y

Add the package with the manager that installed the project: in a pnpm project, npm install --save-dev exits 1 with npm error Cannot read properties of null (reading 'edgesOut').

Step 2 is the skills CLI's sync from node_modules: it finds the skills under node_modules/@objectstack/skills/dist/skills/, copies each one into your agent's directory — for claude-code, real files in .claude/skills/<skill> and nowhere else — and records the source and version in skills-lock.json. Commit both with the project. Keep --copy: without it the sync writes links into node_modules, which is not committed, so a clone of the project gets dangling links and no skills. The CLI is pinned because experimental_sync is that tool's own unstable interface; create-objectstack runs the same version. Name your own runtime after --agent (codex, cursor, …), one runtime per run — never --agent '*', which copies the catalog into dozens of agent directories at once. A bare npm install --save-dev @objectstack/skills installs whichever version the registry tags latest, not your spec's — keep the version in step 1.

Updating. The catalog is versioned as one bundle, and it moves only with your ObjectStack version — you never track or update a skill on its own: bump @objectstack/skills with the other @objectstack/* packages, then re-run the sync (step 2, same flags) and commit what it changed.

Which versions exist. @objectstack/skills is published from 18.0.0-next.0 on; there is no 17.x release of it. A project on @objectstack/spec 17.x therefore has no catalog bound to its version: step 1 refuses with ERR_PNPM_NO_MATCHING_VERSION (npm: ETARGET; both print No matching version found), and moving it to 18 includes a skills step. One scaffolder is the exception to the next paragraph: create-objectstack@18.0.0-next.0 still installed the skills from the repository's main with skills add, and step 2 skips every skill a skills add installed (it prints Skipped … installed with skills add and exits 0), so in a project it scaffolded run npx skills list first, because npx skills remove --all removes every installed skill without asking; run that when the list shows only the objectstack-* skills — or remove those by name, as the upgrade step does, if you added others — and then steps 1 and 2.

New projects. create-objectstack runs both steps while it scaffolds: the package.json it writes depends on @objectstack/skills at the same version as @objectstack/spec, its dependency install puts the catalog in node_modules, and step 2 copies it for one agent runtime, into .claude/skills/. Its closing summary prints step 2 again — to re-run after an upgrade, and with another --agent for any other runtime you use.

npm create objectstack@latest my-app

The next channel. npx skills add objectstack-ai/objectstack/skills --skill '*' --agent claude-code -y reads the catalog straight from the repository's unreleased main — for trying the next version's skills, not for a released project.


ObjectStack ships 14 skills — one per authoring domain, plus process skills for how a project is delivered. Each is self-contained: an AI assistant loads only the ones a task needs.

Quick Reference

#SkillDomainPathWhat it covers
1Platformplatformskills/objectstack-platform/Bootstrap, configure, extend, and operate ObjectStack runtimes. Covers project setup (defineStack, drivers, scaffolding), declaring platform capabilities (requires: — which service plugins boot), plugin and service development (PluginContext, DI, kernel hooks like kernel:ready), and operations (CLI commands, migrations, deployment, test harnesses via LiteKernel).
2Datadataskills/objectstack-data/Design or change an ObjectStack data model, in a project or through MCP: objects, fields, relationships, validation rules, indexes, record hooks, permissions, seed / demo data, external datasources, and field visibleWhen / requiredWhen rules.
3Queryqueryskills/objectstack-query/Write an ObjectQL query over ObjectStack records: filter, sort, paginate, aggregate by group, expand related records, full-text search.
4UIuiskills/objectstack-ui/Build what users see in an ObjectStack app, in a project or through MCP: list / form / kanban / calendar views, navigation, pages, dashboards, reports, charts, action buttons and package docs.
5Automationautomationskills/objectstack-automation/Automate an ObjectStack app, in a project or through MCP: act when a record is created or changes, on a schedule or from a webhook; approvals, notifications, assignment rules, and screen flows / wizards that branch between steps.
6AIaiskills/objectstack-ai/Design ObjectStack AI skills, tools, knowledge sources, and the open-edition MCP server surface.
7APIapiskills/objectstack-api/Design the server-side API surface that an ObjectStack runtime exposes — REST endpoints, auth providers, realtime channels, error envelopes, batch contracts.
8i18ni18nskills/objectstack-i18n/Translate an ObjectStack app, in a project or through MCP: object and field labels, select options, view, navigation and dashboard text, automation messages; add a locale, and find and fill missing keys (os i18n check).
9Formulaexpressionskills/objectstack-formula/Write a CEL expression wherever ObjectStack takes one, in a project or through MCP: formula fields, visibleWhen / requiredWhen rules, validation, sharing and visibility predicates, flow conditions, seed values, Salesforce formulas ported to CEL.
10Upgradeprocessskills/objectstack-upgrade/Upgrade an ObjectStack metadata project across a protocol major — run the deterministic conversion chain, then work the semantic residue the chain cannot express (intent choices, custom code on retired APIs, stale prose) to a decision with the project's owner, and finish with a green validate plus a human-readable upgrade report.
11Askprocessskills/objectstack-ask/Answer a business question over a live ObjectStack environment through its MCP tools (list_datasets, query_dataset, list_objects, describe_object, query_records, aggregate_records): find the governed metric the question names, compute it and cite its source, or fall back to an object query and say so.
12MCP Buildprocessskills/objectstack-mcp-build/Build or change an ObjectStack app's metadata through its MCP draft door (list_metadata_items, get_metadata_item, save_metadata_draft, list_drafts, delete_metadata_draft), with no project files: read what exists, load the type's domain skill, save a draft, read the publish verdict the save answers, repair it, and hand the Studio review route to a person.
13Projectprocessskills/objectstack-project/Run an ObjectStack metadata-app project: decide whether a change belongs in the app or the platform, what to write before building, what the app tests and what the platform already checks, how a change is described for customers, released and upgraded.
14ObjectUIuiskills/objectui/Universal Server-Driven UI (SDUI) engine for building JSON-driven React interfaces with Shadcn design quality.

Platform

Domain platform · Path skills/objectstack-platform/

Bootstrap, configure, extend, and operate ObjectStack runtimes. Covers project setup (defineStack, drivers, scaffolding), declaring platform capabilities (requires: — which service plugins boot), plugin and service development (PluginContext, DI, kernel hooks like kernel:ready), and operations (CLI commands, migrations, deployment, test harnesses via LiteKernel).

Use when the user is writing objectstack.config.ts, building a plugin or driver, turning a platform capability on, mounting the Hono HTTP layer, running os CLI commands, or planning deployment.

Do not use for data schema design (see objectstack-data) or query patterns (see objectstack-query); data lifecycle hooks (beforeInsert / afterUpdate) belong in objectstack-data — only kernel / service-level events live here.

Tags: project, defineStack, driver, hono, plugin, kernel, service, requires, capability, DI, lifecycle, cli, deploy, ops


Data

Domain data · Path skills/objectstack-data/

Design or change an ObjectStack data model, in a project or through MCP: objects, fields, relationships, validation rules, indexes, record hooks, permissions, seed / demo data, external datasources, and field visibleWhen / requiredWhen rules.

Use when modelling records or editing *.object.ts / src/data/*.ts. Not for querying records (objectstack-query), flows or approvals (objectstack-automation), or plugin hooks (objectstack-platform).

Tags: object, field, validation, index, relationship, hook, schema, permission, rls, security, seed, fixture


Query

Domain query · Path skills/objectstack-query/

Write an ObjectQL query over ObjectStack records: filter, sort, paginate, aggregate by group, expand related records, full-text search.

Use when writing a query in app code or a hook, or choosing a pagination strategy. Not for a business question answered from the app's records: a number, ranking or governed metric (objectstack-ask); adding objects or fields (objectstack-data); a list view's filter or a dashboard dataset (objectstack-ui); an API endpoint (objectstack-api).

Tags: query, filter, sort, paginate, aggregate, ObjectQL, full-text


UI

Domain ui · Path skills/objectstack-ui/

Build what users see in an ObjectStack app, in a project or through MCP: list / form / kanban / calendar views, navigation, pages, dashboards, reports, charts, action buttons and package docs.

Use when changing a screen, menu, chart or button, or editing *.view.ts / *.page.ts / *.app.ts. Not for objects and fields (objectstack-data), screen flows that branch between steps (objectstack-automation), or @object-ui/* React code (objectui).

Tags: view, app, page, dashboard, report, chart, action, widget, doc


Automation

Domain automation · Path skills/objectstack-automation/

Automate an ObjectStack app, in a project or through MCP: act when a record is created or changes, on a schedule or from a webhook; approvals, notifications, assignment rules, and screen flows / wizards that branch between steps.

Use when the request is "when X happens, do Y" or you are editing *.flow.ts. Not for validation rules or record hooks on an object (objectstack-data), or kernel / plugin events (objectstack-platform).

Tags: flow, workflow, trigger, approval, state-machine, scheduled, webhook


AI

Domain ai · Path skills/objectstack-ai/

Design ObjectStack AI skills, tools, knowledge sources, and the open-edition MCP server surface.

Use when the user is adding *.skill.ts / *.tool.ts, configuring an LLM provider, wiring the tools a skill grants, indexing ObjectStack data as a knowledge source for RAG, or writing a context pack (aiContexts). Agents themselves are platform-internal (ask / build) — third parties extend them via skills, not by authoring *.agent.ts.

Do not use for general LLM prompting questions unrelated to ObjectStack metadata.

Tags: agent, tool, skill, knowledge, context-pack, llm, embedding, mcp


API

Domain api · Path skills/objectstack-api/

Design the server-side API surface that an ObjectStack runtime exposes — REST endpoints, auth providers, realtime channels, error envelopes, batch contracts.

Use when the user is adding *.endpoint.ts, configuring auth providers, defining custom routes, or extending the REST generator.

Do not use for: consuming an ObjectStack API from a client (that is just standard HTTP — no skill needed); the auto-generated CRUD endpoints (those follow from objectstack-data); request-side query syntax (see objectstack-query). CEL expressions in route guards or auth predicates: load objectstack-formula alongside.

Tags: rest, endpoint, auth, realtime, server


i18n

Domain i18n · Path skills/objectstack-i18n/

Translate an ObjectStack app, in a project or through MCP: object and field labels, select options, view, navigation and dashboard text, automation messages; add a locale, and find and fill missing keys (os i18n check).

Use when adding a language, relabelling for a locale, or editing *.translation.ts or a translation metadata item. Not for i18n libraries outside ObjectStack bundles, or @object-ui/* component strings (objectui).

Tags: i18n, translation, locale, l10n, bundle, coverage


Formula

Domain expression · Path skills/objectstack-formula/

Write a CEL expression wherever ObjectStack takes one, in a project or through MCP: formula fields, visibleWhen / requiredWhen rules, validation, sharing and visibility predicates, flow conditions, seed values, Salesforce formulas ported to CEL.

Use when asked how to express a condition or calculation, or writing an F, P or cel literal. Not for ObjectQL query filters (objectstack-query), SQL fragments, or hook bodies (objectstack-data).

Tags: cel, formula, predicate, condition, validation, visibility, seed-dynamic


Upgrade

Domain process · Path skills/objectstack-upgrade/

Upgrade an ObjectStack metadata project across a protocol major — run the deterministic conversion chain, then work the semantic residue the chain cannot express (intent choices, custom code on retired APIs, stale prose) to a decision with the project's owner, and finish with a green validate plus a human-readable upgrade report.

Use when a project is on an older protocol major and must move to the current one, when @objectstack/spec was bumped across a major and metadata or code stopped parsing, when a parse or tsc error quotes a [REMOVED] prescription, or when asked to "upgrade to v17" / "升级到 v17" / "一键升级元数据项目".

Do not use to author new metadata (the domain skills cover that), or to reconcile physical database drift (that is objectstack-platform's os migrate plan / os migrate apply).

Tags: upgrade, migration, protocol, major, retired-keys, tombstone, conversions, validate, report


Ask

Domain process · Path skills/objectstack-ask/

Answer a business question over a live ObjectStack environment through its MCP tools (list_datasets, query_dataset, list_objects, describe_object, query_records, aggregate_records): find the governed metric the question names, compute it and cite its source, or fall back to an object query and say so.

Use for EVERY question answered from the app's records, before the first data tool call, even when it names no metric: a number, a total, what has been claimed, spent, sold or paid so far, a ranking, a breakdown, a trend or a list, in any language ("how many", "how much", "total", "so far", "top 10", "by stage", "this quarter"; "多少", "一共", "总额", "排名", "占比", "趋势", "按阶段统计", "列出").

Do not use for building or changing metadata (the domain skills cover that), or for writing a query in application code (see objectstack-query).

Tags: ask, question, metric, dataset, mcp, list_datasets, query_dataset, 问数, 指标


MCP Build

Domain process · Path skills/objectstack-mcp-build/

Build or change an ObjectStack app's metadata through its MCP draft door (list_metadata_items, get_metadata_item, save_metadata_draft, list_drafts, delete_metadata_draft), with no project files: read what exists, load the type's domain skill, save a draft, read the publish verdict the save answers, repair it, and hand the Studio review route to a person.

Use when connected to an environment over MCP and asked to add or change an object, field, view, page, dashboard, flow, action or permission there, before the first save ("build an app", "add a field", "建一个应用", "加个字段", "做个审批流").

Do not use for metadata written in a project's files (the domain skills cover that) or to answer a question from the app's records (objectstack-ask).

Tags: mcp, build, draft, save_metadata_draft, verdict, studio, no-project, 草稿


Project

Domain process · Path skills/objectstack-project/

Run an ObjectStack metadata-app project: decide whether a change belongs in the app or the platform, what to write before building, what the app tests and what the platform already checks, how a change is described for customers, released and upgraded.

Use when deciding where a change belongs or what to write before building, filing an issue, writing a test, opening a PR, releasing, or bumping @objectstack/*. Not for writing metadata (the domain skills) or crossing a protocol major (objectstack-upgrade).

Tags: project, process, testing, verify, release, changeset, upgrade, backfill, platform-gap


ObjectUI

Domain ui · Path skills/objectui/

Universal Server-Driven UI (SDUI) engine for building JSON-driven React interfaces with Shadcn design quality.

Use for schema-driven page building, plugin development, expression bindings, data integration, testing, auth/permissions, i18n, mobile responsiveness and project setup with the @object-ui/* packages. Triggers on ObjectUI, SchemaRenderer, JSON UI schemas, SDUI, metadata-driven UIs, @object-ui/*.

Do NOT use for server-side ObjectStack concerns (data modelling, API endpoints, automation, formulas, agents) — those belong to the objectstack-* skills.

Tags: sdui, schema-renderer, json-ui, react, shadcn, tailwind, plugin, expression


Skill anatomy

Every skill is a directory under skills/:

skills/objectstack-{domain}/
├── SKILL.md              # required — frontmatter (name, description, domain, tags) + prose guide
├── references/           # generated & optional — present only when the skill maps to Zod sources
│   └── _index.md         # pointers into @objectstack/spec Zod sources
├── rules/                # optional — detailed implementation rules
└── evals/                # optional — AI comprehension test cases

SKILL.md is the only required file. The references/_index.md index is generated by packages/spec/scripts/build-skill-references.ts and points into the published @objectstack/spec schemas in node_modules — skills never bundle copies of the schemas, so they stay version-aligned automatically. Skills with no mapped Zod sources (such as Formula) ship without a references/ directory at all.

The catalog above (names, domains, descriptions) is generated from each SKILL.md frontmatter by build-skill-docs.ts. Edit the frontmatter, not this page — then run pnpm --filter @objectstack/spec gen:skill-docs.


Best practices

1. Start with the right skill

Use the Quick Reference table to find the skill that matches your task rather than guessing. When a task spans domains, the per-skill "Do not use for …" notes point you to the right neighbour.

2. Chain skills for complex tasks

Most real-world work spans multiple domains. A typical CRM feature chains:

flowchart LR
    Data --> Query --> UI --> Automation --> API

3. Load Formula alongside its host

Any CEL expression — a validation predicate, a flow condition, a field visibility rule — is covered by Formula. Load it in addition to the host skill (Data, Automation, UI), not instead of it.

4. Respect skill boundaries

If a skill says "delegate to X for Y", follow it. Skills are deliberately focused and composable — keeping them narrow is what lets an assistant load only the context a task needs.


Next steps

On this page