Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions plugins/stardust/skills/stardust/reference/scripts-index.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Scripts index — `<skill>/<script>` — what — key flags (CLIs only; import-only libraries are not listed)
# Scripts index — `<skill>/<script>` — what — key flags (CLIs only)

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.

- `deploy/ai-readability.mjs` — AI-readability — `--origin <o> [--paths <f> --min 98]`
- `deploy/block-roundtrip.mjs` — round-trip + editability — `<protoURL> content/<p>.html [--blocks a,b] --ew`
- `deploy/build-harness.mjs` — structural harness — `content/<p>.html <out.html> [--root <dir>]`
- `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
- `deploy/da-media-upload.mjs` — rehost images/mp4 — `--org --repo --scope <under media/> --dir|--manifest [--dry-run]`; exit 3 = token halt
- `deploy/davids-model-lint.mjs` — content-model lint — `content/ | <page>.html [--json]`
- `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
- `deploy/deploy-batch.mjs` — resumable PUT→preview→live — `--org --repo --branch --content content [--no-publish --token-env|--token-file]`; exit 3 = token halt
- `deploy/ew-editability-probe.mjs` — editability gate — `--content <p>.html | <url…> [--simulate-editor]`
- `deploy/localize-links.mjs` — source hrefs → root-relative — `--source-host <h> [--content content --check]`
- `deploy/martech-scaffold.mjs` — contract → martech.js + hooks — `[--contract <json> --dry-run --force]`; exit 1 = invalid/conflict/no hook
Expand All @@ -20,8 +20,8 @@ Run the copies under `stardust/scripts/<skill>/`. Read before `--help`; ask it o
- `diff/chrome-explore.mjs` — header states, motion, scroll — `<url> <out.json> [--width 1440,390 --max-requests 600]`
- `diff/clip-probe.mjs` — clipped text/controls — `<url> [--width 1440 --json [f] --advisory]`; exit 2 = clipped > 0
- `diff/content-diff.mjs` — structure + attribute/icon diff — `<protoURL> <edsURL> [--main <sel[,sel]> --no-chrome --profile generic --json]`
- `diff/content-presence.mjs` — content per band + controls — `<originURL> <servedURL> [--variable <selO=selE,…> --json [f]]`; exit 2 = MISSING/HIDDEN
- `diff/unit-geometry.mjs` — repeated-unit Δ — `<origin> <served> (--unit-pair <selO> <selE> | --families <units.json> --slug <s> [--stage <s>])`; exit 2 = unit off
- `diff/content-presence.mjs` — content per band + controls — `<originURL> <servedURL> [--variable <selO=selE,…>]`; exit 2 = MISSING/HIDDEN
- `diff/unit-geometry.mjs` — repeated-unit Δ — `<origin> <served> (--unit-pair <selO> <selE> | --families <units.json> --slug <s>)`; exit 2 = unit off
- `diff/visual-diff.mjs` — screenshot diff + flags — `<protoURL> <edsURL> [--out <dir> --width <px> --main <sel>]`
- `dynamics/dynamics-check.mjs` — replay parity (query count, titles) — `--origin <h> [--parity <json> --out stardust/qa]`
- `dynamics/dynamics-detect.mjs` — detect dynamic features — `--urls a,b [--from-state stardust/state.json]`
Expand All @@ -44,25 +44,25 @@ Run the copies under `stardust/scripts/<skill>/`. Read before `--help`; ask it o
- `replica/css-rules.mjs` — rule blocks by selector regex — `<f.css> "<re>" [--media <re>|--no-media --decl <re>]`
- `replica/diff-report.mjs` — diff % per block, HTML — `<gateDir> <buildURL> [--blocks <css> --top 4]`
- `replica/foundation-freeze.mjs` — frozen foundation, sha256 manifest — `freeze [--paths a,b]`; `check`
- `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
- `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
- `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
- `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
- `replica/gate.sh` — gate round + overflow (`--full` + probes) — `<slug> <live> <build> <width> [iter --full --main <sel> --consent --[no-]dismiss --live-origin]`
- `replica/html-slice.mjs` — one captured element — `<page.html> header|footer|main|.cls [--text --all]`
- `replica/json-query.mjs` — bounded JSON view — `<f.json> [--path <p> --keys --match k=re --fields a,b]`
- `replica/measure.mjs` — rects, computed values, scrollWidth, renditions — `<url> --selectors "a,b" [--against <url> --width 1440,360 --all-matches]`
- `replica/measure.mjs` — rects, computed values + renditions — `<url> --selectors "a,b" [--against <url> --width 1440,360]`
- `replica/motion-compare.mjs` — live vs build motion, advisory — `<live.json> <build.json> [--tolerance-ms]`
- `replica/motion-observe.mjs` — observe motion — `<url> <out.json> [--click <sel>]… [--hover <sel>]…`
- `replica/pixel-compare.mjs` — pixel diff + bands — `<a.png> <b.png> [--out diff.png --threshold 10 --mask yA:h --text-boxes <json>]` (text % aux)
- `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
- `replica/reference.mjs` — frozen origin + noise — `freeze <url> <dir> --width <px>`; `status|mask <dir>`; `assess <a.png> <b.png>`; exit 2 = unstable
- `replica/reference-url.mjs` — live URL is the inventory page? (gate.sh) — `<slug> <live-url>`; exit 7 = another rendering
- `replica/rounds.mjs` — round cap ledger, exit 6 — `check|record|decide|status <dir> --stage <s>`; `count <root>`
- `replica/row-profile.mjs` — row luminance profile — `<a.png> [<b.png> --color #rrggbb]`
- `replica/run-bg.mjs` — background jobs, bounded wait — `start --name <j> [--slots 3] -- <cmd>`; `wait [--max ≤110]`; `log <j>`
- `replica/run-capped.mjs` — deadline wrapper, exit 124 — `--timeout <s> -- <cmd>`
- `replica/section.mjs` — one Markdown section / outline — `<doc.md> --list | "<heading re>" [--all --max-lines]`
- `replica/sibling-variance.mjs` — template deltas across siblings — `<archetypeURL> <siblingURL>… --probe name=<sel>`
- `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
- `replica/stitch-shot.mjs` — stitched shot — `<url> <out.png> [--width --vh --settle --consent --[no-]dismiss --hide --freeze-baseline --check-baseline]`
- `replica/source-spec.mjs` — box/font spec — `capture <live> --slug <s> [--widths 1440,360]`; `compare <spec> <build> [--tol 2]`; `view <spec>`; exit 2 = off
- `replica/stitch-shot.mjs` — stitched shot — `<url> <out.png> [--width --vh --settle --consent --[no-]dismiss --hide]`
- `reskin/canon-from-reskin.mjs` — migrate bridge — `<s> [--force]`
- `reskin/capture-content.mjs` — content model — `--url <u> --out <d>`
- `reskin/deployed-gate.mjs` — preview gates — `preview|all --page <s>`; 124 = none
Expand Down Expand Up @@ -92,7 +92,7 @@ Run the copies under `stardust/scripts/<skill>/`. Read before `--help`; ask it o
- `rollout/plan.mjs` — conversion plan — `[--out <dir> --pending-only]`
- `rollout/section-fidelity.mjs` — authored vs source outline — `--file <html> --source <u>|--source-file <p>`
- `rollout/seed-redirects.mjs` — knowledge → redirects.tsv — `[--dry-run]`
- `rollout/update-coverage.mjs` — status writer — `<slug> --status <s> [--url]`; `--block <id> --status <s>`; `--new <slug> --path --template --origin`; `--gate <table> [--pin]`
- `rollout/update-coverage.mjs` — status writer — `<slug> --status <s> [--url]`; `--block <id> --status <s>`; `--gate <table> [--pin]`
- `rollout/verify.mjs` — full-site verify — `[--base <u>|--root <dir> --all]`
- `spec/spec-capture.mjs` — S6/S8 page + block crops — `[--urls <f> --from-cache]`
- `spec/spec-fetch.mjs` — S2 resumable fetch — `[--urls <f> --headed|--archive <date>]`; exit 3 = blocked
Expand All @@ -107,6 +107,7 @@ Run the copies under `stardust/scripts/<skill>/`. Read before `--help`; ask it o
- `spec/spec-rum.mjs` — S5 Optel: `[--days 90 --key-env <NAME>]`
- `spec/spec-sheet.mjs` — contact sheet: `<component|row-shape>`
- `spec/spec-variants.mjs` — S8 variants: `[--cut 0.5]`
- `stardust/design-validate.mjs` — `design/` check — `[<dir>] [--new-blocks a,b] [--legacy]`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude: Not blocking. To fit this row under the 12 KB cap, the rebased branch now cuts 12 existing rows, not the four the description mentions. It drops, for example, --token-env|--token-file from da-media-upload, exit 1 = failures from deploy-batch, --json from content-presence, --all-matches from measure, --new from update-coverage, and --freeze-baseline/--check-baseline from stitch-shot. I checked each one: it is still documented in a reference (da-source-api.md, handoff-contract.md, coverage-model.md) or used only inside other scripts. Still, an agent reading the index will now call --help for these flags. Please update the description to match ("12 rows shortened"). For the next index addition, consider shortening descriptions rather than dropping flags, since this index exists to avoid --help calls.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. The description now says 12 rows were shortened, and why each dropped flag is still safe: documented in a reference or used only inside other scripts. Agreed on the next addition: shorten descriptions before dropping flags.

- `stardust/impeccable-version-check.mjs` — newer?: `[--offline --json]`; `--where`
- `stardust/ledger.mjs` — status.jsonl writer: `<skill> <phase> start|end|blocked [--detail --track --strict]`; `tail|last`
- `stardust/state.mjs` — page status writer: `advance <slug…> --to <status> [--by]`; `summary [--slugs]`
Loading
Loading