@hahlex/millar-mcp 0.0.0-stage → 0.1.0-draft.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/LICENSE +21 -0
  2. package/dist/docs/CHANGELOG.md +21 -0
  3. package/dist/docs/GLOSSARY.md +77 -0
  4. package/dist/http.d.ts +3 -0
  5. package/dist/http.d.ts.map +1 -0
  6. package/dist/http.js +39566 -0
  7. package/dist/http.js.map +1 -0
  8. package/dist/index.d.ts +3 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +2 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/server.d.ts +6 -0
  13. package/dist/server.d.ts.map +1 -0
  14. package/dist/server.js +1115 -0
  15. package/dist/server.js.map +1 -0
  16. package/dist/skills/millar-animation/SKILL.md +66 -0
  17. package/dist/skills/millar-animation/references/animation-research-patterns.md +28 -0
  18. package/dist/skills/millar-animation/references/motion-choreography.md +80 -0
  19. package/dist/skills/millar-build-web/SKILL.md +59 -0
  20. package/dist/skills/millar-build-web/references/seo-cwv-and-copy.md +24 -0
  21. package/dist/skills/millar-build-web/references/web-architecture-checklist.md +47 -0
  22. package/dist/skills/millar-create-image/SKILL.md +62 -0
  23. package/dist/skills/millar-create-image/references/human-editorial-photography.md +74 -0
  24. package/dist/skills/millar-create-image/references/hybrid-plate-compositing.md +43 -0
  25. package/dist/skills/millar-create-image/references/image-art-direction.md +74 -0
  26. package/dist/skills/millar-create-image/references/multi-page-asset-map.md +27 -0
  27. package/dist/skills/millar-create-image/references/natural-editorial-illustration.md +57 -0
  28. package/dist/skills/millar-create-image/references/procedural-gallery-craft.md +84 -0
  29. package/dist/skills/millar-create-image/scripts/embed-provenance.mjs +185 -0
  30. package/dist/skills/millar-deep-research/SKILL.md +62 -0
  31. package/dist/skills/millar-deep-research/references/visual-extraction-protocol.md +36 -0
  32. package/dist/skills/millar-deep-research/references/world-class-benchmarks.md +30 -0
  33. package/dist/skills/millar-design/SKILL.md +83 -0
  34. package/dist/skills/millar-design/references/aesthetic-movements.md +49 -0
  35. package/dist/skills/millar-design/references/cross-page-sync-audit.md +25 -0
  36. package/dist/skills/millar-design/references/style-dna-contract.md +89 -0
  37. package/dist/skills/millar-verify-web/SKILL.md +76 -0
  38. package/dist/skills/millar-verify-web/references/five-layer-qa-gate.md +104 -0
  39. package/dist/skills/millar-verify-web/references/two-axis-review-rubric.md +23 -0
  40. package/dist/skills/millar-verify-web/scripts/millar-audit.mjs +617 -0
  41. package/dist/skills/millar-web-workflow/SKILL.md +60 -0
  42. package/dist/skills/millar-web-workflow/references/creative-divergence-protocol.md +52 -0
  43. package/dist/skills/millar-web-workflow/references/track-routing-and-gates.md +32 -0
  44. package/dist/skills-loader.d.ts +47 -0
  45. package/dist/skills-loader.d.ts.map +1 -0
  46. package/dist/skills-loader.js +204 -0
  47. package/dist/skills-loader.js.map +1 -0
  48. package/dist/sources/packages/marketing/src/assets/BrandAndGeometricAssets.tsx +373 -0
  49. package/dist/sources/packages/marketing/src/assets/SchematicAndProductAssets.tsx +497 -0
  50. package/dist/sources/packages/marketing/src/sections/MarketingSections.tsx +946 -0
  51. package/dist/sources/packages/marketing/src/templates/PageTemplates.tsx +304 -0
  52. package/dist/sources/packages/ui/src/components/Button.tsx +162 -0
  53. package/dist/sources/packages/ui/src/components/FormControls.tsx +476 -0
  54. package/dist/sources/packages/ui/src/components/Layout.tsx +176 -0
  55. package/dist/sources/packages/ui/src/components/OverlaysAndFeedback.tsx +291 -0
  56. package/dist/sources/packages/ui/src/components/SurfacesAndData.tsx +564 -0
  57. package/dist/stdio.d.ts +3 -0
  58. package/dist/stdio.d.ts.map +1 -0
  59. package/dist/stdio.js +37380 -0
  60. package/dist/stdio.js.map +1 -0
  61. package/package.json +48 -3
  62. package/README.md +0 -3
