0

stardust:direct

يحدد اتجاه إعادة تصميم موقع موجود: الألوان والأسلوب.

Set a redesign direction for an existing website. Analyzes the user's intent, picks a palette and visual direction, and writes the target design context (tokens, DESIGN.md and PRODUCT.md in design/) plus a reasoning trace at stardust/direction.md. Use when the user asks to redesign a site, refresh the design, set a new design direction, define a redesign target, or invokes $stardust direct (/stardust:direct in Claude Code).

Skill · سكل

Install

npx skills add adobe/skills --skill direct

Works with

claude-code (native), claude (native), codex (native), chatgpt (native), gemini-cli (native), cursor (native), copilot (native), opencode (native), amp (native), roo (native), kiro (native), goose (native), junie (native), trae (native), cline (compatible), continue (compatible), antigravity (compatible), windsurf (compatible), augment (compatible), qwen-code (compatible)

Content

stardust:direct

Resolve the user's freeform redesign intent into a complete target specification: the design context design/ (tokens, DESIGN.md, PRODUCT.md, context.json), stardust/direction.json with the divergence audit trail, and a stardust/direction.md with the full reasoning trace.

direct produces the spec against which prototype and migrate operate. It never writes prototypes or migrates pages — those are downstream sub-commands.

Inputs

  • <phrase> — optional positional. The user's freeform intent ("make it better", "more Linear less Salesforce", "feel more premium on a small screen"). If omitted, ask the user for one.
  • --re-direct — optional. Replace the current direction with a new one. Triggers stale-flagging on prototyped / approved / migrated pages per skills/stardust/reference/state-machine.md. Default behaviour without the flag is additive: if a direction already exists, the agent asks before replacing.
  • --rebrand — optional. Force rebrand mode (full divergence-seed roll, no Mode A inheritance). Without it the default is brand-faithful whenever the captured signal is signal-strong (reference/phase-2-divergence-inputs.md § Mode-detection precedence).
  • --prep — optional. Run in migrate-prep mode: confirm the type catalog, finalize the module catalog, capture color reservations and brand-level metadata defaults, re-evaluate direction against the wider crawl. See § Prep mode below. Typically invoked via the prepare-migration orchestrator.
  • --add-variant <name> — optional. Add a new variant against the existing direction without re-running intent reasoning or mode detection. Writes stardust/candidates/<name>/design/ and appends a per-variant section to stardust/direction.md; existing prototypes are not stale-flagged. See § Add-variant mode below.

