Skip to content

ci: guard against generated skills/dist drift - #89

Merged
nucliweb merged 1 commit into
mainfrom
chore/ci-skills-drift-guard
Jul 31, 2026
Merged

ci: guard against generated skills/dist drift#89
nucliweb merged 1 commit into
mainfrom
chore/ci-skills-drift-guard

Conversation

@nucliweb

Copy link
Copy Markdown
Owner

What

Adds a CI guard so generated artifacts can no longer drift from their source.

  • Runs generate-skills:check in the CI pipeline. A snippet or page change that does not regenerate skills/, dist/, and .claude/skills/ now fails the build instead of publishing stale artifacts.
  • Extends generate-skills:check to also diff .claude/skills/, the local-install mirror the generator writes but the check previously ignored.
  • Hardens the pre-commit hook: runs lint alongside check:consistency, and adds set -e so a failing check actually blocks the commit.

Why

generate-skills:check existed but was not wired into CI, and 169 generated files under dist/ plus the .claude/skills/ mirror could silently go out of sync with snippets/ + pages/.

Verification

  • generate-skills:check exits 0 on a clean tree.
  • Modifying a snippet source without regenerating makes it exit 1 (drift caught).
  • lint, check:consistency, and the full pre-commit hook pass locally.

Add generate-skills:check to the CI pipeline so a snippet or page change that does not regenerate skills/, dist/, and .claude/skills/ fails the build instead of publishing stale artifacts. Extend the check to also diff .claude/skills/, the local-install mirror the generator writes but the check previously ignored.

Harden the pre-commit hook too: run lint alongside check:consistency, and add set -e so a failing check actually blocks the commit.
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
webperf-snippets Ready Ready Preview Jul 31, 2026 11:30pm
webperf-snippets-u6am Ready Ready Preview Jul 31, 2026 11:30pm

@nucliweb
nucliweb merged commit cfc9e67 into main Jul 31, 2026
4 checks passed
@nucliweb
nucliweb deleted the chore/ci-skills-drift-guard branch July 31, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant