Harness Intelligence Wiki
Grilling

Design Phase Redesign Grill Log

Design Phase Redesign Grill Log

Context

  • Source: user direction, 2026-10-16. The current design-phase "is weird and not really working". Noted to-do: "enhance design phase with proper skills/flows. shadcn design skill to create good design system at first".
  • Input: two $brainstorm rounds (R1 and R2) answered inline by the user.
  • Target: the shared skill source wearedevpunks/skills skills/phases/design-phase, vendored to apps/cli/skills/phases/design-phase.
  • Authoring method: write-graph-based-skills (Convert mode) for structure and writing-for-agents for gate text. Both run after grill closure.
  • Upstream snapshots inspected: emilkowalski/skills@2d228630ba14, Leonxlnx/taste-skill@f624f37a8c65, shadcn-ui/ui skills/shadcn (main, 2026-10-16).

Current-State Findings

Facts, not decisions:

  • design-phase/phases/prototype.md delegates to $prototype without selecting a branch. prototype/SKILL.md LOGIC branch produces "a single shareable HTML file".
  • $prototype rules 6-7 retain work on a prototype/<slug> branch out of main. The router goes prototype → approval with no iteration edge.
  • After approval, the route is backlog → delivery-handoff → $delivery-phase. No edge returns later visual changes to a variant round.
  • Claude has no image-generation tool. HI ships no image tool runtime (apps/cli/src/data/tool-runtimes/ holds only typegraph-mcp). The gate falls back to $prototype, so image work silently disappears.
  • shadcn design-system.md requires a DESIGN.md as input and never writes one. Its Step 1 scaffolds a new app.
  • design-taste-frontend declares "Not for dashboards or app screens."
  • redesign-existing-projects and gpt-taste exist under apps/cli/skills/agnostic/frontend/ but are absent from apps/cli/src/data/catalog/skills.ts.
  • animate-expo is already in the expo pack (apps/cli/src/data/catalog/packs.ts), pinned at emilkowalski/skills@e879241fab3c.
  • Taste output-skill is full-output-enforcement: it bans truncation and placeholder code. It does not check copy.
  • Emil skills break-ui, mobile-native, and the current upstream animate/animate-expo start with an "Initial Response" greeting that waits for a user question.
  • The frontend pack is a surface pack. It installs when nextjs or react is detected (apps/cli/src/registry/shape.ts:surfaceApplies). Expo apps depend on react.

Branch: Variant Placement And Loop

Q1

Prerequisites:

  • none

Evidence anchor:

  • skills/phases/design-phase/phases/prototype.md; skills/agnostic/research/prototype/SKILL.md rules 6-7; skills/agnostic/research/prototype/UI.md sub-shape A; upstream emilkowalski/skills/skills/prototype Hard Rule 1.

Question: Where do design variants live?

Accepted answer:

  • Variants live in the real app, on the real route, on the working branch, behind a dev-only ?variant= switch.
  • No standalone HTML prototypes.
  • No prototype/<slug> branch.
  • No isolated /prototypes/<slug> route.

Q2

Prerequisites:

  • Q1

Question: Which skill is the variant engine?

Accepted answer:

  • Emil's prototype skill, vendored and adapted so variants stay on the real route (Q1).
  • Keep its verdict vocabulary: riff, keep, plus combine and reject.
  • design-phase stops calling Matt's $prototype. Matt's prototype and prototype-phase stay unchanged for Finder.

Q3

Prerequisites:

  • Q2

Question: How many variants per round?

