From plaited-plaited
Refresh or drift-check the generated CSS property schemas from @webref/css via the plaited CLI. Covers when to regenerate, review discipline, drift checking, and failure modes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/plaited-plaited:css-schemasThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when working with the generated CSS property schemas at
Use this skill when working with the generated CSS property schemas at
src/client/css.schemas.ts. The schemas classify each CSS property into
one of three Zod schema shapes (pure keyword enum, enum-or-number, or
string-or-number catchall) parsed from @webref/css data.
plaited --version # Version check
plaited css-schemas --schema input # Discover the JSON input shape
plaited css-schemas '{"mode":"diff"}' # Check for drift
plaited css-schemas '{"mode":"generate"}' # Regenerate the file
plaited css-schemas --help # Show full usage
@webref/css or css-tree in package.jsonplaited css-schemas '{"mode":"diff"}' reports changed: true
(drift detected between the committed file and what the generator would
produce)Check for drift first:
plaited css-schemas '{"mode":"diff"}'
If drift detected, regenerate:
plaited css-schemas '{"mode":"generate"}'
Review the diff:
git diff src/client/css.schemas.ts
Look for:
z.union([z.string(), z.number()]) becoming a pure enum, or vice
versa — this affects how the client validates CSS values at runtime)keywordEnumCount in the output helps gauge how many pure-enum
classifications changedCommit with a conventional commit message:
git add src/client/css.schemas.ts
git commit -m "chore(client): regenerate css schemas from @webref/css@<version>"
Wire plaited css-schemas '{"mode":"diff"}' into normal CI as a gate to
catch stale or hand-edited schemas:
- name: Check CSS schemas are up to date
run: bun bin/plaited.ts css-schemas '{"mode":"diff"}'
If changed: true, the CI step fails with a diff showing what would
change. The fix is to regenerate and commit the update.
The publish.yml workflow must NOT run plaited css-schemas. Doing so
would silently ship unreviewed schema changes tied to whatever version of
@webref/css that bun install resolves at publish time. Schema changes
must always be reviewed and committed explicitly.
| Symptom | Cause | Fix |
|---|---|---|
@webref/css not installed | Running outside a repo checkout, or devDeps not installed | bun add -d @webref/css css-tree from the repo root |
changed: true with no meaningful diff | Running against a published npm package where devDeps aren't installed | Run from a full repo checkout |
| Generated file differs in formatting | Git pre-commit hook (biome) reformats the output | Accept the hook's formatting; run generate and commit normally |
bun-runtime skill — Bun.file / Bun.write usage in the CLI commandcode-documentation skill — TSDoc conventions on the generator modulesrc/client/css-schema-generator.ts — the pure generation functionsrc/cli/css-schemas.ts — the CLI command handlersrc/client/UI-GENERATION-PATTERNS.md section 3a — the $host/$root/$top
context the schemas servenpx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin plaited-plaitedGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.