Skip to content

Commit debf0cc

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 fb77786 commit debf0cc

6 files changed

Lines changed: 1052 additions & 12 deletions

File tree

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

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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

55
- `deploy/ai-readability.mjs` — AI-readability — `--origin <o> [--paths <f> --min 98]`
66
- `deploy/block-roundtrip.mjs` — round-trip + editability — `<protoURL> content/<p>.html [--blocks a,b] --ew`
77
- `deploy/build-harness.mjs` — structural harness — `content/<p>.html <out.html> [--root <dir>]`
8-
- `deploy/da-media-upload.mjs` — rehost images/mp4 — `--org --repo --scope <under media/> --dir|--manifest [--token-env|--token-file --dry-run]`; exit 3 = token halt
8+
- `deploy/da-media-upload.mjs` — rehost images/mp4 — `--org --repo --scope <under media/> --dir|--manifest [--dry-run]`; exit 3 = token halt
99
- `deploy/davids-model-lint.mjs` — content-model lint — `content/ | <page>.html [--json]`
10-
- `deploy/deploy-batch.mjs` — resumable PUT→preview→live — `--org --repo --branch --content content [--no-publish --token-env|--token-file]`; exit 1 = failures, 3 = token halt
10+
- `deploy/deploy-batch.mjs` — resumable PUT→preview→live — `--org --repo --branch --content content [--no-publish --token-env|--token-file]`; exit 3 = token halt
1111
- `deploy/ew-editability-probe.mjs` — editability gate — `--content <p>.html | <url…> [--simulate-editor]`
1212
- `deploy/localize-links.mjs` — source hrefs → root-relative — `--source-host <h> [--content content --check]`
1313
- `deploy/martech-scaffold.mjs` — contract → martech.js + hooks — `[--contract <json> --dry-run --force]`; exit 1 = invalid/conflict/no hook
@@ -20,8 +20,8 @@ Run the copies under `stardust/scripts/<skill>/`. Read before `--help`; ask it o
2020
- `diff/chrome-explore.mjs` — header states, motion, scroll — `<url> <out.json> [--width 1440,390 --max-requests 600]`
2121
- `diff/clip-probe.mjs` — clipped text/controls — `<url> [--width 1440 --json [f] --advisory]`; exit 2 = clipped > 0
2222
- `diff/content-diff.mjs` — structure + attribute/icon diff — `<protoURL> <edsURL> [--main <sel[,sel]> --no-chrome --profile generic --json]`
23-
- `diff/content-presence.mjs` — content per band + controls — `<originURL> <servedURL> [--variable <selO=selE,…> --json [f]]`; exit 2 = MISSING/HIDDEN
24-
- `diff/unit-geometry.mjs` — repeated-unit Δ — `<origin> <served> (--unit-pair <selO> <selE> | --families <units.json> --slug <s> [--stage <s>])`; exit 2 = unit off
23+
- `diff/content-presence.mjs` — content per band + controls — `<originURL> <servedURL> [--variable <selO=selE,…>]`; exit 2 = MISSING/HIDDEN
24+
- `diff/unit-geometry.mjs` — repeated-unit Δ — `<origin> <served> (--unit-pair <selO> <selE> | --families <units.json> --slug <s>)`; exit 2 = unit off
2525
- `diff/visual-diff.mjs` — screenshot diff + flags — `<protoURL> <edsURL> [--out <dir> --width <px> --main <sel>]`
2626
- `dynamics/dynamics-check.mjs` — replay parity (query count, titles) — `--origin <h> [--parity <json> --out stardust/qa]`
2727
- `dynamics/dynamics-detect.mjs` — detect dynamic features — `--urls a,b [--from-state stardust/state.json]`
@@ -44,25 +44,25 @@ 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 = no disk
48-
- `replica/gate-evidence.mjs` — sidecar gates from tables + jobs — `[--slug <s>]… [--content <dir> --tables <dir> --check --dry-run]`; `--unit <slug,…|@file>` = unit close; exit 2 = no or stale gate row
47+
- `replica/gate-all.mjs` — pixel tables (`--stage prototype --proto-base <u>`) — `[--only <slug,…> --sample <n> --prune-captures --skip-existing --eds-host <h> --wide]`; exit 2 = FAIL, 4 = no disk
48+
- `replica/gate-evidence.mjs` — sidecar gates from tables + jobs — `[--slug <s>]… [--check --dry-run]`; `--unit <slug,…|@file>` = unit close; exit 2 = no or stale gate row
4949
- `replica/gate.sh` — 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]`
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 % aux)
56-
- `replica/reference.mjs` — frozen origin + noise — `freeze <url> <dir> --width <px> [--captures 2 --force]`; `status|mask <dir>`; `assess <a.png> <b.png>`; exit 2 = unstable
56+
- `replica/reference.mjs` — frozen origin + noise — `freeze <url> <dir> --width <px>`; `status|mask <dir>`; `assess <a.png> <b.png>`; exit 2 = unstable
5757
- `replica/reference-url.mjs` — live URL is the inventory page? (gate.sh) — `<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]`
6363
- `replica/sibling-variance.mjs` — template deltas across siblings — `<archetypeURL> <siblingURL>… --probe name=<sel>`
64-
- `replica/source-spec.mjs` — box/font spec — `capture <live> --slug <s> [--widths 1440,360]`; `compare <spec> <build> [--tol 2]`; `view <spec> [--section <i>]`; exit 2 = off
65-
- `replica/stitch-shot.mjs` — stitched shot — `<url> <out.png> [--width --vh --settle --consent --[no-]dismiss --hide --freeze-baseline --check-baseline]`
64+
- `replica/source-spec.mjs` — box/font spec — `capture <live> --slug <s> [--widths 1440,360]`; `compare <spec> <build> [--tol 2]`; `view <spec>`; exit 2 = off
65+
- `replica/stitch-shot.mjs` — stitched shot — `<url> <out.png> [--width --vh --settle --consent --[no-]dismiss --hide]`
6666
- `reskin/canon-from-reskin.mjs` — migrate bridge — `<s> [--force]`
6767
- `reskin/capture-content.mjs` — content model — `--url <u> --out <d>`
6868
- `reskin/deployed-gate.mjs` — preview gates — `preview|all --page <s>`; 124 = none
@@ -92,7 +92,7 @@ Run the copies under `stardust/scripts/<skill>/`. Read before `--help`; ask it o
9292
- `rollout/plan.mjs` — conversion plan — `[--out <dir> --pending-only]`
9393
- `rollout/section-fidelity.mjs` — authored vs source outline — `--file <html> --source <u>|--source-file <p>`
9494
- `rollout/seed-redirects.mjs` — knowledge → redirects.tsv — `[--dry-run]`
95-
- `rollout/update-coverage.mjs` — status writer — `<slug> --status <s> [--url]`; `--block <id> --status <s>`; `--new <slug> --path --template --origin`; `--gate <table> [--pin]`
95+
- `rollout/update-coverage.mjs` — status writer — `<slug> --status <s> [--url]`; `--block <id> --status <s>`; `--gate <table> [--pin]`
9696
- `rollout/verify.mjs` — full-site verify — `[--base <u>|--root <dir> --all]`
9797
- `spec/spec-capture.mjs` — S6/S8 page + block crops — `[--urls <f> --from-cache]`
9898
- `spec/spec-fetch.mjs` — S2 resumable fetch — `[--urls <f> --headed|--archive <date>]`; exit 3 = blocked
@@ -107,6 +107,7 @@ Run the copies under `stardust/scripts/<skill>/`. Read before `--help`; ask it o
107107
- `spec/spec-rum.mjs` — S5 Optel: `[--days 90 --key-env <NAME>]`
108108
- `spec/spec-sheet.mjs` — contact sheet: `<component|row-shape>`
109109
- `spec/spec-variants.mjs` — S8 variants: `[--cut 0.5]`
110+
- `stardust/design-validate.mjs` — `design/` check — `[<dir>] [--new-blocks a,b] [--legacy]`
110111
- `stardust/impeccable-version-check.mjs` — newer?: `[--offline --json]`; `--where`
111112
- `stardust/ledger.mjs` — status.jsonl writer: `<skill> <phase> start|end|blocked [--detail --track --strict]`; `tail|last`
112113
- `stardust/state.mjs` — page status writer: `advance <slug…> --to <status> [--by]`; `summary [--slugs]`

0 commit comments

Comments
 (0)