Consolidate Variations
Invoke as $consolidate-variations.
Use this skill after the user has built and evaluated multiple UI layout variations (typically generated via $ux-variations --layout-mode, built via $prototype, and evaluated via $uat --variant-evaluation (check .agents/project.json.enabled_packs for product-testing — if product-testing is not enabled, recommend npx skillpacks install product-testing from the project shell, first)). This skill compares the variations, interviews the user on what works and what does not in each one, cherry-picks the best elements, resolves conflicts where preferred choices are incompatible, and produces a single consolidated prototype for post-prototype production specification.
Users with manually built variations can also use this skill directly, but consolidation should not happen before the user has reviewed the variants and captured evidence.
Follow DESIGN-TREE-LOOP.md for prototype-phase routing, state storage, approval boundaries, and task classification. Consolidation requires UAT evidence or explicit user readiness plus explicit consolidation decisions before writing prototypes/{topic}/consolidated/.
Process
0. Product-Path Scope Resolution
Resolve research scope by product path before using code or app structure as a hint:
- If
$ARGUMENTS names a non-archived research/{slug}/ directory or a product-path ID whose scope_path points there, use that path. Treat {slug} as the product/app name, not the ICP, audience, or segment label.
- If
$ARGUMENTS names only research/_archive/{slug}/ or a manifest entry with status: archived or legacy status: abandoned, stop and warn that the path is archived; do not write or update scoped outputs there.
- Read
research/.progress.yaml when present. Normalize legacy active_path to active_paths on read and write back active_paths on manifest updates. Treat legacy abandoned as archived; exclude archived, abandoned, deferred, revisit_candidate, promoted, and any scope_path under research/_archive/ from active target selection.
- If active product paths exist in the manifest, use those paths. If multiple active paths exist, ask which one to target unless this skill explicitly supports cross-path output.
- If no active manifest target exists, list non-archived product directories under
research/, excluding research/_archive/ and dot directories. Auto-select only when exactly one exists; ask when multiple exist.
- If no product directories exist, use flat
research/ single-product mode.
- Detect monorepo/app/package structure only as a secondary hint. Suggest creating a missing
research/{slug}/ product path when code clearly exposes an app, but do not require code or monorepo detection before using research/{slug}/.
When product path {slug} is active, read research under research/{slug}/, read pre-prototype design artifacts under design/{slug}/, write prototype output under prototypes/{topic}/, and treat top-level research/*.md and design/*.md files as flat-mode documents or cross-path summaries.
Resolve context
- Read
.agents/project.json if it exists.
- Read
README.md, AGENTS.md, CLAUDE.md, relevant docs/, specs/, research/, route files, component directories, and design artifacts when present.
- Locate the variation plan:
design/ui-layout-variations-[topic].md or design/ux-variations-[topic].md.
- Locate the content requirements:
design/ui-requirements-[topic].md or equivalent content contract.
- Locate the flow-tree manifest:
design/flow-tree-[topic].yaml or design/{slug}/flow-tree-{topic}.yaml when present.
- Locate variant evaluation evidence:
research/uat-variant-evaluation-[topic].md, product-path-scoped equivalents, research/uat-plan.md result logs, screenshots, notes, recordings, or explicit user-provided review notes.
- Locate built implementations: scan route files, component directories, and any variation-specific directories or branches.
- If the variation spec or implementations cannot be found, ask the user to point to them.
Evidence gate
- If no evaluation evidence exists and the user has not explicitly said they already reviewed the variants and is ready to converge, stop and recommend
$uat --variant-evaluation (check .agents/project.json.enabled_packs for product-testing — if product-testing is not enabled, recommend npx skillpacks install product-testing from the project shell, first).
- Do not infer a winner from specs alone. Built variants need hands-on review or explicit user readiness before consolidation.
- If some variants are unreviewed, ask whether to exclude them, evaluate them first via
$uat --variant-evaluation (check .agents/project.json.enabled_packs for product-testing — if product-testing is not enabled, recommend npx skillpacks install product-testing from the project shell, first), or include them as spec-only references.
Present variation inventory
- List each variation with a one-line summary of its approach.
- Note build status for each: built and reviewed, built but unreviewed, partially built, spec-only.
- Note evidence status for each: result log present, user notes present, no evidence.
- Confirm which variations the user wants to consolidate.
Interview per variation
- For each reviewed variation, ask one primary decision question per turn by default. Use short follow-up bullets only when they clarify the same variation decision, not to batch unrelated questions:
- What works well in this variation? Name specific elements, regions, or interactions.
- What does not work? What feels wrong, cluttered, sparse, or confusing?
- Any specific component, region, or interaction to keep in the final design?
- Anything to explicitly reject and never use?
- Record responses as structured annotations per variation:
- Keep: elements the user wants in the final design, with source variation
- Reject: elements the user never wants, with source variation
- Neutral: elements the user has no strong opinion on
Cross-variation synthesis
- Present a Consolidation Matrix showing each design dimension and which variation's approach the user preferred:
| Design Element |
Variation A |
Variation B |
Variation C |
Winner |
| Container pattern |
card grid |
data table |
list + detail |
? |
| Detail view |
modal |
sidebar |
full-page |
? |
| Navigation |
top nav |
side nav |
tabs |
? |
- Fill in winners based on UAT evidence and interview responses.
- Mark conflicts where preferred choices from different dimensions are incompatible.
- For each conflict, present the tension, offer 2-3 resolution options with tradeoffs, state a recommendation, and ask the user to resolve it.
- Continue until every row in the matrix has a winner and all conflicts are resolved.
Build consolidated prototype
- Merge the best elements from variation prototypes into a single runnable artifact at
prototypes/{topic}/consolidated/.
- Build only after UAT evidence and user consolidation decisions identify which elements to keep, reject, or resolve.
- The consolidated prototype must reflect:
- Layout skeleton: regions, proportions, scroll behavior
- Primary content pattern
- Detail view pattern
- Navigation pattern and placement
- Action placement
- Density and spacing approach
- Responsive behavior at mobile, tablet, and desktop breakpoints
- States rendering
- Ask the user to confirm the consolidated design before building the prototype.
Coverage checkpoint
- Verify every content requirement from
design/ui-requirements-[topic].md has a UI home in the consolidated prototype.
- Verify every user action has a placement: button, menu item, keyboard shortcut, or gesture.
- Verify all states are accounted for: empty, loading, error, partial, full, offline, permission-denied.
- Flag any gaps and resolve them before writing.
Deliverables
- Write the consolidated prototype to
prototypes/{topic}/consolidated/.
- Write the consolidation interview log to
design/consolidate-variations-[topic]-interview.md in flat mode or design/{slug}/consolidate-variations-[topic]-interview.md in product-path mode.
- Update the scoped flow-tree manifest to mark consolidated branches as
consolidated or promoted-to-prototype when applicable.
Alignment Page
When this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page following ALIGNMENT-PAGE.md in this skill's directory. Output: alignment/consolidate-variations-{topic}.html.
Constraints
- Do not proceed without evaluation evidence unless the user explicitly says they have reviewed the variants and is ready to converge.
- Do not pick winners without user input. Present the matrix and let the user decide.
- Do not ignore conflicts. If two preferred choices are spatially or functionally incompatible, surface the tension and resolve it explicitly.
- The consolidated prototype must preserve the approved UI branch detail from
$ui-interview and be concrete enough for $spec-interview to extract production implementation requirements.
- Do not lose content requirements. Every data field, action, and state from the requirements spec must appear in the final design.
- Do not bias toward the first or last variation reviewed. Present them neutrally and let the user's feedback and evaluation evidence drive the outcome.
- Do not use
tasks/todo.md for consolidation branch progress or human review. Human evaluation belongs in tasks/manual-todo.md; implementation fixes may enter tasks/todo.md only after human evidence exists.
Archive-First Replacement Policy
- Before replacing or substantively rewriting an existing canonical research/design/spec document (
research/**/*.md, design/**/*.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: consolidate-variations-24
3description: Compare multiple built UI variations after UAT evidence, interview the user on what works and what does not, resolve conflicts, and produce a final consolidated prototype
4type: planning
5version: v0.14
6required_conventions: [alignment-page, design-tree-loop]
7argument-hint: "[optional: topic, page, or path to variation specs]"
8visual_tier: prototype
9metadata:
10 source: https://skillmd.com/skills/georgeqle/consolidate-variations-24
11---
12
13# Consolidate Variations
14
15Invoke as `$consolidate-variations`.
16
17Use this skill after the user has built and evaluated multiple UI layout variations (typically generated via `$ux-variations --layout-mode`, built via `$prototype`, and evaluated via `$uat --variant-evaluation` (check `.agents/project.json.enabled_packs` for `product-testing` — if `product-testing` is not enabled, recommend `npx skillpacks install product-testing` from the project shell, first)). This skill compares the variations, interviews the user on what works and what does not in each one, cherry-picks the best elements, resolves conflicts where preferred choices are incompatible, and produces a single consolidated prototype for post-prototype production specification.
18
19Users with manually built variations can also use this skill directly, but consolidation should not happen before the user has reviewed the variants and captured evidence.
20
21Follow `DESIGN-TREE-LOOP.md` for prototype-phase routing, state storage, approval boundaries, and task classification. Consolidation requires UAT evidence or explicit user readiness plus explicit consolidation decisions before writing `prototypes/{topic}/consolidated/`.
22
23## Process
24
25### 0. Product-Path Scope Resolution
26
27Resolve research scope by product path before using code or app structure as a hint:
28
291. If `$ARGUMENTS` names a non-archived `research/{slug}/` directory or a product-path ID whose `scope_path` points there, use that path. Treat `{slug}` as the product/app name, not the ICP, audience, or segment label.
302. If `$ARGUMENTS` names only `research/_archive/{slug}/` or a manifest entry with `status: archived` or legacy `status: abandoned`, stop and warn that the path is archived; do not write or update scoped outputs there.
313. Read `research/.progress.yaml` when present. Normalize legacy `active_path` to `active_paths` on read and write back `active_paths` on manifest updates. Treat legacy `abandoned` as `archived`; exclude `archived`, `abandoned`, `deferred`, `revisit_candidate`, `promoted`, and any `scope_path` under `research/_archive/` from active target selection.
324. If active product paths exist in the manifest, use those paths. If multiple active paths exist, ask which one to target unless this skill explicitly supports cross-path output.
335. If no active manifest target exists, list non-archived product directories under `research/`, excluding `research/_archive/` and dot directories. Auto-select only when exactly one exists; ask when multiple exist.
346. If no product directories exist, use flat `research/` single-product mode.
357. Detect monorepo/app/package structure only as a secondary hint. Suggest creating a missing `research/{slug}/` product path when code clearly exposes an app, but do not require code or monorepo detection before using `research/{slug}/`.
36
37When product path `{slug}` is active, read research under `research/{slug}/`, read pre-prototype design artifacts under `design/{slug}/`, write prototype output under `prototypes/{topic}/`, and treat top-level `research/*.md` and `design/*.md` files as flat-mode documents or cross-path summaries.
38
391. **Resolve context**
40 - Read `.agents/project.json` if it exists.
41 - Read `README.md`, `AGENTS.md`, `CLAUDE.md`, relevant `docs/`, `specs/`, `research/`, route files, component directories, and design artifacts when present.
42 - Locate the variation plan: `design/ui-layout-variations-[topic].md` or `design/ux-variations-[topic].md`.
43 - Locate the content requirements: `design/ui-requirements-[topic].md` or equivalent content contract.
44 - Locate the flow-tree manifest: `design/flow-tree-[topic].yaml` or `design/{slug}/flow-tree-{topic}.yaml` when present.
45 - Locate variant evaluation evidence: `research/uat-variant-evaluation-[topic].md`, product-path-scoped equivalents, `research/uat-plan.md` result logs, screenshots, notes, recordings, or explicit user-provided review notes.
46 - Locate built implementations: scan route files, component directories, and any variation-specific directories or branches.
47 - If the variation spec or implementations cannot be found, ask the user to point to them.
48
492. **Evidence gate**
50 - If no evaluation evidence exists and the user has not explicitly said they already reviewed the variants and is ready to converge, stop and recommend `$uat --variant-evaluation` (check `.agents/project.json.enabled_packs` for `product-testing` — if `product-testing` is not enabled, recommend `npx skillpacks install product-testing` from the project shell, first).
51 - Do not infer a winner from specs alone. Built variants need hands-on review or explicit user readiness before consolidation.
52 - If some variants are unreviewed, ask whether to exclude them, evaluate them first via `$uat --variant-evaluation` (check `.agents/project.json.enabled_packs` for `product-testing` — if `product-testing` is not enabled, recommend `npx skillpacks install product-testing` from the project shell, first), or include them as spec-only references.
53
543. **Present variation inventory**
55 - List each variation with a one-line summary of its approach.
56 - Note build status for each: built and reviewed, built but unreviewed, partially built, spec-only.
57 - Note evidence status for each: result log present, user notes present, no evidence.
58 - Confirm which variations the user wants to consolidate.
59
604. **Interview per variation**
61 - For each reviewed variation, ask one primary decision question per turn by default. Use short follow-up bullets only when they clarify the same variation decision, not to batch unrelated questions:
62 - What works well in this variation? Name specific elements, regions, or interactions.
63 - What does not work? What feels wrong, cluttered, sparse, or confusing?
64 - Any specific component, region, or interaction to keep in the final design?
65 - Anything to explicitly reject and never use?
66 - Record responses as structured annotations per variation:
67 - **Keep**: elements the user wants in the final design, with source variation
68 - **Reject**: elements the user never wants, with source variation
69 - **Neutral**: elements the user has no strong opinion on
70
715. **Cross-variation synthesis**
72 - Present a **Consolidation Matrix** showing each design dimension and which variation's approach the user preferred:
73
74 | Design Element | Variation A | Variation B | Variation C | Winner |
75 |---|---|---|---|---|
76 | Container pattern | card grid | data table | list + detail | ? |
77 | Detail view | modal | sidebar | full-page | ? |
78 | Navigation | top nav | side nav | tabs | ? |
79
80 - Fill in winners based on UAT evidence and interview responses.
81 - Mark conflicts where preferred choices from different dimensions are incompatible.
82 - For each conflict, present the tension, offer 2-3 resolution options with tradeoffs, state a recommendation, and ask the user to resolve it.
83 - Continue until every row in the matrix has a winner and all conflicts are resolved.
84
856. **Build consolidated prototype**
86 - Merge the best elements from variation prototypes into a single runnable artifact at `prototypes/{topic}/consolidated/`.
87 - Build only after UAT evidence and user consolidation decisions identify which elements to keep, reject, or resolve.
88 - The consolidated prototype must reflect:
89 - Layout skeleton: regions, proportions, scroll behavior
90 - Primary content pattern
91 - Detail view pattern
92 - Navigation pattern and placement
93 - Action placement
94 - Density and spacing approach
95 - Responsive behavior at mobile, tablet, and desktop breakpoints
96 - States rendering
97 - Ask the user to confirm the consolidated design before building the prototype.
98
997. **Coverage checkpoint**
100 - Verify every content requirement from `design/ui-requirements-[topic].md` has a UI home in the consolidated prototype.
101 - Verify every user action has a placement: button, menu item, keyboard shortcut, or gesture.
102 - Verify all states are accounted for: empty, loading, error, partial, full, offline, permission-denied.
103 - Flag any gaps and resolve them before writing.
104
105## Deliverables
106
107- Write the consolidated prototype to `prototypes/{topic}/consolidated/`.
108- Write the consolidation interview log to `design/consolidate-variations-[topic]-interview.md` in flat mode or `design/{slug}/consolidate-variations-[topic]-interview.md` in product-path mode.
109- Update the scoped flow-tree manifest to mark consolidated branches as `consolidated` or `promoted-to-prototype` when applicable.
110
111### Alignment Page
112
113When this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page following `ALIGNMENT-PAGE.md` in this skill's directory. Output: `alignment/consolidate-variations-{topic}.html`.
114
115## Constraints
116
117- Do not proceed without evaluation evidence unless the user explicitly says they have reviewed the variants and is ready to converge.
118- Do not pick winners without user input. Present the matrix and let the user decide.
119- Do not ignore conflicts. If two preferred choices are spatially or functionally incompatible, surface the tension and resolve it explicitly.
120- The consolidated prototype must preserve the approved UI branch detail from `$ui-interview` and be concrete enough for `$spec-interview` to extract production implementation requirements.
121- Do not lose content requirements. Every data field, action, and state from the requirements spec must appear in the final design.
122- Do not bias toward the first or last variation reviewed. Present them neutrally and let the user's feedback and evaluation evidence drive the outcome.
123- Do not use `tasks/todo.md` for consolidation branch progress or human review. Human evaluation belongs in `tasks/manual-todo.md`; implementation fixes may enter `tasks/todo.md` only after human evidence exists.
124
125## Archive-First Replacement Policy
126
127- Before replacing or substantively rewriting an existing canonical research/design/spec document (`research/**/*.md`, `design/**/*.md`, `specs/**/*.md`, or `docs/specifications/**/*.md`), copy the current file to `docs/history/archive/YYYY-MM-DD/HHMMSS/<original-relative-path>`.
128- Preserve the archived snapshot exactly as it existed before the change; do not edit the archived copy after creating it.
129- After the archive snapshot exists, write the updated document to the original canonical path.
130- Report both the archive path and the updated canonical path in the final output.
131- New files do not need archive snapshots. Append-only updates do not need archive snapshots unless an existing section is regenerated or rewritten.
132
133## Default Shipping Contract
134
135Follow the shared shipping contract convention in CLAUDE.md.