Live Reference Prototype: SORA Rooftop Spatial & Ergonomic Booking
Companion Playbook: CX-Driven Design Framework
CX-Driven Design is an engineering methodology and open-source knowledge base for translating physical Customer Experience (CX) friction into deterministic UI architecture. Instead of treating booking and spatial selection interfaces as abstract CRUD forms wrapped in a clean component library, this framework derives every viewport, interaction, geometric constraint, and confirmation artifact from the physical anxieties a real guest experiences before, during, and after arrival. Grounded in First Principles & Way of Thinking (Tiếng Việt), it pairs a 5-layer architecture with normative spatial, ergonomic, interaction, and QA specifications.
The reference implementation in docs/index.html models a 28th-floor rooftop restaurant across 19 tables, 5 acoustic/view zones, 5 times of day, and individual guest anthropometry.
Every spatial or high-stakes physical service UI is structured across five testable layers:
- Layer 1 — Anxiety & Expectation Audit: Identify irreversible choices, sensory sensitivities, physical fit variance, and wayfinding unknowns before drawing a single wireframe.
- Layer 2 — Sensory & Temporal Proof: Replace static carousel galleries with a persistent Living Horizon calibrated to the selected time of day (
08:30to21:00), viewing angle (panOffset), mullions, and acoustic decibel tags (50 dBto68 dB). - Layer 3 — Direct On-Object Manipulation: Consolidate scattered chrome into a single Bottom Command Dock and allow pointer interaction directly on isometric tables, chairs, and open floor slots rendered via 3D AABB topological depth sorting (
topoSortSolids). - Layer 4 — Physical & Ergonomic Constraints: Compute real spatial clearance (
widthCm,legroomCm,boothSide, table merge geometry) from guest height, weight, or wheelchair bay requirements. Surface status badges only when a violation exists; never render green filler badges like "Comfortable". - Layer 5 — Operations Handoff Brief: Compile every user layout decision into an actionable operational specification (exact chair count, merged dimensions, aisle/end assignments) delivered to the front-of-house or service team at confirmation.
Read the full specification in framework/cx-to-ui-framework.md and check when to apply it in framework/decision-matrix.md.
| Path | Purpose |
|---|---|
knowledge/00-first-principles.md |
7 First Principles and 5-Question Mental Model for physical-service UIs (Tiếng Việt) |
knowledge/01-why-cx-drives-uiux.md |
Why clean component libraries fail physical-service users (Tiếng Việt) |
knowledge/02-cx-failure-patterns.md |
6 recurring CX anti-patterns and their deterministic UI remedies (Tiếng Việt) |
framework/cx-to-ui-framework.md |
Full 5-layer architecture contracts and verification rules (Tiếng Việt) |
framework/decision-matrix.md |
Bilingual matrix for choosing Spatial/Sensory UI vs. standard form flows |
specs/01-spatial-data-schema.md |
Normative TypeScript/JSON schema for zones, tables, lighting, and handoff briefs |
specs/02-ergonomic-and-constraint-engine.md |
Normative anthropometric math, clearance rules, clash detection, and table-merge geometry |
specs/03-interaction-and-ia-spec.md |
Normative IA shell, Living Horizon, Bottom Command Dock, topoSortSolids, and pointer hit-testing |
specs/04-verification-and-qa-spec.md |
Normative deterministic QA gates, layout probes, link checks, and 5-state visual proof matrix |
workflows/cx-discovery-to-prototype.md |
6-phase workflow traced from field friction through SORA v1 to v5 (Tiếng Việt) |
skills/cx-driven-ui/SKILL.md |
Domain-agnostic 2-Mode Core Skill (Brainstorm Mode + Build Mode with 5 Universal CX Invariants and visual-proof gate) |
skills/cx-driven-ui/references/brainstorm-protocol.md |
Mode 1 interactive CX brainstorm protocol across any industry: 4 Anxiety Archetypes and 3-Tier Solution Matrix |
skills/cx-driven-ui/references/patterns/spatial-and-booking.md |
Pattern Pack for Living Horizon, 3D AABB topoSortSolids, anthropometric fit, and seating/room booking |
skills/cx-driven-ui/references/patterns/financial-and-risk.md |
Pattern Pack for Fintech, checkout, billing, irreversible commitment guards, and transparent receipts |
skills/cx-driven-ui/references/patterns/temporal-and-service.md |
Pattern Pack for healthcare, logistics, SLA timelines, wait-load cues, and arrival prep briefs |
skills/cx-driven-ui/references/patterns/ecommerce-and-config.md |
Pattern Pack for custom configurators, compatibility checks, variant trade-off proof, and fulfillment specs |
skills/cx-driven-ui/references/cx-anxiety-checklist.md |
Universal 20-point pre-build CX audit across expectation, physical fit, temporal honesty, financial/cognitive risk, and handoff |
skills/cx-driven-ui/references/industry-blueprints.md |
Universal domain-to-Pattern-Pack matrix mapping Fintech, SaaS, E-commerce, Logistics, Healthcare, and 6 physical-service verticals |
demos/01-fnb-sora-rooftop.md |
Engineering case study of docs/index.html (SORA Rooftop v5) |
demos/02-hotel-room-preview.md |
Blueprint for hotel room solar exposure, dB heatmaps, and desk/bed ergonomics |
demos/03-aviation-seat-experience.md |
Blueprint for flight seat knee clearance, window alignment, glare, and galley noise |
demos/04-healthcare-clinic-journey.md |
Blueprint for clinic parking-to-exam accessibility, sensory wait load, and intake prep |
demos/05-theater-and-events.md |
Blueprint for stage sightline cones, acoustic dispersion, and accessible companion seating |
demos/06-heritage-train-hue-danang.md |
Community case study by Tùng Đường for the Hue–Da Nang Heritage Train: travel direction, Sea/Mountain sides, 1-tap reverse-seat fix, and 3D "Ngồi thử" preview |
docs/ |
Self-contained live HTML prototype, Hairline SVG kernel, and verified screenshots |
Inspired by the theater-seat CX teardown in demos/05-theater-and-events.md and built from real booking frustration, Tùng Đường created an interactive booking prototype for the Hue–Da Nang Heritage Train solving fixed opposing-half carriage seating with live travel-direction arrows, Sea vs. Mountain side labels, instant reverse-seat warnings with a 1-tap forward switch, and a 3D "Ngồi thử" (Try Sitting) carriage camera. Read the full breakdown in demos/06-heritage-train-hue-danang.md or watch the demo reel.
Serve docs/ over any static HTTP server to inspect SORA Rooftop v5 locally:
git clone https://github.com/jangtrinh/cx-driven-design.git
cd cx-driven-design
python3 -m http.server 4173 --directory docsOpen http://localhost:4173 in a browser. Supported inspection query parameters include ?mode=arrange&preset=broad4, ?mode=arrange&preset=overflow7, ?table=L1&mode=preview, and ?static=1.
Copy skills/cx-driven-ui into your agent runtime's skills directory (for example, .agents/skills/ inside a project or your global skill catalog):
mkdir -p .agents/skills
cp -R skills/cx-driven-ui .agents/skills/cx-driven-uiskills/cx-driven-ui/SKILL.md operates as a domain-agnostic 2-Mode Core Skill:
- Mode 1 — Brainstorm Mode (
brainstorm-protocol.md): Guides interactive CX discovery across any domain (SaaS, Fintech, E-commerce, Logistics, Healthcare, Travel, F&B) by mapping friction across 4 Anxiety Archetypes, scoring irreversibility, and proposing a 3-Tier CX-Driven Solution Matrix before coding. - Mode 2 — Build Mode (
SKILL.md): Enforces 5 Universal CX Invariants (Silent-When-Clean warning discipline, One Surface of Truth, real constraint checks, single consistent font family, deterministic operations handoff + mandatory screenshot verification) and loads only the matching Contextual Pattern Packs on demand:patterns/spatial-and-booking.md— Living Horizon, 3D AABBtopoSortSolids, anthropometric clearance, and venue/transit seating.patterns/financial-and-risk.md— Fintech, checkout, billing, irreversible commitment guards, and fee/settlement proof.patterns/temporal-and-service.md— Logistics, healthcare, SLA timelines, wait-load uncertainty, and intake prep briefs.patterns/ecommerce-and-config.md— Product configurators, fit/compatibility guards, variant trade-off previews, and assembly/fulfillment specs.
Example Brainstorm Mode Prompt:
Use skills/cx-driven-ui/SKILL.md in Brainstorm Mode to diagnose customer anxieties in our [checkout / onboarding / booking] flow across the 4 archetypes and propose a 3-tier CX-driven solution matrix before coding.
Released under the MIT License. Copyright (c) 2026 Jang Trinh.