Skip to content

docs(skills): document install command + generate skill catalog from frontmatter - #1842

Merged
xuyushun441-sys merged 2 commits into
mainfrom
docs/skills-install-and-generated-list
Jun 14, 2026
Merged

xuyushun441-sys merged 2 commits into
mainfrom
docs/skills-install-and-generated-list

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Collaborator

Why

A user couldn't find how to install the AI skills — because the install command (npx skills add objectstack-ai/framework --all) was undocumented anywhere in the site; it only ran inside create-objectstack. Investigating, the skills docs had also drifted badly:

  • guides/skills.mdx and concepts/skills.mdx described skills that don't exist (objectstack-quickstart / objectstack-schema / objectstack-plugin / objectstack-hooks) and omitted the real ones (objectstack-platform / objectstack-data / objectstack-formula).
  • Both claimed "10 skills" — there are 9.

Root cause: the skill catalog was hand-maintained in multiple places with no single source.

What

1. Document installation (concepts + quick-start)

  • concepts/skills.mdx: new "Installing skills" section.
  • getting-started/quick-start.mdx: new "Add AI skills to your editor" step.
  • Both: npx skills add objectstack-ai/framework --all (whole bundle, idempotent, single versioned unit) + the create-objectstack auto-install path.

2. Single source of truth — packages/spec/scripts/build-skill-docs.ts

  • Generates the skills/README.md Index table and the guide's Quick Reference table + per-skill cards from each SKILL.md frontmatter (name / description / domain / tags), between BEGIN/END GENERATED markers.
  • Scripts: gen:skill-docs (write), check:skill-docs (--check, for CI drift detection).
  • Per-file comment style: {/* */} for MDX, <!-- --> for the README .md (MDX rejects HTML comments — caught during browser verification).

3. Fix stale references in concepts/skills.mdx — skill-boundaries diagram, delegation table, usage examples, and the SKILL.md frontmatter sample — to the real 9-skill set.

Net: −437 / +216 lines (removed fabricated content).

Verification

Ran the docs portal locally (pnpm dev); all three pages return 200 and render correctly (Quick Reference table, per-skill cards, corrected ASCII boundary diagram, install steps). Screenshots checked for the guide, concepts, and quick-start pages.

Follow-up (not in this PR)

Wire check:skill-docs into CI so the docs can't drift from SKILL.md again.

🤖 Generated with Claude Code

…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>
@vercel

vercel Bot commented Jun 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 14, 2026 7:50am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface size/l labels Jun 14, 2026
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@xuyushun441-sys
xuyushun441-sys merged commit ddeb934 into main Jun 14, 2026
11 of 12 checks passed
@xuyushun441-sys
xuyushun441-sys deleted the docs/skills-install-and-generated-list branch June 14, 2026 07:54

This branch was successfully deployed

1 active deployment
Preview — dd1efc64 Deployed Jun 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/l tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants