UI Interview
Invoke as $ui-interview.
Use this skill when the user needs to turn a rough product idea, feature, page, wireframe, screenshot, or existing app surface into a detailed implementation-ready UI specification. This skill focuses on the interface itself: pages, regions, components, buttons, links, labels, spacing, element size, visual hierarchy, state, responsive layout, and accessibility.
Use $ux-variations after this skill when the user wants multiple experience concepts or interface variants to compare before locking the final direction.
When invoked with --requirements-only (or when the user says "just requirements", "requirements only", or "content requirements"), this skill stops after establishing what the page needs — data, actions, states, and constraints — without committing to any layout, component, or spatial decisions. This mode feeds directly into $ux-variations --layout-mode to explore multiple concrete visual approaches for the same content contract.
Workflow
Resolve context
- Read
.agents/project.json if it exists.
- Read
README.md, AGENTS.md, CLAUDE.md, relevant docs/, specs/, research/, route files, component directories, screenshots, and design artifacts when present.
- If the request is for an existing UI, inspect the current implementation before interviewing.
- If multiple apps or surfaces are plausible, ask the user which app, flow, or page to cover first.
Treat inputs as draft material
- Do not assume the current UI, prompt, screenshot, or mockup is final.
- Product specs, ICP documents, and journey maps are reference material, not locked constraints. The user may override any product decision during the interview. When a user's interview answer contradicts an existing spec, adopt the interview answer and note the divergence.
- Preserve explicit constraints, but challenge unclear defaults before they become implementation decisions.
- Distinguish product behavior decisions from UI presentation decisions.
Surface assumptions before probing
- Present a UI Assumptions Manifest before deep questioning.
- Tag each assumption with:
[from spec] - explicitly stated in a spec, prompt, or issue
[from codebase] - derived from existing routes, components, styles, or assets
[from research] - derived from ICP, audience, journey, feedback, or product research
[from artifact] - derived from screenshot, mockup, image, Figma export, or wireframe
[inferred] - filled in by judgment
- Cover at least:
- Product and user context
- Pages, routes, and entry points
- Prototype-first boundary for new product or substantial feature work: what the user should be able to click through first, whether multiple route-based experiments should be built, what data can be fake, fixture-backed, or in-memory, and which infrastructure must be represented visually but not implemented yet.
- Primary tasks per page
- Navigation model
- Information hierarchy
- Layout grid and spatial density
- Component inventory
- Button and link semantics
- Form fields, validation, and error display
- Empty, loading, disabled, success, warning, and failure states
- Responsive breakpoints and mobile behavior
- Accessibility requirements
- Visual language, typography, color, iconography, and asset usage
- Implementation constraints from the existing stack or design system
- Ask the user to confirm, correct, or flag assumptions before continuing.
Interview page by page
- Codex interview cadence is one primary decision question per turn by default. Use short follow-up bullets only when they clarify the same page or interface decision, not to batch unrelated questions.
- Move through the interface in this order unless the user asks otherwise:
- Global shell: header, sidebar, footer, navigation, account controls, notifications
- Page inventory: every route, modal, drawer, overlay, and important empty state
- Page purpose: user goal, task priority, and success condition
- Prototype calibration: first clickable journey, route-based experiment set, fixture/fake data boundaries, infrastructure-only states to mock rather than implement, and taste/feel questions the prototype must answer before database, auth, payment, analytics, deployment, admin, or multi-tenant work is planned.
4b. Requirements gate (requirements-only mode)
In requirements-only mode, stop here — do not proceed to layout anatomy, component inventory, or spatial decisions.
For each page, confirm:
- Data fields and entities with cardinality: one, many, nested, or polymorphic
- User actions: create, edit, delete, filter, sort, export, navigate, bulk-select, reorder
- States: empty, loading, error, partial, full, offline, permission-denied
- Constraints: real-time updates, offline support, accessibility requirements, performance budgets
- Content hierarchy: primary, secondary, tertiary information
- Relationships between data elements: parent-child, peer, reference, aggregate
Present a Content Requirements Manifest summarizing all pages, then ask the user to confirm before writing deliverables.
Write specs/ui-requirements-[topic].md and ui-requirements-[topic]-interview.md.
After writing files, recommend $ux-variations --layout-mode to explore multiple visual approaches for these requirements, or $ui-interview without the flag to proceed directly to a single deep UI specification, or check .agents/project.json.enabled_packs for agent-work-admin — if agent-work-admin is not enabled, recommend $pack install agent-work-admin first; if agent-work-admin is enabled, recommend $roadmap — if the interface is ready to sequence into work.
Stop. Do not continue to step 5 or beyond.
- Layout anatomy: top-to-bottom and left-to-right regions, alignment, density, scroll behavior
- Component inventory: tables, lists, cards, forms, charts, media, editors, maps, canvases
- Controls: every button, icon button, segmented control, checkbox, radio, toggle, input, menu, tab, link, and destructive action
- Copy: headings, labels, helper text, validation text, confirmation text, empty-state text
- States: default, hover, focus, active, selected, disabled, loading, error, success, partial, offline
- Spatial details: element prominence, approximate sizes, gaps, padding, fixed or fluid dimensions, sticky regions, overlap rules, max widths
- Responsive behavior: desktop, tablet, mobile, wide desktop, touch target sizing, collapsed controls
- Accessibility: keyboard order, focus traps, labels, contrast, reduced motion, screen reader names. Include color-blind safe patterns, keyboard navigation, reduced motion support, and screen reader labels by default in every spec. Do not present accessibility features as optional checkboxes. Only ask about domain-specific accessibility when the product context warrants it.
When a page includes repeated items, define one canonical item and its variations rather than asking about every row individually.
Research and recommend by default
- Use project evidence and established UI conventions before asking the user to invent details.
- For material decisions, present options, a recommendation, rationale, tradeoffs, and mitigation.
- Recommend familiar controls over novel patterns unless the product has a strong reason to deviate.
- For frontend work, respect the existing design system, component library, and implementation patterns.
- Reference and inspiration questions are low-priority. Ask once early, accept any answer including "none" or "let's experiment," and move on. Do not block the interview on reference input.
Coverage checkpoint
- Before concluding, present a concise checklist of pages, components, controls, states, responsive behavior, and unresolved risks.
- Ask whether anything is missing or should be revisited before writing deliverables.
Deliverables
- Write the completed UI specification to
specs/ui-[topic].md.
- Write the interview log to
ui-[topic]-interview.md.
The UI specification must include:
- Scope and source evidence
- UI Assumptions Manifest with confirmations and corrections
- Page inventory and route map
- Global shell and navigation rules
- Detailed page-by-page anatomy
- Component inventory and reuse guidance
- Control inventory with labels, destinations, actions, disabled rules, and confirmation behavior
- Link inventory with destinations and external/internal classification
- Layout, spacing, sizing, and responsive rules
- Visual style direction and asset requirements
- Interaction states and accessibility requirements
- Implementation notes tied to the existing stack
- Open questions, risks, and explicit non-goals
- For new product interfaces or substantial feature interfaces, a prototype-first section naming the first clickable journey, experiment route map when multiple alternatives should be tested, fake/fixture data, visually mocked infrastructure states, deferred production infrastructure, and the evidence required before implementation planning promotes any deferred infrastructure.
The interview log must include:
- The manifest as presented
- Every question asked
- Options and recommendations presented
- User responses and final decisions
- Notable changes from the initial draft, current implementation, or artifact
After writing files, recommend $ux-variations if variants are needed before implementation, or check .agents/project.json.enabled_packs for agent-work-admin — if agent-work-admin is not enabled, recommend $pack install agent-work-admin first; if agent-work-admin is enabled, recommend $roadmap — if the interface is ready to sequence into work.
Alignment Page
Build and attempt to open alignment/ui-interview-{topic}.html before writing or replacing specs/ui-[topic].md or the interview log.
Alignment gates. Treat gates as explicit review sections inside the HTML page. Include evidence coverage, assumptions/confidence, scope/non-goals, candidate/verdict decisions, artifact destination, proposed file changes, coverage checkpoint, and approval gates. Render surfaced assumptions, the UI or content requirements manifest, page inventory, route map, component/control/link inventories, prototype-first boundary, and every proposed deliverable section with no context loss from source evidence or interview notes.
Required inline questions. Ask whether the evidence is sufficient for the UI decisions, whether any assumptions or confidence levels are wrong, whether page/component decisions and non-goals are acceptable, whether the proposed canonical file changes are approved, and whether any downstream route should remain blocked.
Gate YAML contract. Compile answers into YAML with section, gate_type, status, decision, notes, and approved_file_changes fields. The page must automatically attempt to copy the YAML to the clipboard, provide an explicit "Copy YAML" button, and fall back to selecting the textarea contents.
Pre-approval stop. Before user approval, the next action is review of the HTML alignment page. Ask the user to review the page and provide the compiled YAML answers. Do not include Recommended next skill, Recommended next command, or downstream routing language until after compiled YAML has been provided and the approved artifacts have been written or updated.
Constraints
- Do not skip small interface elements. Buttons, links, icons, menus, and empty states are part of the spec.
- Do not collapse UI detail into generic phrases such as "standard dashboard layout" or "normal form behavior."
- Do not create high-fidelity implementation plans until the page anatomy and control behavior are decision-complete.
- Do not treat visual polish as separate from implementation. Size, spacing, hierarchy, and responsive behavior must be specified well enough for a developer to build.
- When recommending a skill from another pack, verify the pack is installed via
.agents/project.json enabled_packs. If not installed, prepend $pack install <pack-name> to the recommendation.
Archive-First Replacement Policy
- Before replacing or substantively rewriting an existing canonical research/spec document (
research/**/*.md, specs/**/*.md, or docs/specifications/**/*.md), copy the current file to docs/history/archive/YYYY-MM-DD/HHMMSS/<original-relative-path>.
- Preserve the archived snapshot exactly as it existed before the change; do not edit the archived copy after creating it.
- After the archive snapshot exists, write the updated document to the original canonical path.
- Report both the archive path and the updated canonical path in the final output.
- New files do not need archive snapshots. Append-only updates do not need archive snapshots unless an existing section is regenerated or rewritten.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
1---2name: ui-interview-53description: Interview page by page to define a complete UI specification, including layout, hierarchy, controls, links, spacing, sizing, responsive behavior, visual states, and implementation-ready interface details — supports a requirements-only mode that establishes data, actions, and states without locking layout or component decisions4---5
6# UI Interview
7
8Invoke as `$ui-interview`.
9
10Use this skill when the user needs to turn a rough product idea, feature, page, wireframe, screenshot, or existing app surface into a detailed implementation-ready UI specification. This skill focuses on the interface itself: pages, regions, components, buttons, links, labels, spacing, element size, visual hierarchy, state, responsive layout, and accessibility.
11
12Use `$ux-variations` after this skill when the user wants multiple experience concepts or interface variants to compare before locking the final direction.
13
14When invoked with `--requirements-only` (or when the user says "just requirements", "requirements only", or "content requirements"), this skill stops after establishing what the page needs — data, actions, states, and constraints — without committing to any layout, component, or spatial decisions. This mode feeds directly into `$ux-variations --layout-mode` to explore multiple concrete visual approaches for the same content contract.
15
16## Workflow
17
181. **Resolve context**
19 - Read `.agents/project.json` if it exists.
20 - Read `README.md`, `AGENTS.md`, `CLAUDE.md`, relevant `docs/`, `specs/`, `research/`, route files, component directories, screenshots, and design artifacts when present.
21 - If the request is for an existing UI, inspect the current implementation before interviewing.
22 - If multiple apps or surfaces are plausible, ask the user which app, flow, or page to cover first.
23
242. **Treat inputs as draft material**
25 - Do not assume the current UI, prompt, screenshot, or mockup is final.
26 - Product specs, ICP documents, and journey maps are reference material, not locked constraints. The user may override any product decision during the interview. When a user's interview answer contradicts an existing spec, adopt the interview answer and note the divergence.
27 - Preserve explicit constraints, but challenge unclear defaults before they become implementation decisions.
28 - Distinguish product behavior decisions from UI presentation decisions.
29
303. **Surface assumptions before probing**
31 - Present a UI Assumptions Manifest before deep questioning.
32 - Tag each assumption with:
33 - `[from spec]` - explicitly stated in a spec, prompt, or issue
34 - `[from codebase]` - derived from existing routes, components, styles, or assets
35 - `[from research]` - derived from ICP, audience, journey, feedback, or product research
36 - `[from artifact]` - derived from screenshot, mockup, image, Figma export, or wireframe
37 - `[inferred]` - filled in by judgment
38 - Cover at least:
39 - Product and user context
40 - Pages, routes, and entry points
41 - Prototype-first boundary for new product or substantial feature work: what the user should be able to click through first, whether multiple route-based experiments should be built, what data can be fake, fixture-backed, or in-memory, and which infrastructure must be represented visually but not implemented yet.
42 - Primary tasks per page
43 - Navigation model
44 - Information hierarchy
45 - Layout grid and spatial density
46 - Component inventory
47 - Button and link semantics
48 - Form fields, validation, and error display
49 - Empty, loading, disabled, success, warning, and failure states
50 - Responsive breakpoints and mobile behavior
51 - Accessibility requirements
52 - Visual language, typography, color, iconography, and asset usage
53 - Implementation constraints from the existing stack or design system
54 - Ask the user to confirm, correct, or flag assumptions before continuing.
55
564. **Interview page by page**
57 - Codex interview cadence is one primary decision question per turn by default. Use short follow-up bullets only when they clarify the same page or interface decision, not to batch unrelated questions.
58 - Move through the interface in this order unless the user asks otherwise:
59 - Global shell: header, sidebar, footer, navigation, account controls, notifications
60 - Page inventory: every route, modal, drawer, overlay, and important empty state
61 - Page purpose: user goal, task priority, and success condition
62 - Prototype calibration: first clickable journey, route-based experiment set, fixture/fake data boundaries, infrastructure-only states to mock rather than implement, and taste/feel questions the prototype must answer before database, auth, payment, analytics, deployment, admin, or multi-tenant work is planned.
63
644b. **Requirements gate (requirements-only mode)**
65 - In requirements-only mode, stop here — do not proceed to layout anatomy, component inventory, or spatial decisions.
66 - For each page, confirm:
67 - Data fields and entities with cardinality: one, many, nested, or polymorphic
68 - User actions: create, edit, delete, filter, sort, export, navigate, bulk-select, reorder
69 - States: empty, loading, error, partial, full, offline, permission-denied
70 - Constraints: real-time updates, offline support, accessibility requirements, performance budgets
71 - Content hierarchy: primary, secondary, tertiary information
72 - Relationships between data elements: parent-child, peer, reference, aggregate
73 - Present a **Content Requirements Manifest** summarizing all pages, then ask the user to confirm before writing deliverables.
74 - Write `specs/ui-requirements-[topic].md` and `ui-requirements-[topic]-interview.md`.
75 - After writing files, recommend `$ux-variations --layout-mode` to explore multiple visual approaches for these requirements, or `$ui-interview` without the flag to proceed directly to a single deep UI specification, or check `.agents/project.json.enabled_packs` for `agent-work-admin` — if `agent-work-admin` is not enabled, recommend `$pack install agent-work-admin` first; if `agent-work-admin` is enabled, recommend `$roadmap` — if the interface is ready to sequence into work.
76 - Stop. Do not continue to step 5 or beyond.
77
78 - Layout anatomy: top-to-bottom and left-to-right regions, alignment, density, scroll behavior
79 - Component inventory: tables, lists, cards, forms, charts, media, editors, maps, canvases
80 - Controls: every button, icon button, segmented control, checkbox, radio, toggle, input, menu, tab, link, and destructive action
81 - Copy: headings, labels, helper text, validation text, confirmation text, empty-state text
82 - States: default, hover, focus, active, selected, disabled, loading, error, success, partial, offline
83 - Spatial details: element prominence, approximate sizes, gaps, padding, fixed or fluid dimensions, sticky regions, overlap rules, max widths
84 - Responsive behavior: desktop, tablet, mobile, wide desktop, touch target sizing, collapsed controls
85 - Accessibility: keyboard order, focus traps, labels, contrast, reduced motion, screen reader names. Include color-blind safe patterns, keyboard navigation, reduced motion support, and screen reader labels by default in every spec. Do not present accessibility features as optional checkboxes. Only ask about domain-specific accessibility when the product context warrants it.
86 - When a page includes repeated items, define one canonical item and its variations rather than asking about every row individually.
87
885. **Research and recommend by default**
89 - Use project evidence and established UI conventions before asking the user to invent details.
90 - For material decisions, present options, a recommendation, rationale, tradeoffs, and mitigation.
91 - Recommend familiar controls over novel patterns unless the product has a strong reason to deviate.
92 - For frontend work, respect the existing design system, component library, and implementation patterns.
93 - Reference and inspiration questions are low-priority. Ask once early, accept any answer including "none" or "let's experiment," and move on. Do not block the interview on reference input.
94
956. **Coverage checkpoint**
96 - Before concluding, present a concise checklist of pages, components, controls, states, responsive behavior, and unresolved risks.
97 - Ask whether anything is missing or should be revisited before writing deliverables.
98
99## Deliverables
100
101- Write the completed UI specification to `specs/ui-[topic].md`.
102- Write the interview log to `ui-[topic]-interview.md`.
103
104The UI specification must include:
105
106- Scope and source evidence
107- UI Assumptions Manifest with confirmations and corrections
108- Page inventory and route map
109- Global shell and navigation rules
110- Detailed page-by-page anatomy
111- Component inventory and reuse guidance
112- Control inventory with labels, destinations, actions, disabled rules, and confirmation behavior
113- Link inventory with destinations and external/internal classification
114- Layout, spacing, sizing, and responsive rules
115- Visual style direction and asset requirements
116- Interaction states and accessibility requirements
117- Implementation notes tied to the existing stack
118- Open questions, risks, and explicit non-goals
119- For new product interfaces or substantial feature interfaces, a prototype-first section naming the first clickable journey, experiment route map when multiple alternatives should be tested, fake/fixture data, visually mocked infrastructure states, deferred production infrastructure, and the evidence required before implementation planning promotes any deferred infrastructure.
120
121The interview log must include:
122
123- The manifest as presented
124- Every question asked
125- Options and recommendations presented
126- User responses and final decisions
127- Notable changes from the initial draft, current implementation, or artifact
128
129After writing files, recommend `$ux-variations` if variants are needed before implementation, or check `.agents/project.json.enabled_packs` for `agent-work-admin` — if `agent-work-admin` is not enabled, recommend `$pack install agent-work-admin` first; if `agent-work-admin` is enabled, recommend `$roadmap` — if the interface is ready to sequence into work.
130
131### Alignment Page
132
133Build and attempt to open `alignment/ui-interview-{topic}.html` before writing or replacing `specs/ui-[topic].md` or the interview log.
134
135**Alignment gates.** Treat gates as explicit review sections inside the HTML page. Include evidence coverage, assumptions/confidence, scope/non-goals, candidate/verdict decisions, artifact destination, proposed file changes, coverage checkpoint, and approval gates. Render surfaced assumptions, the UI or content requirements manifest, page inventory, route map, component/control/link inventories, prototype-first boundary, and every proposed deliverable section with no context loss from source evidence or interview notes.
136
137**Required inline questions.** Ask whether the evidence is sufficient for the UI decisions, whether any assumptions or confidence levels are wrong, whether page/component decisions and non-goals are acceptable, whether the proposed canonical file changes are approved, and whether any downstream route should remain blocked.
138
139**Gate YAML contract.** Compile answers into YAML with `section`, `gate_type`, `status`, `decision`, `notes`, and `approved_file_changes` fields. The page must automatically attempt to copy the YAML to the clipboard, provide an explicit "Copy YAML" button, and fall back to selecting the textarea contents.
140
141**Pre-approval stop.** Before user approval, the next action is review of the HTML alignment page. Ask the user to review the page and provide the compiled YAML answers. Do not include `Recommended next skill`, `Recommended next command`, or downstream routing language until after compiled YAML has been provided and the approved artifacts have been written or updated.
142
143## Constraints
144
145- Do not skip small interface elements. Buttons, links, icons, menus, and empty states are part of the spec.
146- Do not collapse UI detail into generic phrases such as "standard dashboard layout" or "normal form behavior."
147- Do not create high-fidelity implementation plans until the page anatomy and control behavior are decision-complete.
148- Do not treat visual polish as separate from implementation. Size, spacing, hierarchy, and responsive behavior must be specified well enough for a developer to build.
149- When recommending a skill from another pack, verify the pack is installed via `.agents/project.json` `enabled_packs`. If not installed, prepend `$pack install <pack-name>` to the recommendation.
150
151## Archive-First Replacement Policy
152
153- Before replacing or substantively rewriting an existing canonical research/spec document (`research/**/*.md`, `specs/**/*.md`, or `docs/specifications/**/*.md`), copy the current file to `docs/history/archive/YYYY-MM-DD/HHMMSS/<original-relative-path>`.
154- Preserve the archived snapshot exactly as it existed before the change; do not edit the archived copy after creating it.
155- After the archive snapshot exists, write the updated document to the original canonical path.
156- Report both the archive path and the updated canonical path in the final output.
157- New files do not need archive snapshots. Append-only updates do not need archive snapshots unless an existing section is regenerated or rewritten.
158
159## Default Shipping Contract
160
161Follow the shared shipping contract convention in CLAUDE.md.