Skip to content

Phase 7 — Contributor skills + token generation (kuat-agent-rules / Run A)#8

Merged
efordee24 merged 1 commit into
mainfrom
feature/phase-7-contributor
Jun 17, 2026
Merged

Phase 7 — Contributor skills + token generation (kuat-agent-rules / Run A)#8
efordee24 merged 1 commit into
mainfrom
feature/phase-7-contributor

Conversation

@efordee24

Copy link
Copy Markdown
Collaborator

What & why

Phase 7 of the Kuat migration serves contributors (the DS team who extend the system), not consumers. These skills touch the source of truth, so they ship repo-local only: committed to .claude/skills/ (project scope, auto-discovered in-repo), never added to the marketplace/managed-settings distribution and never bundled into a plugin payload — being in the repo is the access control. Phase 7 gates stable (with Phase H).

This is Run A (kuat-agent-rules). The plan is cross-repo; per the single-repo guardrail, Run B (kuat-mono)add-kuat-component, the downstream variables.css half, and the registry-from-manifest + drift — is handed off in phase-7-kuat-mono-handoff.md, not run here.

What changed

Contributor skills (.claude/skills/):

  • generate-tokens (centerpiece) — reference/design-language/colours.md is now generated from colors.tokens.json (the SoT) with a drift check, retiring the hand-maintained file. This permanently closes the #0066CC drift class. The tokens README admitted the generator was "deferred from 4S, kept in sync by hand" — now built.
  • author-reference, review-reference-change (gates a change or does a general review/audit, with a defined output format + Critical/Major/Minor severity), author-skill.
  • prep-slides-master, curate-slide-layouts, add-brand-asset — studio slide-deck asset-pack upkeep (renamed from prep-master/curate-layouts to signal slides-only).

Tooling (skills/scripts/, CI-runnable via npm, not packaged):

  • generate-tokens.mjs (--check), check-reference.mjs (passive test / link integrity / structure / token drift), inspect-layouts.py.
  • npm: tokens:generate, tokens:check, reference:check, verify:plugins.
  • verify-plugins.mjs hardened with a distribution guard: asserts no .claude/skills/ skill (derived at runtime) leaks into any plugin payload.

Also: .github/workflows/drift-check.yml (authored-but-unverified — no Actions runner here), AGENTS.md + tokens/README.md updates, Phase-7 evals, LOG + report-phase-7.md, rebuilt plugin payloads.

Verification (9/9 executed checks pass — see RESULTS-phase-7.md)

  • tokens:generate reproduces colours.md (value tables byte-identical); tokens:check exit 0; a hand-edited value → exit 1 at the exact line.
  • check-reference.mjs catches planted passive markers, broken links, and token drift; default (changed-vs-base) scope passes clean.
  • build:plugins + verify:pluginsALL CHECKS PASSED, "no contributor skill leaked into any payload (7 repo-local skills kept out)".
  • prep-master.py reproduces the slimmed master (51.5→18.9 MB, 65 layouts, fonts correct); inspect-layouts.py enumerates all 65.

Reviewer notes

  • colours.md is now a build artifact (carries a DO-NOT-EDIT banner) — change colours in colors.tokens.json and run tokens:generate. Prose lives in the generator template.
  • Legacy backlog (not in scope): reference:check --all surfaces ~61 pre-existing "Testing Checklist" procedure blocks in legacy reference files. The gate is change-scoped so it doesn't block on them; flagged for a future reference-cleanup phase.
  • drift-check.yml is authored-but-unverified (no CI runner in the dev env) — validate on this PR.
  • prep-master.py (the script) keeps its name; only the wrapping skill was renamed to prep-slides-master.

🤖 Generated with Claude Code

…s / Run A)

Repo-local contributor skills for the DS team (committed to .claude/skills/,
never packaged into a plugin / marketplace — being in the repo is the access
control). Run A of the cross-repo Phase 7; Run B (kuat-mono) is handed off.

Skills (.claude/skills/):
- generate-tokens: colours.md is now GENERATED from colors.tokens.json (SoT) with
  a drift check, retiring the hand-maintained file (closes the #0066CC drift class)
- author-reference, review-reference-change (gate + general review/audit), author-skill
- prep-slides-master, curate-slide-layouts, add-brand-asset (studio slide asset pack)

Tooling (skills/scripts/, CI-runnable via npm, not packaged):
- generate-tokens.mjs (--check), check-reference.mjs (passive/link/structure/token),
  inspect-layouts.py; npm: tokens:generate, tokens:check, reference:check, verify:plugins
- verify-plugins.mjs hardened: asserts no contributor skill leaks into any payload

Also: .github/workflows/drift-check.yml (authored-but-unverified), AGENTS.md +
tokens/README.md updates, Phase-7 evals (9/9 executed checks pass), kuat-mono
handoff, LOG + report-phase-7.md. Plugin payloads rebuilt (no contributor-skill leak).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@efordee24 efordee24 merged commit fb8bbcb into main Jun 17, 2026
1 check passed
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