Skip to content

Commit 1989052

Browse files
paolomozclaude
andcommitted
feat(stardust): design/ schemas and validator
Adds the JSON schemas for the design context (context.json, the block contract, the reference document's front matter) and design-validate.mjs, which checks a design/ folder: the schemas through a built-in checker for exactly the keywords they use, cross-file rules, CRD requirement lines, and DESIGN.md through the Stitch linter pinned at 0.4.0. --legacy validates an old DESIGN.md/DESIGN.json pair as layer 1. No skill reads or writes design/ yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent cb3ec79 commit 1989052

6 files changed

Lines changed: 1047 additions & 7 deletions

File tree

‎plugins/stardust/skills/stardust/reference/scripts-index.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Scripts index — `<skill>/<script>` — what — key flags (CLIs only; import-only libraries are not listed)
1+
# Scripts index — `<skill>/<script>` — what — key flags (CLIs only)
22

33
Run the copies under `stardust/scripts/<skill>/`. Read before `--help`; ask it only for an unnamed flag. Full deploy/rollout/migrate calls: `../../replica/reference/handoff-contract.md` § 4.
44

@@ -44,23 +44,23 @@ Run the copies under `stardust/scripts/<skill>/`. Read before `--help`; ask it o
4444
- `replica/css-rules.mjs` — rule blocks by selector regex — `<f.css> "<re>" [--media <re>|--no-media] [--decl <re>]`
4545
- `replica/diff-report.mjs` — diff % per block, HTML — `<gateDir> <buildURL> [--blocks <css>] [--top 4]`
4646
- `replica/foundation-freeze.mjs` — frozen foundation, sha256 manifest — `freeze [--paths a,b]`; `check`
47-
- `replica/gate-all.mjs` — pixel tables (`--stage prototype --proto-base <u>`) — `[--only <slug,…>] [--sample <n>] [--prune-captures] [--no-preflight] [--skip-existing] [--recapture-eds] [--eds-host <h>] [--no-probes] [--wide]`; exit 2 = FAIL, 4 = captures do not fit on disk
48-
- `replica/gate-evidence.mjs` — sidecar gates from pixel tables + run-bg jobs — `[--slug <s>]… [--content <dir>] [--tables <dir>] [--check] [--dry-run]`; `--unit <slug,…|@file>` = a delivery unit's close check, exit 2 = a page without a gate row or with a stale pass
47+
- `replica/gate-all.mjs` — pixel tables (`--stage prototype --proto-base <u>`) — `[--only <slug,…>] [--sample <n>] [--prune-captures] [--no-preflight] [--skip-existing] [--recapture-eds] [--eds-host <h>] [--no-probes] [--wide]`; exit 2 = FAIL, 4 = disk too small
48+
- `replica/gate-evidence.mjs` — sidecar gates from tables + jobs — `[--slug <s>]… [--content <dir>] [--tables <dir>] [--check] [--dry-run]`; `--unit <slug,…|@file>` = unit close check, exit 2 = a page without a gate row or a stale pass
4949
- `replica/gate.sh` — one gate round + overflow (`--full`: + probes) — `<slug> <live> <build> <width> [iter] [--full] [--main <sel>] [--consent] [--[no-]dismiss] [--live-origin]`
5050
- `replica/html-slice.mjs` — one captured element — `<page.html> header|footer|main|.cls [--text] [--all]`
5151
- `replica/json-query.mjs` — bounded JSON view — `<f.json> [--path <p>] [--keys] [--match k=re] [--fields a,b]`
52-
- `replica/measure.mjs` — rects, computed values, scrollWidth, renditions — `<url> --selectors "a,b" [--against <url>] [--width 1440,360] [--all-matches]`
52+
- `replica/measure.mjs` — rects, computed values, renditions — `<url> --selectors "a,b" [--against <url>] [--width 1440,360] [--all-matches]`
5353
- `replica/motion-compare.mjs` — live vs build motion, advisory — `<live.json> <build.json> [--tolerance-ms]`
5454
- `replica/motion-observe.mjs` — observe motion — `<url> <out.json> [--click <sel>]… [--hover <sel>]…`
5555
- `replica/pixel-compare.mjs` — pixel diff + bands — `<a.png> <b.png> [--out diff.png] [--threshold 10] [--mask yA:h] [--text-boxes <json>]` (text % auxiliary)
56-
- `replica/reference.mjs` — primed frozen origin + noise floor — `freeze <url> <dir> --width <px> [--captures 2] [--force]`; `status|mask <dir>`; `assess <a.png> <b.png>`; exit 2 = unstable
57-
- `replica/reference-url.mjs` — is the live URL the inventory's page (gate.sh runs it) — `<slug> <live-url>`; exit 7 = another rendering
56+
- `replica/reference.mjs` — frozen origin + noise floor — `freeze <url> <dir> --width <px> [--captures 2] [--force]`; `status|mask <dir>`; `assess <a.png> <b.png>`; exit 2 = unstable
57+
- `replica/reference-url.mjs` — is the live URL the inventory's page — `<slug> <live-url>`; exit 7 = another rendering
5858
- `replica/rounds.mjs` — round cap ledger, exit 6 — `check|record|decide|status <dir> --stage <s>`; `count <root>`
5959
- `replica/row-profile.mjs` — row luminance profile — `<a.png> [<b.png>] [--color #rrggbb]`
6060
- `replica/run-bg.mjs` — background jobs, bounded wait — `start --name <j> [--slots 3] -- <cmd>`; `wait [--max ≤110]`; `log <j>`
6161
- `replica/run-capped.mjs` — deadline wrapper, exit 124 — `--timeout <s> -- <cmd>`
6262
- `replica/section.mjs` — one Markdown section / outline — `<doc.md> --list | "<heading re>" [--all] [--max-lines]`
63-
- `replica/sibling-variance.mjs` — template deltas across siblings — `<archetypeURL> <siblingURL>… --probe name=<sel>`
63+
- `replica/sibling-variance.mjs` — template deltas, siblings — `<archetypeURL> <siblingURL>… --probe name=<sel>`
6464
- `replica/source-spec.mjs` — source box + font spec — `capture <live> --slug <s> [--widths 1440,360]`; `compare <spec> <build> [--tol 2]`; `view <spec> [--section <i>]`; exit 2 = off
6565
- `replica/stitch-shot.mjs` — stitched shot — `<url> <out.png> [--width] [--vh] [--settle --consent --[no-]dismiss] [--hide <sel,…>] [--freeze-baseline] [--check-baseline]`
6666
- `reskin/capture-content.mjs` — content model — `--url <u> --out <d>`
@@ -101,6 +101,7 @@ Run the copies under `stardust/scripts/<skill>/`. Read before `--help`; ask it o
101101
- `spec/spec-rum.mjs` — S5 Optel: `[--days 90] [--key-env <NAME>]`
102102
- `spec/spec-sheet.mjs` — contact sheet: `<component|row-shape>`
103103
- `spec/spec-variants.mjs` — S8 variants: `[--cut 0.5]`
104+
- `stardust/design-validate.mjs` — `design/` check — `[<dir>] [--new-blocks a,b] [--legacy]`; exit 1 = errors, 2 = setup
104105
- `stardust/impeccable-version-check.mjs` — newer version?: `[--offline] [--json]`; `--where`
105106
- `stardust/ledger.mjs` — status writer: `<skill> <phase> start|end|blocked [--detail] [--track <t>] [--strict]`; `tail`; `last`
106107
- `stardust/state.mjs` — page status: `advance <slug…> --to <status> [--by]`; `summary [--slugs]`

0 commit comments

Comments
 (0)