Accepted answer:

  • Default 3. Cap 5 (Emil's cap; not contested).
  • Each variant is responsive: it is checked at mobile and desktop widths (follows Q14 and Q19).

Q4

Prerequisites:

  • Q1, Q2

Question: How does iteration work, and where do later visual edits enter?

Accepted answer:

  • variant-round → quality-gate → verdict is an explicit graph loop. riff and combine return to variant-round.
  • The round counter and the motion-plan ledger live in the durable handoff, so cold resume continues the same loop.
  • A later visual change re-enters at compose when the layout changes, otherwise at variant-round. It never continues outside the design flow.

Q5

Prerequisites:

  • Q4

Question: Does the separate approval gate stay?

Accepted answer:

  • No. A keep verdict is the approval. promote writes the approved artifact contract.
  • Axiom kept from the current skill: approval is never inferred from artifact existence.

Branch: UI Code Ownership

Q6

Prerequisites:

  • Q1

Evidence anchor:

  • skills/phases/design-phase/phases/delivery-handoff.md; skills/phases/delivery-phase; skills/agnostic/planning/implement-spec.

Question: Who owns production UI code, and what does delivery do with it?

Accepted answer:

  • design-phase writes and commits the UI/UX code.
  • delivery-phase does not reimplement UI/UX. It picks up the committed code and adds logic, data, and the rest of the requirement.
  • delivery-phase changes design-owned UI files only to fix a defect, and it records each such change.
  • Authorization: the user explicitly directed this phase-boundary change on 2026-10-16.

Code consequence:

  • delivery-phase and implement-spec gain a rule that design-owned UI files are accepted input. Their contract tests move with the rule.

Q7

Prerequisites:

  • Q5, Q6, Q21

Question: What does promote do?

Accepted answer:

  • Run full break-ui on the kept variant.
  • Rewrite the kept variant in place as production code on the real route.
  • Remove the ?variant= switch.
  • Keep the worst-case fixtures and their toggle dev-only, as the regression test.
  • Commit the result and write the approved artifact contract.

Branch: Brand And Design System

Q8

Prerequisites:

  • none

Question: When does the brand gate run, and what does it produce?

Accepted answer:

  • The brand gate is the first design step. It runs brandkit through Codex image generation (Q13) and produces brand boards.
  • It always runs unless fresh brand artifacts already exist.
  • Human checkpoint: the user accepts the boards.

Q9

Prerequisites:

  • Q8

Question: Who writes DESIGN.md?

Accepted answer:

  • design-phase owns a DESIGN.md template in Google Stitch DESIGN.md format.
  • The template is filled from the accepted brand boards and intake evidence.
  • Do not vendor taste-skill stitch-design-taste.

Q10

Prerequisites:

  • Q9

Evidence anchor:

  • upstream shadcn-ui/ui/skills/shadcn/SKILL.md "Design Systems from DESIGN.md"; design-system.md Steps 1-7.

Observed constraint:

  • shadcn Step 1 init --template creates a new app. Steps 3-7 work in any project with components.json.

Question: How is shadcn used?

Accepted answer:

  • shadcn is the component base. Web UI is built mostly from shadcn components.
  • The design-system gate maps DESIGN.md to the theme through shadcn design-system.md Steps 3-7 inside the existing app: tokens to CSS variables, radius, shadows, fonts, type utilities, cva variants, design-system page, browser verification.
  • When the app has no components.json, the gate runs shadcn init in the existing app. It never uses the --template new-app path.

Q11

Prerequisites:

  • Q10

Question: What does the design-system gate produce for Expo?

Accepted answer:

  • Expo projects get a NativeWind/theme config instead of a shadcn theme.
  • The Expo component base (for example react-native-reusables or expo-ui) is parked. User: "not an issue right now".

Q12

Prerequisites:

  • Q10

Question: Does the design-system gate stop for the user?

Accepted answer:

  • No. The gate validates in the browser and shows the result without a stop.

Branch: Image Generation

Q13

Prerequisites:

  • none

Evidence anchor:

  • T3 orchestrator_capabilities lists provider codex with canRunCrossProviderChildTask: true.

Question: How does design-phase generate images?

Accepted answer:

  • Through Codex. The gate holds explicit calling guidance, in order:
    1. The agent is Codex: use its own image tool.
    2. Inside T3: delegate_task to the codex provider.
    3. Otherwise: codex exec when installed.
    4. Else: block and state why.
  • No silent fallback.

Unproved runtime behavior:

  • Codex child image-tool availability is user-asserted, not verified in this grill.

Q14

Prerequisites:

  • Q10, Q13

Question: How are composition images produced?

Accepted answer:

  • For each scope unit, use both imagegen-frontend-web and imagegen-frontend-mobile by default, unless the user specifies one surface.
  • Image briefs include DESIGN.md, the shadcn-primitive directive (Q15), and the copy lens (Q22).
  • Human checkpoint: the user accepts the compositions.

Q15

Prerequisites:

  • Q14

Question: Where does the shadcn-primitive directive live?

Accepted answer:

  • In a design-phase reference that compose appends to every image brief.
  • The vendored imagegen skills stay close to upstream.

Branch: Motion

Q16

Prerequisites:

  • Q14

Question: When does find-animation-opportunities run, and what does it persist?

Accepted answer:

  • Right after the accepted compositions, as the motion-plan gate.
  • It writes a durable per-proposal MOTION-PLAN ledger with entry states proposed → accepted → built → verified.
  • variant-round builds accepted entries with animate (web) or animate-expo (Expo). quality-gate checks conformance.

Branch: Variant-Round Skill Activation

Q17

Prerequisites:

  • Q2

Question: When is design-taste-frontend active?

Accepted answer:

  • Always, for every surface, including app screens, despite its "Not for dashboards or app screens" scope line.

Q18

Prerequisites:

  • Q2

Question: When is redesign-existing-projects active?

Accepted answer:

  • Only when the user clearly intends to improve or work on existing UI.

Q19

Prerequisites:

  • Q2

Question: Which mobile skill is mandatory?

Accepted answer:

  • Emil's mobile-native is mandatory for mobile-responsive web.
  • Remove HI's improve-mobile-frontend.

Q20

Prerequisites:

  • Q2

Question: Which other skills does variant-round compose?

Accepted answer:

  • shadcn components, design-taste-frontend, image-to-code, emil-design-eng, animate or animate-expo, mobile-native (web), and redesign-existing-projects when Q18 applies.

Branch: Quality Gate

Q21

Prerequisites:

  • Q4

Question: When does break-ui run, and what is a pass?

Accepted answer:

  • A light break-ui check on every variant in every round. A full run before promote.
  • Pass: zero open "What broke" items, every "Decision for you" closed by the user, fixture and toggle dev-only. (Conservative default from R1; not contested.)
  • Every UI/UX element must pass break-ui before promote.

Q22

Prerequisites:

  • none

Question: What is the copy lens?

Accepted answer:

  • Taste v2 references/copy.md plus the imagegen "Copy AI tells" list.
  • Keep full-output-enforcement as a separate guard against truncated code.

Q23

Prerequisites:

  • Q16, Q19, Q21, Q22

Question: What does quality-gate check before the user sees variants?

Accepted answer:

  • Light break-ui, the mobile-native checklist, review-animations, the copy lens, and MOTION-PLAN conformance. It records pass/fail per variant.
  • Only variants that pass reach the verdict.

Branch: Vendoring And Packs

Q24

Prerequisites:

  • Q2, Q19, Q21

Question: Which upstream skills are vendored, and how?

Accepted answer:

  • From Emil, at one shared pin: prototype (adapted per Q1), break-ui (with CATALOG.md), mobile-native, emil-design-eng, find-animation-opportunities. Refresh animate and animate-expo to the same pin.
  • Remove the "Initial Response" greeting from every vendored Emil skill. Inside design-phase they run without waiting.
  • From taste-skill: brandkit; refresh redesign-existing-projects and add it to skills.ts.
  • From shadcn: shadcn with its rules/, design-system.md, design-system-page.md, and scripts/.
  • Each edited copy records its edits in UPSTREAM.md. emil-kowalski-animation-provenance.contract.test.mjs checks the stated diff instead of byte identity.

Q25

Prerequisites:

  • Q19

Question: What is removed?

Accepted answer:

  • gpt-taste and improve-mobile-frontend, with their tests and references.

Q26

Prerequisites:

  • Q24

Evidence anchor:

  • apps/cli/src/data/catalog/packs.ts packs planning, frontend, expo; apps/cli/src/registry/shape.ts:surfaceApplies.

Question: Which packs hold design-phase and its skills?

Accepted answer:

  • Move design-phase out of planning into frontend.
  • frontend holds every design skill above, including shadcn.
  • animate-expo stays in expo (already present; satisfies the original "include in expo pack" request) and moves to the shared pin.

Code consequence:

  • design-phase installs only where nextjs or react is detected. Expo apps qualify through react.

Branch: Durable Artifacts And Checkpoints

Q27

Prerequisites:

  • Q4, Q16

Question: Where do the design handoff and artifacts live?

Accepted answer:

  • Beside SPEC.md. Images become durable through repo-asset-management.
  • Illustrative: exact folder and filenames are confirmed during write-graph-based-skills.

Q28

Prerequisites:

  • Q8, Q12, Q14, Q4

Question: Where does design-phase stop for the user?

Accepted answer:

  • Brand (accept boards), compose (accept compositions), verdict (riff, combine, keep, reject).
  • design-system does not stop (Q12).

Accepted Target Graph

router
 ├─ intake          surface (web | expo), existing-UI intent, routes, components.json,
 │                  DESIGN.md, theme, brand artifacts, screenshots → confidence
 ├─ grill           lean scope units + constraints (requirements-grill)
 ├─ brand           brandkit via Codex → boards                  [HUMAN accept]  skip if fresh
 ├─ design-system   DESIGN.md (Stitch template) → shadcn theme + cva variants + DS page
 │                  | Expo: NativeWind theme → browser check
 ├─ compose         web + mobile screens via Codex + shadcn-primitive directive
 │                  + DESIGN.md + copy lens                      [HUMAN accept]
 ├─ motion-plan     find-animation-opportunities → MOTION-PLAN ledger
 ├─ variant-round ◄──────────────────────────────────────────┐
 │   3 variants on the real route (?variant=), shadcn components,
 │   design-taste-frontend, image-to-code, emil-design-eng,
 │   animate | animate-expo, mobile-native, redesign-existing-projects (if intent)
 ├─ quality-gate    light break-ui, mobile-native, review-animations,
 │                  copy lens, motion-plan conformance
 ├─ verdict         HUMAN: riff | combine | keep | reject ──────┘
 ├─ promote         full break-ui → rewrite in place → remove switch → commit + contract
 ├─ backlog         link commit + artifacts, or return to requirements-phase
 └─ delivery-handoff  UI is committed; delivery adds logic only

Glossary Decisions

Glossary Q29

Question: Which terms are canonical for the redesigned design-phase?

Accepted answer:

  • Canonical term: Variant Round — one pass that builds the round's variants on the real route and runs the quality gate.
  • Avoid: prototype, prototype round
  • Canonical term: Variant — one divergent design direction for a scope unit, rendered in the real app behind ?variant=.
  • Canonical term: Verdict — the user's decision on a variant round: riff, combine, keep, or reject.
  • Canonical term: Promote — rewriting the kept variant in place as committed production UI code.
  • Canonical term: Design-Owned UI Code — UI code that design-phase committed through promote.
  • Canonical term: Brand Kit — the accepted brandkit boards that define brand identity.
  • Canonical term: Composition — an accepted generated image of a screen or UX piece.
  • Canonical term: Motion Plan — the durable ledger of animation opportunities per composition, with entry state.
  • Canonical term: Quality Gate — the checks every variant passes before the verdict.
  • Canonical term: shadcn-Primitive Directive — the design-phase reference appended to every image brief.
  • Relationship: a Variant Round contains 3 to 5 Variants.
  • Relationship: Promote follows exactly one keep Verdict and produces Design-Owned UI Code.
  • Axiom: every variant lives in the real app on the real route; never standalone HTML, a prototype branch, or an isolated prototype route.
  • Axiom: delivery-phase never reimplements Design-Owned UI Code.
  • Axiom: no variant reaches the verdict without passing the quality gate; no variant is promoted without a full break-ui pass.
  • Axiom: image generation never silently falls back.
  • Axiom: approval is never inferred from artifact existence.

Supersession — 2026-10-22

The entries above stay unchanged as history. The baseline-video-retro-plan-move grill adopted Taste 2.1 and supersedes these decisions.

Q17 superseded

Superseded by: Q2.

Current answer:

  • design-taste-frontend is active always, for every surface. Taste 2.1 covers landing pages and app screens (references/app-screens.md), so Q17 needs no exception to its scope line.

Q18 superseded

Superseded by: Q3, Q37.

Current answer:

  • redesign-existing-projects is removed. Taste 2.1 retired it.
  • For existing-UI intent improve-existing, variant-round passes the intent to design-taste-frontend, which runs its route "Redesign, restyle or review of an existing page or app screen".

Q22 and Q24 partly superseded

Superseded by: Q3.

Current answer:

  • The copy lens of Q22 stays. full-output-enforcement is removed, so the Q22 line that keeps it is superseded.
  • The Q24 line that refreshes redesign-existing-projects and adds it to skills.ts is superseded. The other Q24 lines stay.
  • The Accepted Target Graph line redesign-existing-projects (if intent) now reads as the Taste redesign route.

On this page