Skip to content

Commit a24924e

Browse files
paolomozclaude
andcommitted
docs(stardust): cut two passages the review found redundant; fix two stale sizing pointers
validation-loop's generic rendered-page checklist and the ambiguous-phrase rationale in direct's mode precedence are cut to what a baseline does not know; extract's JavaScript-only fallback keeps only where it is recorded. extract's phase-4 seed and reskin's gates table now name stardust/replica/sizing.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f60ed69 commit a24924e

5 files changed

Lines changed: 11 additions & 25 deletions

File tree

‎plugins/stardust/skills/direct/reference/phase-2-divergence-inputs.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ whether the seed needs rolling at all.
1111

1212
The default mode for `direct` is determined by whether an extracted
1313
brand surface exists with usable signal — **not** by the user's
14-
freeform phrase alone. Ambiguous refresh phrases ("make it modern",
15-
"stunning new version", "design fatigue cure") are migration-shaped
16-
asks, not rebrand triggers. The precedence is asymmetric on purpose:
17-
the safer mode (Mode A — brand-faithful) catches ambiguous phrases;
18-
the riskier rebrand mode requires the user to name it.
14+
freeform phrase alone.
1915

2016
1. **Site migration / refresh — DEFAULT.** When the captured brand
2117
signal stamped in `SKILL.md` § Setup step 6 is `signal-strong`, Mode A is

‎plugins/stardust/skills/extract/reference/failure-modes.md‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ Consumed by SKILL.md § Failure modes, whenever a page or the crawl fails.
3838
challenged (Cloudflare challenge, field-confirmed). Probe one
3939
asset with curl BEFORE reaching for in-page-fetch machinery; the
4040
in-page harvest is the fallback, not the default.
41-
- **JavaScript-only content.** Playwright already handles this. If
42-
the configured wait condition never fires within the mode's hard
43-
cap (`playwright-recipe.md` § Wait modes), fall back to
44-
`domcontentloaded` and capture what is rendered. Record the
45-
fallback in the per-page `_provenance.waitMode` and surface in the
46-
wait-summary line of the final report.
41+
- **JavaScript-only content.** When the wait condition never fires
42+
within the mode's hard cap (`playwright-recipe.md` § Wait modes),
43+
the `domcontentloaded` fallback is recorded in the per-page
44+
`_provenance.waitMode` and in the wait-summary line of the final
45+
report.
4746
- **Synthesis attempt (forbidden).** When the agent (or a delegated
4847
sub-agent) cannot run a real Playwright render for a page —
4948
whether due to time pressure, token budget, or a tool/network

‎plugins/stardust/skills/extract/reference/phase-4-seed.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ prints; read each spec by section, not whole):
3232
(`colors`, `typography`, `rounded`, `spacing`, `components`) from
3333
the captured tokens. The `extensions` block of DESIGN.json carries
3434
v1's `componentStyle`, `motifs`, and `voice` arrays so nothing is
35-
lost, and `breakpoints` — the cap-probe sizing model — verbatim.
35+
lost; the cap-probe sizing model stays in `stardust/replica/sizing.json`.

