You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(skills): document install command + generate skill catalog from frontmatter
The AI Skills docs (guides/skills.mdx, concepts/skills.mdx) had drifted badly:
they described skills that don't exist (objectstack-quickstart/schema/plugin/
hooks), claimed "10 skills" (there are 9), and the install command was
undocumented anywhere — it only ran inside create-objectstack.
- Add `packages/spec/scripts/build-skill-docs.ts`: single source of truth is
each `skills/objectstack-*/SKILL.md` frontmatter. Generates the README Index
table and the guide's Quick Reference table + per-skill cards between
BEGIN/END markers. Scripts: `gen:skill-docs` (write), `check:skill-docs`
(CI drift check). Per-file comment style — `{/* */}` for MDX, `<!-- -->`
for the README .md (MDX rejects HTML comments).
- Document installation in concepts/skills.mdx and getting-started/quick-start
.mdx: `npx skills add objectstack-ai/framework --all` (whole bundle, single
versioned unit) and the create-objectstack auto-install path.
- Fix stale references throughout concepts/skills.mdx (skill boundaries
diagram, delegation table, usage examples, SKILL.md frontmatter sample) to
the real 9-skill set.
Verified: docs portal renders all three pages (200) with correct content.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@@ -15,6 +15,22 @@ Skills are **not runtime code**. They are machine-readable knowledge definitions
15
15
16
16
---
17
17
18
+
## Installing skills
19
+
20
+
Skills are distributed through the [skills.sh](https://skills.sh) registry from the [`objectstack-ai/framework`](https://github.com/objectstack-ai/framework) repository's `skills/` directory.
21
+
22
+
```bash
23
+
# New project — create-objectstack installs skills automatically
24
+
npm create objectstack@latest my-app
25
+
26
+
# Existing project — add the whole bundle (re-run to update)
27
+
npx skills add objectstack-ai/framework --all
28
+
```
29
+
30
+
The bundle is versioned and updated as **one unit** — `--all` is idempotent, so you never track skills individually. For the full per-skill catalog and install options, see the [AI Skills Reference](/docs/guides/skills#installing-skills).
31
+
32
+
---
33
+
18
34
## Why Skills?
19
35
20
36
Traditional AI code assistants generate generic code. They don't understand:
@@ -44,25 +60,29 @@ Traditional AI code assistants generate generic code. They don't understand:
44
60
45
61
## Skill Architecture
46
62
47
-
Each skill follows a **three-layer structure** inspired by [shadcn/ui](https://ui.shadcn.com/):
63
+
Each skill can use up to a **three-layer structure** inspired by [shadcn/ui](https://ui.shadcn.com/). Only `SKILL.md` is required; richer skills add the other two:
48
64
49
-
| Layer | File | Purpose |
50
-
| :--- | :--- | :--- |
51
-
|**Overview**|`SKILL.md`| High-level guide with decision trees and quick-start examples |
@@ -95,62 +115,15 @@ This format ensures AI assistants generate protocol-compliant code.
95
115
96
116
---
97
117
98
-
## The 10 Skills
99
-
100
-
ObjectStack provides **10 domain-specific skills** covering every aspect of the protocol:
101
-
102
-
<Cards>
103
-
<Card
104
-
icon={<Database />}
105
-
title="Schema Design"
106
-
description="Objects, Fields, Relationships, Validations, and Indexes."
107
-
/>
108
-
<Card
109
-
icon={<Target />}
110
-
title="Query Design"
111
-
description="Filters, sorting, pagination, aggregation, joins, and full-text search."
112
-
/>
113
-
<Card
114
-
icon={<Globe />}
115
-
title="API Design"
116
-
description="REST endpoints, service discovery, authentication, and inter-service communication."
117
-
/>
118
-
<Card
119
-
icon={<Layout />}
120
-
title="UI Design"
121
-
description="Views, Apps, Dashboards, Reports, and Actions."
122
-
/>
123
-
<Card
124
-
icon={<Workflow />}
125
-
title="Automation Design"
126
-
description="Flows, Workflows, Triggers, and Approval processes."
127
-
/>
128
-
<Card
129
-
icon={<Bot />}
130
-
title="AI Agent Design"
131
-
description="Agents, Tools, Skills, and RAG pipelines."
132
-
/>
133
-
<Card
134
-
icon={<Puzzle />}
135
-
title="Plugin Development"
136
-
description="Plugin lifecycle, Service registry, Hooks, and Events."
137
-
/>
138
-
<Card
139
-
icon={<Zap />}
140
-
title="Quickstart"
141
-
description="Project scaffolding, defineStack(), drivers, and adapters."
142
-
/>
143
-
<Card
144
-
icon={<Languages />}
145
-
title="I18n Design"
146
-
description="Translation bundles, locale configuration, and coverage detection."
147
-
/>
148
-
<Card
149
-
icon={<Wrench />}
150
-
title="Hooks System"
151
-
description="Data lifecycle hooks, plugin hooks, and kernel events."
152
-
/>
153
-
</Cards>
118
+
## The skill catalog
119
+
120
+
ObjectStack provides **nine domain-specific skills**, one per protocol domain — Platform, Data, Query, UI, Automation, AI, API, i18n, and Formula.
121
+
122
+
The authoritative list (names, domains, and "use when / do not use" boundaries) is generated from each skill's `SKILL.md` frontmatter. See the **[AI Skills Reference](/docs/guides/skills)** for the full catalog with per-skill detail.
123
+
124
+
<Callouttype="info">
125
+
Lifecycle hooks, plugin development, and project bootstrap are **not** separate skills — they live in **Data** (record hooks) and **Platform** (plugins, kernel events, `defineStack`).
126
+
</Callout>
154
127
155
128
---
156
129
@@ -159,43 +132,36 @@ ObjectStack provides **10 domain-specific skills** covering every aspect of the
159
132
Each skill has **clear boundaries** — it knows what it's responsible for and explicitly delegates to other skills when needed:
Formula and i18n are cross-cutting — load them alongside any host skill.
187
153
```
188
154
189
-
| Skill | Delegates To| For |
155
+
| Skill | Delegates to| For |
190
156
| :--- | :--- | :--- |
191
-
|Schema| Query | Querying and filtering records |
192
-
|Schema| UI | Building views and forms |
193
-
| Query |Schema| Understanding field types |
194
-
| UI |Schema| Field definitions for columns |
195
-
| Automation |Schema| Record-triggered flows |
196
-
| AI Agent | Automation | Flow-based agent tools |
197
-
|Plugin|Schema| Registering objects |
198
-
|Quickstart | All|Setting up the full stack|
157
+
|Data| Query | Querying and filtering records |
158
+
|Data| UI | Building views and forms |
159
+
| Query |Data| Understanding field types |
160
+
| UI |Data| Field definitions for columns |
161
+
| Automation |Data| Record-triggered flows |
162
+
| AI | Automation | Flow-based agent tools |
163
+
|Platform|Data| Registering objects from a plugin|
164
+
|Data / Automation / UI | Formula|Any CEL predicate or expression|
199
165
200
166
---
201
167
@@ -206,7 +172,7 @@ Each skill has **clear boundaries** — it knows what it's responsible for and e
206
172
Skills are automatically loaded from the `skills/` directory when using GitHub Copilot in VS Code. Reference a skill directly:
207
173
208
174
```
209
-
@workspace Use the objectstack-schema skill to design a customer object
175
+
@workspace Use the objectstack-data skill to design a customer object
210
176
with name, email, industry, and annual_revenue fields.
211
177
```
212
178
@@ -224,7 +190,7 @@ that filters opportunities by stage and aggregates revenue by quarter.
224
190
Add the skill files to your Cursor rules or reference them in prompts:
225
191
226
192
```
227
-
@skills/objectstack-plugin/SKILL.md Create a plugin that adds
193
+
@skills/objectstack-platform/SKILL.md Create a plugin that adds
228
194
an audit logging service to the kernel.
229
195
```
230
196
@@ -240,7 +206,7 @@ Skills are **structured metadata** — not executable code. They define *what* t
240
206
241
207
### 2. Composable
242
208
243
-
Skills are independently installable and referenceable. A developer working only on data modeling can load `objectstack-schema` without loading `objectstack-ui`. This follows the same composability pattern as ObjectStack plugins.
209
+
Skills are independently installable and referenceable. A developer working only on data modeling can load `objectstack-data` without loading `objectstack-ui`. This follows the same composability pattern as ObjectStack plugins.
Install the ObjectStack skill bundle so your AI assistant (Claude Code, Copilot, Cursor, …) knows the protocol's schemas and conventions:
28
+
29
+
```bash
30
+
npx skills add objectstack-ai/framework --all
31
+
```
32
+
33
+
Re-run the same command any time to update — the bundle is versioned as one unit. See the [AI Skills Reference](/docs/guides/skills) for the full catalog.
34
+
35
+
<Callouttype="info">
36
+
Scaffolding with `npm create objectstack@latest` runs this step automatically.
37
+
</Callout>
38
+
25
39
### Define your first object
26
40
27
41
The scaffolded project includes a sample object. Open `src/objects/my_app.ts`:
0 commit comments