@@ -0,0 +1,83 @@
1
+ ---
2
+ name: millar-design
3
+ description: "Flagship design director, structured 5-role Agency design studio, and cross-page aesthetic continuity skill (v0.3.0). Never hardcodes brand palettes: researches any named brand (local DESIGN.md, live MCP tokens, or web research) first, enforces Impeccable craft-floor & anti-slop calibration, canvas-design visual depth, and 12-axis cross-page continuity so secondary pages match flagship craft instead of collapsing into flat industrial cards."
4
+ version: 0.3.0-draft.1
5
+ license: MIT
6
+ ---
7
+
8
+ # Millar Design v0.3: 5-Role Design Studio & Cross-Page Continuity
9
+
10
+ Operate as a structured five-role design studio with explicit responsibilities and binding veto power, uniting **brand-researched system discipline**, **`canvas-design` museum-grade craft**, and **`Impeccable` craft-floor rigor & human storytelling** without bureaucratic ceremony.
11
+
12
+ ## Non-Negotiable Principles
13
+
14
+ 1. **Research Every Named Brand First (Zero Hardcoding):** NEVER hardcode Hahlex hex codes or any fixed palette inside your design decisions. Whenever the user mentions ANY brand, research its real identity first via local `DESIGN.md`/`PRODUCT.md`/code, connected Brand MCP (e.g., Millar MCP `get_design_guidelines` + `get_design_tokens` for Hahlex), or web research (`millar-deep-research`). For greenfield brands, derive an original world calibrated against AI clichés.
15
+ 2. **The Brief & Supplied Assets Win:** User-provided hero images, animations, eras, materials, or palettes are binding visual truth. Propagate their visual DNA across every page; never override them with safe defaults.
16
+ 3. **Sync Visual Worlds, Never Fonts Alone:** Sharing a typeface and accent hex while dropping `/features`, `/pricing`, or `/about` into plain gray-bordered cards is failure. Every secondary page inherits surface materiality, lighting temperature, framing geometry, composition rhythm, motion physics, and browser surface theming.
17
+ 4. **Separate UI Chrome from Artistic Plates:** Operational Product UI chrome enforces crisp solid tokens (and zero CSS gradients where the brand requires). **Standalone artworks, photographs, editorial illustrations, and visual plates REQUIRE context-appropriate natural light (bright open daylight for classrooms, teaching, and everyday human life; moody low-key light ONLY when the brief genuinely lives at night or on dark stages), organic tactile materiality, and specific mid-action human storytelling.**
18
+ 5. **Author All Visual & Technical Prompts in English:** Keep every image-generation prompt, art-direction prefix, and subagent review brief in crisp English; render visible website/artwork copy in the user's target locale.
19
+
20
+ ## Structured 5-Role Studio Authority (Binding Veto Power)
21
+
22
+ | Studio Role | Concrete Ownership | Veto Authority (Blocks Progress If Violated) |
23
+ |---|---|---|
24
+ | **1. Visual Storyteller** | Authors 4-6 paragraph English Visual Philosophy Manifesto + 1-second emotional visual hook + ONE unforgettable authored signature moment per `Persuade`/`Experience` page. | Vetoes dry abstract diagrams, generic SaaS layouts, or pages lacking immediate narrative clarity. |
25
+ | **2. Brand Guardian** | Locks researched brand palette, color strategy (`Restrained` / `Committed` / `Full Palette` / `Drenched`), light/dark surface polarity cadence, accent budget ceiling, typography, and locale diacritics (`:lang(vi)`). | Vetoes hardcoded foreign palettes, accidental 4/4 dark drift on light-first brands, raw gray on tinted surfaces, or clipped diacritics. |
26
+ | **3. UI Designer & Master Illustrator** | Owns tokens, single-elevation surfaces (1px hairline OR lifted offset shadow), browser surface theming (`::selection`, focus rings, scrollbars, `tabular-nums`), AND `>= 9.0/10` visual assets via `millar-create-image`. | Vetoes flat clip-art, AI wax-skin stock clichés, PowerPoint slide boxes, sparse SVGs, or visual overlaps. |
27
+ | **4. UX Architect** | Owns Visitor Mode (`Persuade` / `Experience` / `Operate` / `Read`), 6 non-repeating composition grammars, Craft Floor bans, responsive `375`/`768`/`1440` layouts, and WCAG 2.1 AA / APG keyboard contracts. | Vetoes equal 3-card icon grids, nested cards, eyebrow kickers above headings, gradient text, 1-sided rounded-box bars, or mobile overflow. |
28
+ | **5. Motion Choreographer & Independent Critic** | Unifies tactile micro-interactions, interruptible springs, View Transitions, and delegates final inspection to a fresh-context finish reviewer (`millar-verify-web`). | Vetoes secondary pages scoring `< 4/5` on cross-page continuity OR any artwork scoring `< 9.0/10`. |
29
+
30
+ ## Craft Floor & Anti-Slop Bans (`Impeccable` Distilled)
31
+
32
+ Reject these lazy defaults unless explicitly required by a pinned brief:
33
+ - **Scaffold bans:** Equal-size `icon + heading + text` card rows, nested cards, eyebrow/kicker chips above headings, decorative `01 / 02 / 03` badges, modals for non-interrupting tasks.
34
+ - **Surface bans:** Gradient text, decorative glass blur, 1-sided colored border strips on rounded boxes, hard offset shadows (`4px 4px 0`) outside genuine neobrutalism, emoji replacing drawn icons, fake sparklines, unrequested training-data default display fonts (`Fraunces`, `Playfair Display`, `Cormorant`, `Lora`, `Syne`, `Space Grotesk`, `Outfit`, `Plus Jakarta Sans`, `Inter`-as-display).
35
+ - **Anti-AI-Cliché Calibration:** On open greenfield briefs, explicitly avoid ALL four AI ruts: dark-slate neon glow, unbriefed warm-cream + serif + terracotta, broadsheet italic + tracked mono, and flat brutalist black boxes. Pick light vs. dark from the **user's physical scene** ("who uses this, where, under what ambient light?").
36
+ - **Browser Surfaces:** Always theme `::selection`, `caret-color`, `:focus-visible`, `text-underline-offset`, custom scrollbars, and `font-variant-numeric: tabular-nums` from the active palette.
37
+
38
+ ## Composable Skill Suite & MCP Routing
39
+
40
+ | Need | Skill or MCP Call |
41
+ |---|---|
42
+ | End-to-end Track S / M / L orchestration & Creative Divergence | `millar-web-workflow` |
43
+ | Research named brand, extract Visual/Motion DNA from supplied assets | `millar-deep-research` |
44
+ | Generate English style-locked photography, human editorial shots, or 4-layer procedural art | `millar-create-image` |
45
+ | Research & implement compositor-safe springs, View Transitions, reduced motion | `millar-animation` |
46
+ | Implement Server-First architecture, deep modules, 5 UI states, CWV & SEO | `millar-build-web` |
47
+ | Run standalone Zero-MCP audit (`millar-audit.mjs`), 5-layer QA & fresh-context finish review | `millar-verify-web` |
48
+ | Fetch live Hahlex tokens, UI primitives, sections, or automated validation (Hahlex projects) | Millar MCP: `get_design_guidelines`, `get_design_tokens`, `get_component`, `get_visual_assets`, `validate_design` |
49
+
50
+ ## Execution Sequence
51
+
52
+ ### Step 1: Classify Starting State & Research the Brand
53
+ - **Branch A (Existing Hero / User-Supplied Images or Animations):** Run `millar-deep-research` visual & motion extraction BEFORE editing any secondary route.
54
+ - **Branch B (Named Brand: Hahlex or External Brand):** Research the brand first via local `DESIGN.md`, connected Brand MCP (`get_design_guidelines`, `get_design_tokens` for Hahlex), or web research (`millar-deep-research`). Never hardcode or guess brand values.
55
+ - **Branch C (Greenfield Unbranded Project):** Read [references/aesthetic-movements.md](references/aesthetic-movements.md) and `millar-web-workflow/references/creative-divergence-protocol.md` to ban the category rut and derive an original world spanning 3+ cultural/material families.
56
+
57
+ **Completion criterion:** Starting branch declared, brand researched or rut banned, every asset inventoried, and Visitor Mode assigned per route.
58
+
59
+ ### Step 2: Lock `.millar/style-dna.md` (12 Axes + Studio Sign-Off)
60
+ Read [references/style-dna-contract.md](references/style-dna-contract.md) and write `.millar/style-dna.md` locking all 12 axes in crisp English:
61
+ - 4-6 paragraph Aesthetic Philosophy Manifesto + 1-second narrative spine.
62
+ - Researched brand palette, color strategy, surface polarity cadence, and accent ceiling.
63
+ - Secondary-Page Richness Contract naming the bespoke focal visual and non-repeating composition pattern for EVERY secondary route.
64
+ - Motion physics constants and browser surface theming tokens.
65
+
66
+ **Completion criterion:** `.millar/style-dna.md` saved and clears all 5 Studio Role veto checks.
67
+
68
+ ### Step 3: Produce Museum-Grade Visuals & Motion Specs Before Page Assembly
69
+ - Invoke `millar-create-image` for every hero, documentary human photograph, or secondary-page plate (English prompts, provenance sidecars, 4-layer procedural craft + Zero-Addition Pass 2 on 503/code-native).
70
+ - Invoke `millar-animation` to lock the 4-line Motion Thesis, timing tokens, and View Transitions.
71
+
72
+ **Completion criterion:** Every visual asset verified `>= 9.0/10` after Pass 2 with provenance recorded; motion tokens ready.
73
+
74
+ ### Step 4: Build with Craft Floor Discipline
75
+ Hand off to `millar-build-web` enforcing non-repeating composition grammars, one authored signature moment per `Persuade`/`Experience` page, real interactive UI states (`default`/`loading`/`empty`/`error`/`disabled`), browser surface theming, and consistent drawn icons.
76
+
77
+ ### Step 5: Mechanical Audit, Fresh-Context Finish Review & Continuity Gate
78
+ Read [references/cross-page-sync-audit.md](references/cross-page-sync-audit.md) and hand off to `millar-verify-web`:
79
+ 1. Run standalone `millar-audit.mjs` (AND Millar MCP `validate_design` on Hahlex projects).
80
+ 2. Capture `1440px`/`768px`/`375px` screenshots (Light & Dark) and delegate Layer 3A/3B + Layer 5 critique to a **fresh-context independent finish reviewer** with zero shared build transcript.
81
+ 3. Score all 6 Cross-Page Continuity axes (`>= 4/5` required) and audit every visual asset (`>= 9.0/10`), applying one clean batched polish pass on any `fix` or `rebuild` disposition before shipping.
82
+
83
+ **Completion criterion:** Zero mechanical failures, every visual `>= 9.0/10`, every secondary route `>= 4/5` continuity, and fresh-context reviewer returns `ship`.
@@ -0,0 +1,49 @@
1
+ # World-Class Web Design Aesthetic Movements
2
+
3
+ Consult this taxonomy during Step 1 when establishing a **new greenfield visual world** or translating vague taste cues ("elevated", "minimal", "warm", "technical") into concrete structural dials.
4
+
5
+ **Brand-First Rule:** If the user names ANY existing brand (Hahlex or external), research its real identity first (local `DESIGN.md`, live Brand MCP, or web research) before choosing a movement. Never copy another brand's palette onto an unrelated project.
6
+
7
+ ## 1. Swiss International / Architectural Grid
8
+ - **Lineage:** Josef Muller-Brockmann, Vignelli, modern engineering documentation (Vercel Geist, skills.sh, Stripe Docs).
9
+ - **Palette DNA:** Crisp high-contrast neutral ground (light archival or pure dark), razor-thin `1px` coordinate hairlines, surgical single chromatic accent.
10
+ - **Type & Grid:** Strict mathematical grid, flush-left asymmetric typography, tracked uppercase mono micro-labels above hairlines, tabular indices, generous active negative space.
11
+ - **Best for:** Developer platforms, design system portals, technical specifications, API documentation.
12
+
13
+ ## 2. Editorial Minimalism & Architectural Ma (Curatorial Print-on-Web)
14
+ - **Lineage:** Kinfolk, Cereal, Japanese architectural monographs (KINTO, Muji), Are.na, Anthropic editorial essays.
15
+ - **Palette DNA:** Chalk plaster, honed stone, or unbleached paper tones paired with soft charcoal ink (avoiding harsh `#000000`) and quiet mineral dividers.
16
+ - **Type & Grid:** Dramatic display-to-body scale contrast, `65ch` reading measure, carefully matted single-subject plates, asymmetrical text-and-figure splits, restrained pull-quotes.
17
+ - **Best for:** Brand manifestos, craft commerce, case studies, cultural institutions, high-trust storytelling.
18
+
19
+ ## 3. Milled Acoustic & Precision Technical Craft
20
+ - **Lineage:** Dieter Rams / Braun, Teenage Engineering, Linear, high-precision audio/optical laboratory hardware.
21
+ - **Palette DNA:** Bead-blasted anodized aluminum or deep layered obsidian-slate (`3` subtle tonal steps), crisp `1px` borders, calibrated instrument phosphor or signal-oxide focal accent.
22
+ - **Type & Grid:** Tight tracking on headings, keyboard-first affordances (`Cmd+K`, `/` search), live interactive telemetry, oscilloscopes, or real product chrome front-and-center.
23
+ - **Best for:** Pro developer tools, hardware launches, observability consoles, power-user workspaces.
24
+
25
+ ## 4. Tactile Craft & Regional Materiality
26
+ - **Lineage:** Wabi-sabi ceramics, bookbinding, regional vernacular architecture, letterpress stationery.
27
+ - **Palette DNA:** Researched regional pigments (highland forest green, basalt stone, clay, raw indigo, weathered timber), subtle micro-grain, soft directional natural daylight shadows.
28
+ - **Type & Grid:** Human-scaled proportions, tactile pressed feedback (`scale(0.98)`), grounded motion mass, authentic local cultural cues.
29
+ - **Best for:** Creative studios, culinary/coffee spaces, independent bookshops, cultural initiatives, boutique learning brands.
30
+
31
+ ## 5. Kinetic Typographic Poster (High-Impact Narrative)
32
+ - **Lineage:** Exhibition poster design, launch microsites, Stripe Press / Apple keynote pacing.
33
+ - **Palette DNA:** Bold high-contrast monumental surface blocks alternating across scroll, zero clutter, typography acting as primary architectural form.
34
+ - **Type & Grid:** Oversized display statements (`clamp(2.5rem, 6vw, 5rem)`), pinned numeric proof strips, one choreographed scroll or view-transition centerpiece.
35
+ - **Best for:** Flagship launches, annual reports, announcements, conference microsites.
36
+
37
+ ## 6. Hahlex Ecosystem Only: Measured Warmth (Query Live Millar MCP)
38
+ - **Applies ONLY when the brief explicitly targets Hahlex.**
39
+ - Query live Millar MCP (`get_design_guidelines`, `get_design_tokens`, `get_visual_assets`) or read the repo's local `DESIGN.md` to obtain the canonical Warm Sand / Espresso / Crimson tokens, light/dark polarity cadence, and typography rules. Never hardcode Hahlex tokens into non-Hahlex projects.
40
+
41
+ ## Translating Subjective Taste Requests Into Concrete Dials
42
+
43
+ | User says... | Avoid this trap | Commit to this system |
44
+ |---|---|---|
45
+ | "Make it feel premium / elevated" | Fake gold gradients + black background + cliché display serif | Generous negative space, high typographic scale contrast, crisp `1px` hairlines, restrained palette (`<= 2` accents), matted imagery |
46
+ | "Modern / clean" | Sterile white + uncalibrated gray Tailwind cards + generic shadows | Architectural spacing rhythm (8pt grid), content-first hierarchy, themed browser surfaces, purposeful micro-interactions |
47
+ | "Warm / human" | Pastel rainbow blobs, cartoon icons, or blind cream+serif cliché | Researched physical materials (linen, timber, stone, forest/earth pigments), candid documentary craft, `1.5px` drawn icons |
48
+ | "High-tech / AI" | Purple-pink neon glow + floating particles + fake chatbots | Live interactive product chrome or real Canvas instrumentation, clean schematic diagrams, `tabular-nums`, keyboard shortcuts |
49
+ | "Match my existing images / animations" | Copying only font + primary hex onto plain secondary pages | Run `millar-deep-research` extraction -> lock `.millar/style-dna.md` (12 axes) -> propagate lighting, framing, surface cadence, and motion curves across every route |
@@ -0,0 +1,25 @@
1
+ # Cross-Page Visual Continuity Audit Rubric
2
+
3
+ Run this audit whenever a project contains 2 or more pages (or when adding a new page to an existing site). Compare rendered screenshots of the **Flagship Reference Page** (typically Homepage or the page containing the user's supplied images/animations) side-by-side against **every secondary route**.
4
+
5
+ ## The 6 Continuity Axes (Score 1 to 5 per Secondary Route)
6
+
7
+ | Axis | Score 1-2 (Industrial Drift: FAIL) | Score 4-5 (Cohesive World: PASS) |
8
+ |---|---|---|
9
+ | **1. Surface & Color Temperature Parity** | Secondary page falls back to plain white/gray blocks while Page 1 uses warm paper, dark stages, or tinted elevation. | Identical canvas temperature, alternating surface polarity cadence, border hairlines, and accent proportion budget. |
10
+ | **2. Visual Richness & Focal Anchor** | Secondary page is text-only or generic 3-column icon cards with zero bespoke imagery/diagrams/chrome. | Contains at least one bespoke focal visual matching Page 1's exact art direction (style-locked image, diagram plate, or stylized interactive chrome). |
11
+ | **3. Media & Graphic Framing** | Different aspect ratios, harsh unframed cutouts, mismatched lighting/saturation, or conflicting border radii. | Consistent aspect ratio discipline, lighting temperature, matte/hairline frame treatment, and corner radius ladder. |
12
+ | **4. Composition Variety & Pacing** | Repetitive card grid or cramped unpaced stack; feels auto-generated compared to Page 1's editorial rhythm. | Deliberate opening composition + varied spatial grammars matching Page 1's whitespace generosity and typographic scale. |
13
+ | **5. Motion & Interaction Grammar** | Page 1 has smooth spring/editorial motion while secondary pages snap abruptly or use generic bounce/fade-up defaults. | Same easing/spring physics, tactile hover/active responses, clean route transition continuity, and `prefers-reduced-motion` support. |
14
+ | **6. Micro-Detail & Craft Floor** | Default blue focus rings, unaligned numbers, inconsistent icon strokes, dead preview buttons, or overflow on mobile. | Consistent icon stroke weight, `tabular-nums`, themed `::selection`/focus rings, working interactive states, and 0px overflow at 375px/768px/1440px. |
15
+
16
+ ## Mandatory Remediation Protocol
17
+
18
+ 1. Capture full-viewport screenshots of Flagship Page AND each secondary route at `1440px` and `375px`.
19
+ 2. Score every secondary route honestly against the 6 axes above.
20
+ 3. **Gate Rule:** Any route with ANY axis `< 4` fails the Continuity Audit.
21
+ 4. For each failing axis, apply targeted remediation before shipping:
22
+ - Missing visual anchor -> invoke `millar-create-image` with the locked 80% Style DNA prefix (or compose a matching Millar code-native visual asset).
23
+ - Flat/industrial layout -> recompose the opening and primary section using a distinct pattern from the Style DNA Contract (`Editorial Split`, `Spatial Stage`, `Asymmetric Bento`, `Architectural Grid`).
24
+ - Mismatched motion -> invoke `millar-animation` to unify timing tokens, easing curves, and interactive feedback.
25
+ 5. Re-capture and confirm all secondary routes achieve `>= 4/5` across all 6 axes AND pass Millar MCP `validate_design` with zero automated violations.
@@ -0,0 +1,89 @@
1
+ # Style DNA Contract (`.millar/style-dna.md` · 12 Binding Axes)
2
+
3
+ Write this contract in crisp English before coding multi-page sites or extending an existing design. When a user names a brand or supplies existing hero images/animations, ground every axis in verified research and observed artifacts so secondary pages stay indistinguishable in craft caliber.
4
+
5
+ ## Template (All 12 Axes)
6
+
7
+ ```markdown
8
+ # Style DNA Contract: <Project Name>
9
+
10
+ ## 1. Aesthetic Movement & Visual Philosophy
11
+ - **Movement Name:** <1-2 evocative words derived from researched brand or greenfield world>
12
+ - **Brand Research Source:** <local DESIGN.md / live MCP / web research URLs / greenfield divergence>
13
+ - **Visual Philosophy (4 concise paragraphs):**
14
+ - *Space & Form:* Negative space, margins, and structural grid discipline.
15
+ - *Color & Material:* Chromatic temperature, tactile surface feel, and light behavior.
16
+ - *Scale & Rhythm:* Typographic jumps, section breathing cadence, and visual resting points.
17
+ - *Craft Bar:* Unmistakable micro-details proving every route was authored rather than templated.
18
+
19
+ ## 2. Route & Visitor Mode Matrix
20
+ | Route | Visitor Mode | Primary Job | Focal Visual Anchor (Anti-Industrial Guarantee) |
21
+ |---|---|---|---|
22
+ | `/` | Persuade / Experience | Hook and prove value | Hero artwork, documentary photo, or interactive specimen |
23
+ | `/craft` or `/features` | Persuade / Read | Deep capability proof | Style-locked visual plate or interactive bench |
24
+ | `/objects` or `/pricing` | Operate / Persuade | Filter, compare, or commit | Dedicated single-subject plates or contrasting ledger |
25
+ | `/app/*` | Operate | High-clarity daily tasks | 1-glance density, zero-gradient surfaces, crisp tables |
26
+
27
+ ## 3. Color Strategy, Polarity & Surface Proportion Budget
28
+ - **Color Strategy:** `Restrained` | `Committed` | `Full Palette` | `Drenched`
29
+ - **Physical Scene Polarity Rationale:** <1 sentence: who uses this, where, under what ambient light>
30
+ - **Primary Canvas (Light / Dark):** `<hex / token>` (~65-75% area)
31
+ - **Alternating Secondary Surface:** `<hex / token>` (~15-20% area)
32
+ - **Counter-Weight Stage:** `<hex / token>` (~10-15% area)
33
+ - **Primary Action Accent:** `<hex / token>` (verified `>= 4.5:1` text contrast)
34
+ - **Focal Tension Accent:** `<hex / token>` (strictly within researched brand ceiling, e.g. `< 1.5%`)
35
+ - **UI Control Border (`SC 1.4.11`):** `<hex / token>` (verified `>= 3.0:1` against its container surface)
36
+ - **Neutral Rule:** Tint secondary ink from the palette temperature; never drop uncalibrated pure gray onto tinted grounds.
37
+
38
+ ## 4. Materiality & Single-Elevation Grammar
39
+ - **Surface Elevation:** 1px hairline border OR soft offset shadow; never both on one card.
40
+ - **Corner Radius Ladder:** Control `<px>` -> Card `<px>` -> Stage `<px>` -> Pill `9999px`.
41
+ - **Dividers & Hairlines:** Consistent structural hairlines, registration marks, or material transitions.
42
+ - **Surface vs. Artwork Boundary:** Product UI chrome = `zero CSS gradients` (where required); standalone artworks/plates = rich volumetric light, grain, and depth.
43
+
44
+ ## 5. Typography Architecture
45
+ - **Display Voice:** `<Family>` (avoid unrequested training-data defaults on greenfield briefs), weights, tracking, balanced headings.
46
+ - **Body & UI Voice:** `<Family>`, `14-16px`, `65-75ch` reading measure, line-height `1.55-1.65`.
47
+ - **Data / Code Voice:** `<Mono Family>`, `font-variant-numeric: tabular-nums` on all counters, metrics, and tables.
48
+ - **Heading Hygiene:** Zero eyebrow/kicker chips above headings; headings carry their own weight.
49
+
50
+ ## 6. Media, Illustration & Framing Signature
51
+ - **Master English Art Direction Prefix (80% Fixed):** `<150-250 word concise English medium, lighting, material palette, framing>`
52
+ - **Fallback Medium (If AI Image Gen 503):** `<Orthographic elevation / Intaglio hatching / Guilloche / Halftone monograph; ZERO faux-3D Canvas rooms>`
53
+ - **Aspect Ratios & Dedicated SKU Rule:** Hero `16:9`/`3:2`, Split `4:3`, Catalog items = dedicated single-subject plates (never cropped composites).
54
+ - **Provenance:** `<filename>.prompt.json` saved alongside every shipping raster.
55
+
56
+ ## 7. Composition Pattern Rotation
57
+ - Assign non-repeating spatial patterns down each page (never two equal 3-column icon-card grids back-to-back or across adjacent routes):
58
+ 1. Spatial Product Stage / Live Interactive Bench
59
+ 2. Editorial Split
60
+ 3. Asymmetric Bento / Catalog Mosaic
61
+ 4. Architectural Coordinate Ledger
62
+ 5. Narrative Sequence
63
+ 6. Monumental Typographic Poster
64
+
65
+ ## 8. Secondary-Page Richness Contract (Anti-Industrial Rule)
66
+ Every non-homepage route MUST include:
67
+ - Opening composition matching the flagship page's typographic scale and spacing generosity (except compact `PageHeader` in `Operate` mode).
68
+ - At least one bespoke focal visual matching the flagship visual world (style-locked plate, interactive specimen, or schematic).
69
+ - At least one surface polarity shift maintaining visual cadence.
70
+ - Identical header, footer, hairline, and interactive control finish.
71
+
72
+ ## 9. Motion Physics & Cross-Page Continuity
73
+ - **4-Line Motion Thesis:** Focal moment, cross-page bridge (`@view-transition` / shared `view-transition-name`), tactile feedback (stationary hover hit-target), and reduced-motion budget.
74
+ - **Motion Register & Curves:** Productive (`120-260ms`) vs Expressive (`300-640ms`), shared CSS custom properties / spring constants.
75
+ - **Reduced Motion:** Strip spatial travel under `prefers-reduced-motion: reduce`; retain static-first `opacity: 1` visibility and crisp state feedback.
76
+
77
+ ## 10. Browser Surface Theming
78
+ - Theme `::selection`, `caret-color`, `:focus-visible` (2px ring + offset), `text-underline-offset`, subtle custom scrollbars, and `tabular-nums` from the active palette.
79
+
80
+ ## 11. Multi-Script & Vietnamese Typography Safety
81
+ - Verify target-locale glyph coverage BEFORE locking fonts.
82
+ - **Vietnamese (`:lang(vi)`) Pitfall Guard:** NEVER use Latin-only fonts (`Poppins`, `Bebas Neue`, `Montserrat` incomplete subsets) on Vietnamese accented words (`ệ, ư, ỗ, ắ, ồ, ử`). Pair Vietnamese-complete families (`Be Vietnam Pro`, `Archivo` Vietnamese subset, `Inter Variable`, `Geist`, `Bricolage Grotesque`, `IBM Plex Mono`). If using `Bebas Neue` for big KPI digits, isolate it strictly to numeric glyphs (`12`) and render Vietnamese unit words (`GIỜ`) in a Vietnamese-complete font!
83
+ - Raise display line-height (`>= 1.18-1.22`) on `:lang(vi)` so stacked diacritics never clip.
84
+
85
+ ## 12. Operate Mode & Verification Readiness
86
+ - **5 Mandatory UI States:** `Default`, `Loading` (solid zero-gradient skeleton), `Empty` (recovery CTA), `Error` (`role="alert"` + retry + locked filters), `Disabled`.
87
+ - **DOM & Accessibility Guards:** `[hidden] { display: none !important; }` reset; `1 <main>`, `<footer>` outside `<main>`, Skip Link on first `Tab`, `inert` background on modal drawers + deterministic focus-restore fallback chain.
88
+ - **Verification Gate:** `scripts/millar-audit.mjs` (`0` errors), Playwright `1440`/`768`/`375` (`0px` overflow, `0` console/HTTP errors), `@axe-core/playwright` (`0` critical/serious), and Fresh-Context Independent Finish Reviewer (`ship`).
89
+ ```
@@ -0,0 +1,76 @@
1
+ ---
2
+ name: millar-verify-web
3
+ description: "Five-layer real-browser QA, standalone Zero-MCP mechanical auditor (scripts/millar-audit.mjs v0.3), fresh-context independent finish-reviewer protocol, WCAG SC 1.4.11 border & a11y enforcement, anti-clip-art/anti-faux-3D/anti-wax-skin visual audit, and two-axis code review gate (v0.3.0). Works anywhere via npx millar install even without Millar MCP connected. Use BEFORE claiming any website, artwork series, or UI change is complete."
4
+ version: 0.3.0-draft.1
5
+ license: MIT
6
+ ---
7
+
8
+ # Millar Verify Web v0.3: 5-Layer QA, Zero-MCP Mechanical Auditor & Independent Finish Review
9
+
10
+ Never claim a website, artwork series, or UI change is done based on `npm run build` alone, and never rely solely on self-praise from the same conversation that wrote the code. Combine **deterministic Zero-MCP mechanical checks** (`scripts/millar-audit.mjs`), real-browser Playwright & `axe-core` verification, and a **Fresh-Context Independent Finish Reviewer** (`Impeccable` zero-bias discipline).
11
+
12
+ ## Track Depth Selection
13
+
14
+ - **Track S (Surgical Fix / Single Component):** Run **Layer 1** (Build + `scripts/millar-audit.mjs` + MCP `validate_design` if active) + **Layer 2** (Targeted Interactive Check) + **Layer 5** (Focused 2-Axis Diff Review).
15
+ - **Track M & L (Secondary Pages / Full Site / Redesign):** Run **ALL 5 Layers**, including standalone `millar-audit.mjs`, `1440`/`768`/`375` Light & Dark captures, **Layer 3B Visual Artifact Critique**, and **Fresh-Context Independent Finish Reviewer** sign-off.
16
+
17
+ ## The 5 Verification Layers
18
+
19
+ Read [references/five-layer-qa-gate.md](references/five-layer-qa-gate.md) for executable CLI, Playwright, `axe-core`, and reviewer packet commands.
20
+
21
+ ### Layer 1: Static Build, Standalone Zero-MCP Mechanical Audit & Brand Compliance Gate
22
+ 1. Run project `typecheck`, linter, unit tests, and production `build`.
23
+ 2. **Run Standalone Mechanical Auditor (Zero MCP Required!):** Execute the bundled zero-dependency Node CLI right from this skill directory:
24
+ ```bash
25
+ node <skill-dir>/scripts/millar-audit.mjs <target-dir-or-file> [--register=marketing|product|shared] [--strict-em-dash] [--json]
26
+ ```
27
+ Catches deterministically: WCAG 2.1 color-pair contrast failures, gradient text, 1-sided rounded-box bars, hard offset shadows, static `opacity: 0` scroll traps, missing `prefers-reduced-motion`, undersized UI text, missing `img` `alt`/`width`/`height`, Product-mode CSS gradients, em-dash (`U+2014`) violations, and suspiciously sparse inline `<svg>` clip-art illustrations!
28
+ 3. If Millar MCP (or another brand MCP) is connected for the target brand, ALSO run `validate_design` and fix every automated violation until `passed === true`.
29
+
30
+ **Completion criterion:** Zero build/type errors, `millar-audit.mjs` exits `0` (zero blocking errors), and connected MCP compliance checks pass.
31
+
32
+ ### Layer 2: Real-Browser Functional & Interactive Gate (Playwright)
33
+ Run against the real built/served site (or pass `--url http://127.0.0.1:<port>` to `millar-audit.mjs` when Playwright is installed):
34
+ 1. Assert **0 uncaught page errors**, **0 console errors**, and **0 HTTP `>= 400` responses** across every route.
35
+ 2. Exercise real controls: navigation links, form validation/submission, search/filters, tabs/switches, dialogs (open/confirm/Escape), and primary CTAs, verifying visible DOM state updates.
36
+ 3. Confirm zero dead buttons or no-op demo widgets.
37
+
38
+ **Completion criterion:** Every interactive flow passes with zero console/page errors and zero failed requests.
39
+
40
+ ### Layer 3: Cross-Viewport Visual, Anti-Clip-Art & Cross-Page Continuity Gate
41
+ 1. Capture real screenshots at **`1440px` (Desktop)**, **`768px` (Tablet)**, and **`375px` (Mobile)** in **Light** and **Dark** themes (when supported) with motion settled (`prefers-reduced-motion` or post-settle).
42
+ 2. Assert `0px` horizontal overflow (`scrollWidth <= innerWidth + 1`) at every viewport.
43
+ 3. **Layer 3A (Cross-Page Continuity):** Compare flagship page vs. EVERY secondary route using `millar-design`'s 6-axis Cross-Page Continuity Rubric (`>= 4/5` required on every axis; zero bare industrial drop-off).
44
+ 4. **Layer 3B (Harsh Art Critic & Visual Artifact Rejection Gate):** Inspect EVERY rendered photograph, PNG, SVG, and editorial plate directly via vision:
45
+ - **Auto-Reject & Route Back to `millar-create-image` Pass 2** if ANY visual exhibits: AI wax-skin / fake stock smiles / mangled hands, flat geometric clip-art humans/houses, PowerPoint workflow boxes or circle-icon slides, flat vector fills under thin outlines, overlapping text/strokes, clipped diacritics (`ệ, ư, ỗ, ắ, ồ`), cramped margins (`< 6%`), missing provenance sidecar, OR polarity/accent drift against the **researched Brand DNA**.
46
+ - Every flagship/editorial visual MUST clear **`>= 9.0 / 10`** craft before shipping.
47
+
48
+ **Completion criterion:** Valid screenshots & standalone artworks visually inspected; zero overflow, zero clip-art/wax-skin defects, every visual `>= 9.0/10`, and every secondary route `>= 4/5` continuity.
49
+
50
+ ### Layer 4: Accessibility, Keyboard & Reduced-Motion Gate
51
+ 1. Run `@axe-core/playwright` (`wcag2a`, `wcag2aa`, `wcag21aa`) on default AND dynamic states (opened dialogs, drawers, validation errors, Light & Dark) -> assert **0 critical and 0 serious violations**.
52
+ 2. Verify keyboard flows: first `Tab` reveals Skip Link; visible `:focus-visible` ring; `ArrowLeft`/`ArrowRight`/`Home`/`End` on tabs; `Escape` closes dialogs/drawers and restores focus.
53
+ 3. Verify landmarks: exactly `1 <main>`, top-level `<footer>` strictly outside `<main>`.
54
+ 4. Emulate `prefers-reduced-motion: reduce` and confirm all content renders visible immediately (`opacity: 1`) with spatial travel stripped.
55
+
56
+ **Completion criterion:** Automated `axe-core`, landmark, keyboard, and reduced-motion checks pass cleanly. Always state honestly that automated checks complement rather than replace manual screen-reader (NVDA/JAWS/VoiceOver) verification.
57
+
58
+ ### Layer 5: Fresh-Context Independent Finish Review (Zero Self-Grading Bias!)
59
+ Read [references/two-axis-review-rubric.md](references/two-axis-review-rubric.md).
60
+
61
+ **Independent Reviewer Protocol (`Impeccable` Core Discipline):**
62
+ Whenever your host harness supports spawning subagents (`invoke_subagent`, Claude subagent, Codex subagent), **NEVER self-certify Layer 3B + Layer 5 inside the build thread**. Spawn a **FRESH read-only subagent with ZERO inherited build transcript**, passing a concise English review packet containing ONLY:
63
+ 1. Original user brief + researched Brand DNA (`.millar/style-dna.md` / `.millar/research-dossier.md`).
64
+ 2. `millar-audit.mjs` JSON output + build/E2E test results.
65
+ 3. Paths to captured screenshots (`1440`/`768`/`375`) and generated visual artworks.
66
+ 4. The git diff / changed file paths.
67
+
68
+ Ask the fresh reviewer to score BOTH unmerged axes (**Spec Fidelity** vs. **Engineering & Craft Standards**) plus Layer 3A/3B visual craft, and return exactly ONE disposition word:
69
+ - **`ship`:** Zero blocking findings; report exact verified scope honestly.
70
+ - **`fix`:** Concrete list of material defects -> apply ALL fixes in ONE clean batch, re-run `millar-audit.mjs` + recapture, and verify fixes resolved.
71
+ - **`rebuild`:** Wholesale visual/artistic failure (e.g., clip-art regression, broken polarity, template collapse) -> re-author affected regions/plates cleanly before a fresh full review.
72
+ - **`recapture`:** Invalid/blank/mid-animation screenshots -> recapture valid evidence first.
73
+
74
+ *(If the host runtime has no subagent tool, perform an explicit fresh-eyes audit stepping completely outside builder framing and disclose single-thread review honestly in one line.)*
75
+
76
+ **Completion criterion:** All applicable layers green, `millar-audit.mjs` passing, screenshots visually verified, and Independent Finish Reviewer returns `ship` (or open items disclosed transparently).
@@ -0,0 +1,104 @@
1
+ # Five-Layer Web QA Gate & Standalone Audit Patterns (v0.3.0)
2
+
3
+ Use these battle-tested Zero-MCP CLI, Playwright, `@axe-core/playwright`, and Fresh-Context Independent Finish Reviewer patterns for objective, hang-free verification.
4
+
5
+ ## 1. Standalone Zero-MCP Mechanical Audit (`scripts/millar-audit.mjs`)
6
+
7
+ Works out of the box with plain Node.js (`>= 18`) even when Millar MCP is NOT installed or connected:
8
+
9
+ ```bash
10
+ # Audit shipping code (skips internal .millar/ notes by default; pass --include-internal to scan .millar/)
11
+ node <skill-dir>/scripts/millar-audit.mjs ./src
12
+
13
+ # Strict Zero Em-Dash + Product UI Zero-Gradient enforcement
14
+ node <skill-dir>/scripts/millar-audit.mjs ./src --register=product --strict-em-dash
15
+
16
+ # Machine-readable JSON output + optional live URL 1440/768/375 check
17
+ node <skill-dir>/scripts/millar-audit.mjs ./src --json --url=http://127.0.0.1:4173/
18
+ ```
19
+
20
+ Checks enforced deterministically (`v0.3.0`):
21
+ - **WCAG 2.1 Text & SC 1.4.11 Border Contrast:** Evaluates light, dark, and stage CSS token pairs (`>= 4.5:1` text, `>= 3.0:1` UI borders) and reports exact `contrastPairsChecked` telemetry so zero-pair silent passes never slip through.
22
+ - **AI-Slop Craft Floor:** Gradient text, eyebrow kickers above `<h1>`/`<h2>` (`craft/eyebrow-kicker`), 1-sided colored border strips on rounded containers, hard offset shadows, static `opacity: 0` scroll traps, missing `prefers-reduced-motion` (in BOTH `.css` AND inline HTML `<style>`!), `[hidden]` CSS override guard, undersized `< 12px` text, missing `img` `alt` or `width`/`height`.
23
+ - **Register & Copy Rules:** Product-mode CSS gradients (`--register=product`), U+2014 em-dash (`--strict-em-dash`), and sparse inline `<svg>` clip-art heuristic.
24
+ - **Live Browser Pass (`--url`):** Resolves `playwright` / `@playwright/test` via `MILLAR_PLAYWRIGHT_PATH`, `cwd`, or ancestor workspaces with `{ channel: "chrome" | "msedge" }` fallback, and flags horizontal overflow, landmark defects, console/HTTP 4xx-5xx errors, and duplicate visible `view-transition-name` declarations (which silently abort CSS View Transitions).
25
+
26
+ ## 2. Hang-Free Playwright + `@axe-core/playwright` Harness Pattern
27
+
28
+ CRITICAL: Always wrap local HTTP server + Playwright inside `try / finally { await browser.close(); server.close(); }` and ALWAYS use `browser.newContext()` (required by `@axe-core/playwright` v4.14+) + `{ channel: "chrome" | "msedge" }` fallback so QA scripts never hang or fail on missing headless-shell binaries:
29
+
30
+ ```ts
31
+ let browser = null;
32
+ for (const opts of [{}, { channel: "chrome" }, { channel: "msedge" }]) {
33
+ try { browser = await chromium.launch(opts); break; } catch { browser = null; }
34
+ }
35
+ try {
36
+ const context = await browser.newContext();
37
+ const page = await context.newPage();
38
+ const consoleErrors: string[] = [];
39
+ const failedResponses: string[] = [];
40
+ page.on("pageerror", (e) => consoleErrors.push(e.message));
41
+ page.on("console", (m) => { if (m.type() === "error") consoleErrors.push(m.text()); });
42
+ page.on("response", (r) => { if (r.status() >= 400) failedResponses.push(`${r.status()} ${r.url()}`); });
43
+
44
+ await page.goto(route, { waitUntil: "networkidle" });
45
+ expect(consoleErrors).toEqual([]);
46
+ expect(failedResponses).toEqual([]);
47
+
48
+ // Eagerly decode below-the-fold loading="lazy" images & reset scroll instantly before full-page capture!
49
+ await page.evaluate(async () => {
50
+ document.querySelectorAll('img[loading="lazy"]').forEach((img) => img.setAttribute("loading", "eager"));
51
+ await Promise.all(Array.from(document.images).map((img) => img.decode().catch(() => {})));
52
+ window.scrollTo({ top: 0, behavior: "instant" });
53
+ });
54
+
55
+ // Capture BOTH above-the-fold AND full-page so below-the-fold SVGs/sections are never missed!
56
+ await page.screenshot({ path: `.millar/review/${routeName}-desktop.png`, fullPage: false });
57
+ await page.screenshot({ path: `.millar/review/${routeName}-desktop-full.png`, fullPage: true });
58
+ } finally {
59
+ if (browser) await browser.close();
60
+ server.close();
61
+ }
62
+ ```
63
+
64
+ ## 3. Multi-Viewport Zero-Overflow & Dynamic `axe-core` Scan (Light & Dark)
65
+
66
+ Test `1440x900` (Desktop), `768x1024` (Tablet), and `375x812` (Mobile):
67
+ - Assert `document.documentElement.scrollWidth <= window.innerWidth + 1` at all three widths.
68
+ - Assert `1 <main>` and top-level `<footer>` strictly outside `<main>`.
69
+ - Run `new AxeBuilder({ page }).withTags(["wcag2a", "wcag2aa", "wcag21aa"]).analyze()` on default AND dynamic states (opened dialogs/drawers, validation errors, Light & Dark) -> `0` critical/serious violations.
70
+ - Capture `fullPage: true` screenshots in BOTH Light AND Dark themes (not just above-the-fold Dark) so below-the-fold footer seals, dark active tabs, and SC 1.4.11 borders are visually verified.
71
+ - Add an inline SVG `<link rel="icon" href="data:image/svg+xml,...">` on standalone static HTML pages so local QA servers never fail on `/favicon.ico` 404 responses.
72
+ - Emulate `prefers-reduced-motion: reduce` and assert hero + sections render immediately at `opacity: 1`.
73
+
74
+ ## 4. Layer 3B Visual Artifact & Naturalness Rejection Checklist
75
+
76
+ Open EVERY rendered photograph, illustration, PNG, SVG, or Canvas plate directly via vision (AND compare ALL plates in a series side by side!) before passing Layer 3:
77
+ - [ ] **Context-Appropriate Daylight (Zero Gloomy Classrooms):** Teaching, school, community, and daytime human scenes are genuinely bright, sunlit, and breathable with open shadows (Instant REJECT if dark, cave-like, or gloomily underexposed!).
78
+ - [ ] **Concrete Kinetic Mid-Action (Zero Frozen Poses):** People and hands are caught mid-motion performing ONE clear physical action with real lived-in props (Instant REJECT if vaguely pointing at a blank page, standing stiffly, or awkwardly hovering fingertips in mid-air!).
79
+ - [ ] **Natural Linework & Organic Print-on-Paper Integration:** Illustrations show expressive variable-weight hand-drawn strokes and breathing paper tooth (zero stiff uniform CAD or corporate Memphis); `Path H` diagrams use ink-soak `multiply` + subtle print tooth + matte foil + bare editorial typography (zero pasted web-UI pill buttons or shiny plastic 3D bevel marbles!).
80
+ - [ ] **Brand Motif & Countable Integrity (`Path H` Trigger):** Every explicit motif from `DESIGN.md` / brief is visibly elevated; every numbered step (`1..9`), arrow, brand logo geometry, and label is 100% mathematically accurate.
81
+ - [ ] **Zero Clip-Art / Zero Faux-3D / Zero Wax-Skin:** Exact 5 natural fingers per hand, real unretouched skin, zero faux-3D Canvas rooms, zero garbled handwriting text.
82
+ - [ ] **Zero Collisions, 2K Master & Dual Provenance:** No overlapping labels (`>= 18px` clearance on `2048px` plates); crisp locale diacritics (`ệ, ư, ỗ, ắ, ồ`); embedded PNG `tEXt` chunks (`scripts/embed-provenance.mjs`) + `.prompt.json` sidecar verified.
83
+
84
+ ## 5. Fresh-Context Independent Finish-Reviewer Packet (English Brief)
85
+
86
+ Spawn a clean subagent with ZERO inherited build history using this concise English prompt:
87
+
88
+ ```text
89
+ Act as an independent Finish Reviewer with zero prior bias. Inspect ONLY the provided artifacts:
90
+ 1. Original Brief & Researched Brand DNA: <paths to brief + .millar/style-dna.md>
91
+ 2. Mechanical Audit & Test Evidence: <millar-audit.mjs JSON + Playwright/axe results>
92
+ 3. Rendered Screenshots (above-the-fold AND full-page at 1440/768/375) & All Visual Assets: <paths>
93
+ 4. Changed Files / Diff: <paths or diff summary>
94
+
95
+ Evaluate ruthlessly along:
96
+ - Spec Fidelity (every requirement satisfied, zero unrequested scope creep)
97
+ - Engineering & Craft Floor Standards (WCAG SC 1.4.11 borders, CWV, a11y, zero eyebrow kickers, zero AI slop)
98
+ - Cross-Page Continuity (6 axes, >= 4/5 required) & Visual Craft (>= 9.2/10, zero faux-3D/clip-art/wax-skin)
99
+
100
+ Return:
101
+ 1. Disposition: exactly ONE of `ship` | `fix` | `rebuild` | `recapture`
102
+ 2. Blocking findings (exact file/screenshot + root cause + required fix)
103
+ 3. Non-blocking polish notes
104
+ ```
@@ -0,0 +1,23 @@
1
+ # Two-Axis Code Review & Craft Floor Rubric
2
+
3
+ Never merge Spec findings and Standards findings into one blurry score. A build can follow every coding standard while missing what the user asked for, or fulfill every feature while introducing brittle architecture. Report both axes side-by-side.
4
+
5
+ ## Axis A: Spec Fidelity (Did we build the exact right thing?)
6
+
7
+ 1. **Requirement Coverage:** Every requested page, control, interaction, copy language (`en` / `vi`), and visual constraint present and findable within seconds.
8
+ 2. **Brief & Asset Fidelity:** Every user-supplied image, animation, brand color, or design decision honored faithfully (never silently swapped for defaults).
9
+ 3. **Interactive Completeness:** Zero dead buttons, zero stub `() => {}` handlers, zero Lorem Ipsum or fabricated metrics.
10
+ 4. **Scope Discipline (Track S especially):** Zero unrequested refactors or side-effect edits outside task scope.
11
+
12
+ ## Axis B: Engineering & Craft Standards (Did we build it cleanly?)
13
+
14
+ 1. **Architecture & Deep Modules:** Clean feature boundaries, Server Components by default with lean `"use client"` leaves, no hydration hazards, no premature abstractions.
15
+ 2. **Design System Compliance:** Semantic tokens used consistently, zero unapproved CSS gradients on Product/Foundations, single elevation per card, consistent icon stroke weight, browser chrome themed.
16
+ 3. **Core Web Vitals Hygiene:** Explicit image/media dimensions, high-priority LCP hero, compositor-only animations (`transform`/`opacity`), zero layout thrashing.
17
+ 4. **Fowler Code-Smell Baseline (Judgment Calls, Repo Rules Override):**
18
+ - *Duplicated Code* -> extract shared primitive/helper only when real duplication appears across sites.
19
+ - *Shotgun Surgery / Divergent Change* -> co-locate code that changes together.
20
+ - *Speculative Generality* -> delete unused props, flags, and hypothetical abstractions.
21
+ - *Mysterious Name / Primitive Obsession* -> give domain concepts clear, honest names and types.
22
+ - *Feature Envy / Message Chains* -> keep logic beside the data it operates on.
23
+ 5. **Security & Privacy Sanity:** Zero secrets or `.env` keys in client bundles, safe escaping on rendered user data (`dangerouslySetInnerHTML` avoided unless strictly sanitized), origin isolation respected for auth/CMS routes.