‎plugins/stardust/skills/reskin/reference/gates.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ fetches `.plain.html` without a browser.
549549
| `tokens` A2 | blocks | `donor-probe`: palette and type on `body`, `main h1`, `main h2`, the primary button on `main a.button.primary`, `layout.sectionPaddingY` on every non-empty `main > .section` (top and bottom; with the page's Figma checks file a kit pads per module, so those rows are a SKIP and the `figma` step's geometry holds each section to its module), every `:root` token verbatim, with the optional `--card-bg`, `--card-radius`, `--card-padding`, `--card-title-color`, `--button-height`, `--section-padding-mobile`, `--gutter-mobile` when the sheet carries `cards.primary.*`, `buttons.primary.height`, `layout.mobile.*` (the probe runs at 1440 only: the mobile ones are asserted as `:root` values) | exact, first font family only (a font declared but not served is an `ADVISORY tokens font.unserved` line, left out of n, never a FAIL); sections ±16px; container width is `parity`'s cap row |
550550
| `parity` A3 | blocks | at 1440 and 360 the preview against the reskin page (replica's instruments); at 1440 also `chrome-parity` and `cap-probe` | pixels ≤ 10% and Δh ≤ 5% of the reskin page's height; per section (`section[data-slot]` paired in order with non-empty `main > .section`) the worst Δh ≤ 10% of its height, n/a when the counts differ; a header or footer the reskin page lacks left out of the preview's capture; on a `--sandbox` preview a header or footer `mapping.md` maps no chrome row to is the boilerplate's own: hidden on both sides, its crop n/a and recorded (`parity.json` `ignored`); header and footer crops ≤ 2%; caps ±20px, a missing cap fails; `chrome-parity` advisory |
551551
| `sanity` A4 | **hard**: no delta file or residual waives it | at 1440 and 360 overflow, decoration, images, page errors; at 1440 `clip-probe` and `content-presence` | overflow ≤ 4px; every `data-section-status` and `data-block-status` `loaded`; broken images 0; page errors 0; `clip-probe` 0; HIDDEN + MISSING 0; a page answering HTTP 400 or more is no verdict (exit 124), never a pass |
552-
| `inherited` A5 | blocks | `.plain.html`, `ai-readability`, `qa-gate` (with `eds-schema/<slug>.json` and `design.json`) | `.plain.html` 200, one `<h1>`, no `about:error`, no `/img/` src, a top-level `<div>`; `ai-readability` ≥ 98; `qa-gate` exit 0 on the inputs there are, a missing one (`eds-schema/<slug>.json`, `design.json`) being a FAIL row `incomplete: no …`, never `n/a`. `localize-links --check`, `davids-model-lint` and `block-roundtrip --ew` ran in `deploy`'s loop: "by deploy", not in the verdict |
552+
| `inherited` A5 | blocks | `.plain.html`, `ai-readability`, `qa-gate` (with `eds-schema/<slug>.json` and `sizing.json`) | `.plain.html` 200, one `<h1>`, no `about:error`, no `/img/` src, a top-level `<div>`; `ai-readability` ≥ 98; `qa-gate` exit 0 on the inputs there are, a missing one (`eds-schema/<slug>.json`, `sizing.json`) being a FAIL row `incomplete: no …`, never `n/a`. `localize-links --check`, `davids-model-lint` and `block-roundtrip --ew` ran in `deploy`'s loop: "by deploy", not in the verdict |
553553
| figma B | as (d) | `figma-gate all --target preview`, when `figma-checks/<slug>.json` exists | as (d) |
554554

555555
- **Protected preview.** Out of scope: the preview must be reachable without

‎plugins/stardust/skills/stardust/reference/validation-loop.md‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,9 @@ HTML):
1010

1111
1. Render in Playwright (file:// for static, or local dev server), through
1212
`browser.mjs` (`skills/stardust/SKILL.md` § Setup, step 7).
13-
2. Capture at three viewports — desktop **1440×900**, tablet **768×1024**,
14-
mobile **390×844**:
15-
- Full-page screenshot.
16-
- Browser console messages (errors + warnings).
17-
- Network failures (4xx / 5xx / aborted requests, missing assets).
18-
- Uncaught JS exceptions + unhandled promise rejections.
19-
- Layout sanity: no horizontal overflow; key landmarks present and
20-
non-empty.
21-
- a11y quick-pass: alt text, input labels, heading order, contrast on
22-
text-over-image.
23-
- Interaction smoke: hover an interactive card, scroll-trigger fires,
24-
nav opens/closes, primary CTA reachable by keyboard.
13+
2. Capture at desktop **1440×900**, tablet **768×1024** and mobile
14+
**390×844** the usual rendered-page checks (screenshot, console,
15+
network, exceptions, overflow, a11y quick-pass, interaction smoke).
2516
3. **If any issue is found, fix it and re-run the loop.** Iterate
2617
recursively until either (a) no issues remain or (b) the fix needs user
2718
input — in which case surface the question and stop. Do not report a

0 commit comments

Comments
 (0)