Setup

  1. Run the master skill's setup (skills/stardust/SKILL.md § Setup) — hard impeccable dep check, context loader, state read.
  2. Verify stardust/state.json exists and contains at least one extracted page. If not, stop and recommend $stardust extract <url> first.
  3. Read stardust/current/_brand-extraction.json. If absent, stop — extract did not complete brand-surface extraction; re-run extract. 3b. Cross-site brand inputs (when present). state.json.designSource (design-donor mode: Mode A pins bind to the donor's derived system) and _brand-extraction.json.origins[] (sibling-property evidence: widens what can be amplified, not what is pinned). Read reference/cross-site-brand-inputs.md for the pin and evidence rules; surface the active mode in the plan.
  4. Read stardust/direction.md if present. If a prior direction exists and --re-direct was not passed, ask whether the user wants to refine the existing direction or replace it.
  5. Validate provenance (prep mode only). When --prep is active, run the provenance validation per reference/prep-mode.md before typing or module detection.
  6. Classify the captured brand signal. Read _brand-extraction.json and stamp one of:
  • signal-strong — palette has ≥ 3 distinct colors (after near-duplicate clustering and excluding pure black/white if they are the only entries) AND at least one captured type family is named in type.headingFamily.name or type.bodyFamily.name. This is the common case for any extracted commercial site.
  • signal-thin — palette has 2 colors OR no captured type family OR type.scaleAudit.kind === "ad-hoc" with fewer than 3 distinct heading sizes. The brand exists but cannot fully anchor a refresh.
  • signal-absent — palette has 1 color or 0, or _brand-extraction.json._provenance.notes flags the extraction as failed / login-walled / iframe-dominated. The classification feeds the Mode-detection precedence in Phase 2. Surface the classification in the plan when it would change the default mode.

Procedure

Phase 1 — Reasoning

Run the full intent-reasoning procedure from skills/stardust/reference/intent-reasoning.md. Steps 1-6: restate the phrase in dimensional vocabulary, identify movement, identify gaps, ask at most two clarifying questions, map to an impeccable command sequence, show the plan to the user.

Worked examples in skills/stardust/reference/intent-examples.md calibrate the style. Hard ceiling on questions: two per turn, no exceptions.

Zero movement is not a direction — hand off to replica. Before restating, check whether the phrase pins every axis unchanged: "exact replica", "same design", "pixel-perfect", "faithful", "keep the current design", "1:1", "re-platform only", "preserve verbatim", or ia-fidelity: verbatim with palette, type and density all pinned. That is a same-design migration and direct has nothing to decide: write a one-paragraph note to stardust/direction.md ("zero-movement phrase — same-design migration; the direction is the mechanical promotion in replica Phase 2"), stamp state.json.flow: "replica" if unset (../stardust/reference/state-machine.md § Flow keys), and stop with "run $stardust replica <url>". Never continue into a redesign direction, a --prep module catalog or a plan on such a phrase — under hands-off included: "ask nothing" below never means "proceed on a replica phrase". (Recorded: direct invoked with "exact replica — preserve verbatim" kept going; 2,207 pages were published at 24–28 % pixel diff, four to five times the replica pass bar.)

Hands-off mode (per skills/stardust/SKILL.md § Hands-off mode, state.json.handsOff: true): ask nothing and wait for nothing — after the zero-movement check above, which hands-off does not skip. Derive every answer the questions would have collected from the captured evidence — density and ia-fidelity from their documented defaults and trigger conditions, audience and register from the captured surface — and record each as a named assumption in direction.md § Movements (e.g. density: balanced (hands-off default — multi-audience floor fired)). The plan is still written; execution proceeds without the confirmation gate. Question budgets and gates below that say "ask the user" resolve the same way: derive, stamp the assumption, proceed.

Read reference/phase-1-tuning-questions.md before showing the plan: the one-shot density / ia-fidelity questions (within the two-question ceiling) and their defaults.

Wait for the user's confirmation ("go", or a correction to the plan) before moving on.

Phase 2 — Resolve the divergence inputs

Once the plan is confirmed, resolve the divergence-toolkit inputs and record every resolution in stardust/direction.json#divergence. Read reference/phase-2-divergence-inputs.md before Phase 2. Run its mode-detection precedence first: Mode A (brand-faithful — palette and type pinned to the captured surface) is the default whenever the signal is signal-strong; rebrand (full seed roll) needs an explicit rebrand phrase, --rebrand, or signal-absent. Under Mode A no variant may introduce a font or color outside the captured surface, and synthesised placeholders are forbidden.

Phase 2.5 — Improvements list (Mode A only)

Before any variant is rendered downstream, write stardust/prototypes/<slug>-improvements.md listing 3–5 specific weaknesses observed in the captured site. It is the brief variant A renders against: not prescriptive (no visual targets), but descriptive of the gap between the existing site and a competent 2026 execution of the same brand. Variants B+ honor the list as a floor (they may go further but not contradict it).

Skip this phase when the resolved mode is rebrand — the improvements list assumes brand-faithful inheritance, and a rebrand replaces the site rather than fixing it. Read reference/improvements-list.md before writing the list (audit reuse, categories, specificity bar, format).

Phase 2.6 — Multi-variant fork (when N > 1)

When the user requests N variants (phrase contains *"3 variants"*, *"4 directions"*, or equivalent), variant slots are role-differentiated, not seed-differentiated. Branch on the ia-fidelity tier stamped in Phase 1: surface-tuning forks A1/A2/A3 under verbatim; role-differentiated A + B + C (faithful

  • improvements / one captured trait amplified / a different captured trait amplified) under reimagined. Read reference/multi-variant.md and follow its variant role contract, differentiation contract (each variant pair differs by ≥ 2 substantive changes), surface-fork rules, and render-refusal conditions before resolving any variant.

Phase 3 — Resolve target PRODUCT.md

Resolve the PRODUCT.md sections with impeccable's reference/init.md § Write PRODUCT.md as the format spec (never invoke init: it runs an interview). Read reference/phase-3-product-md.md before Phase 3; Phase 4 step 3 writes the file. Never invent strategy.

Phase 4 — Author the target design context (site-level only)

<design> is design/ (single candidate; add the line design/ to .hlxignore) or stardust/candidates/<id>/design/ per variant (N > 1). In order, scripts from stardust/scripts/stardust/:

  1. <design>/tokens/tokens.json — every value; Mode A starts from stardust/current/design/tokens/tokens.json; the fixed :root names are token CSS names.
  2. design-tokens.mjs front-matter --tokens <design>/tokens --design <design>/DESIGN.md --name "<site>" — never hand-write it.
  3. The DESIGN.md prose (impeccable's reference/document.md sections), <design>/PRODUCT.md, <design>/context.json.
  4. design-validate.mjs <design> exits 0 (never skipped), then design-tokens.mjs sidecar --tokens <design>/tokens.

Read reference/phase-4-design-authoring.md before Phase 4: the system-vs-page boundary, token sources and CSS names (density hard floor included), the prose, direction-file fields, the IA-priority audit (Mode A), and variant folders. Every variant's motion records a decision: register (one of the five) or null, always with registerRationale — never an empty object.

Phase 5 — Write direction.md and update state

Write stardust/direction.md per skills/direct/reference/direction-format.md. The full reasoning trace: phrase, restatement, movements, gaps, questions and answers, resolved axes, divergence inputs, command sequence proposed, user confirmation, every assumption that defaulted in. Re-directs append to the file as a new section; prior direction stays as history.

Update stardust/state.json:

  • direction.resolvedAt = now
  • direction.phrase = the user's verbatim phrase
  • direction.directionFile = "stardust/direction.md"
  • For each page in scope: status extracted → directed
  • On --re-direct, for each page already in prototyped / approved / migrated: set stale: true and staleReason: "direction changed at <ts>". Do not change the status itself; the on-disk artifact is still valid, just out of step.

Print a one-screen summary report and recommend the next step; shape in reference/phase-5-summary-report.md.

Outputs

| Path | Purpose | |---------------------------------------|----------------------------------------------------| | design/ | Target design context (tokens, DESIGN.md, PRODUCT.md, context.json); single candidate. Listed in .hlxignore; .impeccable/design.json is its sidecar. | | stardust/direction.json | Direction decisions: divergence, iaPriorities, motion.register, capOverrides. | | stardust/candidates/<id>/design/, …/direction.json | Per-variant design context and decisions when N > 1 (Phase 2.6). | | stardust/prototypes/<slug>-improvements.md | Improvements list (Mode A only, written in Phase 2.5). The load-bearing artifact for variant A. | | stardust/direction.md | Resolved direction + full reasoning trace + per-variant resolutions when N > 1. | | stardust/state.json | Updated with direction + per-page status changes + direction.variantMode + direction.variants[] when N > 1. |

Failure modes

  • No extracted state. Abort and recommend $stardust extract.
  • Phrase too vague even after two questions. Persist the partial reasoning to stardust/direction.md under a # Pending section, ask the user to refine further, do not write a design context from incomplete reasoning.
  • Re-direct with prior approved or migrated pages. Always confirm before stale-flagging. The flag is visible to the user and reversible (clearing happens automatically on successful re-run of prototype or migrate), but a re-direct invalidates work the user may have signed off on.
  • Anti-toolbox audit removes too many moves. If the resolved direction collapses to defaults after the audit strips unjustifiable hits, surface this to the user and re-prompt for reference anchors before writing tokens.
  • (b) Insufficient brand signal for N variants. Fewer than 3 distinct amplifiable traits in the captured surface (or signal-thin) → refuse N ≥ 3 under Mode A and propose 1–2 variants instead; full contract in reference/multi-variant.md § Failure mode.
  • (c) Hard rule conflict. When Mode A is active *and* the user's phrase requires violating a Mode A pin (e.g., the user asks for *"a completely different palette"* while migration mode is active and --rebrand was not passed), stop. Name the conflict explicitly: *"You asked to keep the brand and to change the palette — those are not compatible. Did you mean (a) keep the current palette and only refresh execution, (b) rebrand (--rebrand) and roll a new palette, or (c) Mode A with a targeted palette move (single role recolored, rest pinned)?"* Wait for explicit answer.
  • (d) Empty improvements list. When Phase 2.5 produces fewer than 3 weaknesses meeting the specificity bar, stop before rendering any variant. Variant A's brief depends on the list; without it, the *"better"* claim fails. Surface honestly: *"the captured site is already at a competent execution level on observable dimensions — variant A would reduce to spacing and contrast adjustments only."* Ask the user whether to (a) proceed with reduced scope (density + contrast only), (b) extract additional pages (extract --cap 25 or higher) to surface more weaknesses, or (c) pivot to rebrand mode (--rebrand) where the brand-fidelity floor doesn't apply.

Prep mode (--prep)

When invoked with --prep, direct runs an extended pass that finalizes the inventory data structures migrate consumes: type catalog confirmation, module catalog finalization, color reservations, a wider direction re-evaluation, and site-level metadata defaults. Read reference/prep-mode.md and follow it on top of the standard procedure. Discovery-mode runs are unchanged.

Add-variant mode (--add-variant)

When the user has already approved (or rendered) variant A and asks for B / C / etc. as alternatives, --re-direct is too heavy — the user is extending the existing direction, not changing it. --add-variant <name> skips Phases 1–2 (mode, seed, palette, and ground family are inherited from the active direction), resolves the new variant's role per the variant role contract, and writes stardust/candidates/<name>/design/ plus a ## Variant <name> section in direction.md, without stale-flagging any page. Read reference/add-variant.md and follow its procedure, parentage and per-field inheritance rules, and failure modes before writing anything.

References

  • skills/stardust/reference/intent-dimensions.md — the 8 axes (the 7 axes plus § 8 IA-priority preservation, the Mode A constraint that fires on captured commercial-conversion / crisis / audience-routing signals).
  • skills/stardust/reference/intent-reasoning.md — the procedure.
  • skills/stardust/reference/intent-examples.md — worked examples.
  • skills/stardust/reference/impeccable-command-map.md — when to reach for each impeccable command (used when building the plan).
  • skills/stardust/reference/reference-research.md — the research-first anchor procedure (refero MCP → WebSearch → seed fallback) consumed by Mode B and Default mode; evidence shape and budgets.
  • skills/stardust/reference/divergence-toolkit.md — anti-mediocrity inputs and the v2 storage shape for the audit trail. Contains the anti-toolbox additions for multi-variant moves (C-cliff overshoot, Anonymous middle variant, Variant homogeneity) and universal hardening (Fabricated content, Hero text on photographic background without contrast scrim, Editorial-register vocabulary applied to non-editorial brands).
  • skills/stardust/reference/artifact-map.md — provenance shape.
  • reference/direction-format.md — schema for stardust/direction.md.
  • reference/palette-picker.md — palette resolution procedure.
  • reference/prep-mode.md — the --prep extended pass (provenance validation, type/module catalogs, color reservations, metadata).
  • reference/add-variant.md — the --add-variant flow (procedure, variant parentage, per-field inheritance, failure modes).
  • reference/multi-variant.md — the N > 1 fork: variant role contract, differentiation contract, surface forks, C-cliff.
  • reference/improvements-list.md — Phase 2.5 improvements list: audit reuse, categories, specificity bar, format, stop calibration.
  • reference/phase-1-tuning-questions.md — Phase 1 density and IA-fidelity questions.
  • reference/phase-2-divergence-inputs.md — Phase 2 mode detection and Modes A, A+, B, C, default.
  • reference/phase-3-product-md.md — Phase 3 PRODUCT.md sections.
  • reference/phase-4-design-authoring.md — Phase 4 design-context authoring (tokens, CSS names, prose) and the IA-priority audit.
  • reference/phase-5-summary-report.md — Phase 5 report shape.
  • reference/mode-a-plus.md — bounded brand-adjacent refinements.
  • reference/cross-site-brand-inputs.md — design-donor and

Source and license

Source
Adobe Skills
Original
adobe/skills/plugins/stardust/skills/direct/SKILL.md
License
Apache-2.0