Skip to content

ci(skills): gate PRs on skill-docs being generated from SKILL.md frontmatter - #1844

Merged
xuyushun441-sys merged 1 commit into
mainfrom
chore/ci-check-skill-docs
Jun 14, 2026
Merged

ci(skills): gate PRs on skill-docs being generated from SKILL.md frontmatter#1844
xuyushun441-sys merged 1 commit into
mainfrom
chore/ci-check-skill-docs

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

Why

Follow-up to #1842, which made the skill catalog (README index + guides/skills.mdx tables/cards) generated from each SKILL.md frontmatter via build-skill-docs.ts. Without a CI gate, the generated files can still be hand-edited or left stale when a SKILL.md changes — the exact drift that caused the original fabricated-docs problem.

What

Adds a Check Skill Docs job to ci.yml:

  • Gated by paths-filter — runs only when skills/**, content/docs/guides/skills.mdx, or packages/spec/scripts/build-skill-docs.ts change.
  • Runs pnpm --filter @objectstack/spec check:skill-docs (build-skill-docs.ts --check), which fails (exit 1) if the README/guide listings differ from what the frontmatter would generate, with a hint to run gen:skill-docs.
  • Lightweight: install + run, no build (the script only reads files via tsx).

Verification

  • ci.yml validated as YAML.
  • Ran the exact CI command against current mainpasses (Skill docs in sync).
  • Negative test: introduced drift in the guide → check exits 1 with the fix hint; reverted → passes again.
  • This PR edits ci.yml, so the new job runs on the PR itself (self-test).

🤖 Generated with Claude Code

…tmatter
Adds a `Check Skill Docs` job to ci.yml, gated (via paths-filter) on changes to
`skills/**`, `content/docs/guides/skills.mdx`, or the generator script. It runs
`pnpm --filter @objectstack/spec check:skill-docs`, which fails if the README
index or guide tables/cards drift from each SKILL.md frontmatter — closing the
loop so the catalog can never silently go stale again.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented Jun 14, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJun 14, 2026 8:01am

Request Review

@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation ci/cd tooling size/s labels Jun 14, 2026
@xuyushun441-sys
xuyushun441-sys merged commit c71d0c4 into mainJun 14, 2026
13 checks passed
@xuyushun441-sys
xuyushun441-sys deleted the chore/ci-check-skill-docs branch June 14, 2026 08:07
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cddocumentationImprovements or additions to documentationsize/stooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@xuyushun441-sys@os-zhuang