Prototype Auto-Generation
Core Principles
- Prototypes are communication tools, not final products: The value of prototypes lies in quickly validating assumptions, not pixel-perfect reproduction
- Fidelity progresses as needed: Validate structure with low-fidelity first, then validate interaction with medium-fidelity; no skipping steps
- Batch generation, human filtering: AI generates prototype proposals in bulk, humans make final selection and judgment
- Consistency is quantifiable: Design spec consistency is measured with a score; <85% requires human confirmation
AI->Human AI suggests -> Human approves
Interaction Mode
AI->Human AI suggests, human approves
Input
| Input Item |
Type |
Required |
Source |
Description |
| IA Proposal |
JSON |
Yes |
output/pm-design/design-ia/ia_proposals.json |
Information architecture proposal from Pipeline 9 |
| User Flow |
JSON |
Yes |
output/pm-design/design-userflow/userflow.json |
User flow from Pipeline 10 |
| PRD Document |
Markdown |
O |
output/pm-design/design-prd/prd.md |
Product requirements reference |
| PRD Structured Data |
JSON |
O |
output/pm-design/design-prd/prd.json |
Machine-consumable PRD version containing pages[]/features[], for prototype design alignment |
Execution Steps
Step 1: Low-Fidelity Prototype Generation [Core]
Generate wireframe-level prototype descriptions:
- Layout: Page structure and area division
- Content Priority: Content importance ranking for each area
- Copy: Key text content
- Functional Areas: Functional area mapping based on PRD
Step 2: Medium-Fidelity Prototype Generation [Core]
Add on top of low-fidelity:
- Area Relationships: Visual hierarchy and associations between areas
- Navigation Flow: Page-to-page transition relationships
- Data Display Needs: List data, empty states, loading state requirement descriptions (does not define specific UI implementation)
- Interaction Intents: Basic interaction behavior intents (does not define specific animation parameters; interaction-spec and UI Skill decide implementation)
Step 3: Usability Heuristic Evaluation [Core]
Evaluate based on Nielsen's 10 Usability Heuristics:
- Visibility of system status
- Match between system and real world
- User control and freedom
- Consistency and standards
- Error prevention
- Recognition rather than recall
- Flexibility and efficiency of use
- Aesthetic and minimalist design
- Help users recognize, diagnose, and recover from errors
- Help and documentation
Scoring range 0-10, weak areas with score <3 require improvement suggestions.
Output Depth Grading
| Depth Level |
Output Scope |
Description |
| quick |
prototype proposal and interaction notes |
Core conclusions + minimum viable deliverable |
| standard |
Full deliverables (default) |
Complete output including all Steps |
| deep |
Full prototype + interaction state full coverage + multi-device adaptation plan + usability assessment |
Full deliverables + extended analysis + deep simulation |
Output
Storage Path: output/pm-design/design-prototype/
Output Files:
| File |
Path |
Description |
| Prototype Specification |
prototype_spec.json |
Page layout, functional areas, interaction intents, heuristic evaluation |
| Component Catalog |
component_catalog.json |
Component catalog for UI Skill consumption, including component types, properties, data binding |
prototype_spec.json
{
"prototype": {
"fidelity": "medium",
"pages": [
{
"name": "Page Name",
"layout": {
"regions": [],
"content_priority": [],
"navigation_flow": []
},
"functional_areas": [],
"data_display_needs": [],
"interaction_intents": []
}
],
"heuristic_evaluation": {
"overall_score": 8.5,
"weak_areas": [
{
"principle": "Visibility of system status",
"score": 2,
"suggestion": "Add loading progress indicators"
}
]
}
}
}
component_catalog.json
component_catalog.json is the machine-consumable component catalog from prototype design, for UI Skill programmatic consumption, ensuring component generation aligns with prototype design.
Recommended + Alternative Mode: Each component provides a recommended type and alternatives. UI Skill can choose a more suitable implementation based on design judgment, avoiding prototype pre-selection limiting design freedom.
| Field |
Description |
| type |
Recommended component type (derived from prototype functional requirements) |
| alternatives |
Alternative component proposal list, each alternative includes type, name, reason, and applicable scenarios |
| selection_criteria |
Component selection decision basis, describing conditions for choosing recommended type vs alternative type |
Example:
{
"component_id": "user-list",
"type": "data_display",
"name": "UserTable",
"alternatives": [
{
"type": "composite",
"name": "UserCardGrid",
"reason": "Card Grid is better for visual differentiation, supports image + summary rich display",
"best_for": "Data count <20, needs visual impact, mobile-first scenarios"
}
],
"selection_criteria": "Use Table when data >20 rows or needs sorting/filtering; use CardGrid when data <20 rows or needs visual differentiation"
}
{
"catalog_id": "string",
"generated_at": "ISO8601",
"source_prototype": "prototype_spec.json",
"components": [
{
"component_id": "string",
"name": "string",
"type": "layout | navigation | data_display | form | feedback | media | composite",
"description": "string",
"props": [
{
"prop_name": "string",
"type": "string | number | boolean | array | object",
"required": "boolean",
"default_value": "string | null",
"description": "string"
}
],
"data_binding": {
"data_source": "api | local | cache",
"api_endpoint": "string | null",
"fields": ["string"],
"loading_state": "string",
"error_state": "string",
"empty_state": "string"
},
"pages_used_in": ["page_name"],
"sub_components": ["component_id"],
"variants": [
{
"variant_name": "string",
"description": "string",
"prop_overrides": {}
}
],
"alternatives": [
{
"type": "layout | navigation | data_display | form | feedback | media | composite",
"name": "string",
"reason": "string",
"best_for": "string"
}
],
"selection_criteria": "string"
}
],
"shared_components": [
{
"component_id": "string",
"name": "string",
"usage_count": "number",
"pages": ["page_name"]
}
],
"component_dependencies": [
{
"component_id": "string",
"depends_on": ["component_id"]
}
]
}
Relationship Between component_catalog.json and prototype_spec.json
| Dimension |
prototype_spec.json |
component_catalog.json |
| Consumer |
Humans (designers, PM) |
Machines (UI Skill) |
| Content |
Page layout + interaction intents + evaluation |
Component types + properties + data binding + dependencies |
| Generation Order |
Generate prototype_spec.json first |
Extract component catalog from prototype_spec.json |
| Consistency |
Components in component_catalog.json must cover all pages' functional_areas and data_display_needs in prototype_spec.json |
|
Output Validation Rules: See Output Validation Rules section below
Decision Rules
- Heuristic evaluation weak areas (score <3) require human judgment on whether to modify
- Weak areas must have specific improvement suggestions to pass
Quality Checks
P0 Checks (must pass for quick/standard/deep)
P1 Checks (must pass for standard/deep)
P2 Checks (must pass for deep only)
Degradation Strategy
| Missing Upstream Input |
Degradation Plan |
Output Impact |
Data Acquisition Instructions |
| IA proposal missing |
User provides feature description, generate low-fidelity prototype |
Lacks IA data, page structure may be less reasonable |
Request user to describe page structure and navigation, or upload design-ia output file |
| UserFlow missing |
User provides feature description, generate low-fidelity prototype |
Lacks UserFlow data, interaction flow may be less complete |
Request user to describe user tasks and flow, or upload design-userflow output file |
| PRD missing |
Derive functional areas based on IA and UserFlow |
Functional areas may be less complete |
Request user to provide feature list and requirements, or upload prd.json file |
| Both IA and UserFlow missing |
Generate low-fidelity prototype based on user feature description |
Overall confidence reduced, only low-fidelity output |
Request user to describe features and page layout, or execute design-ia and design-userflow first |
| All upstream files missing |
Prompt user to execute prior stages first, or generate low-fidelity prototype based on user feature description |
Output is only low-fidelity prototype description |
Request user to describe core features and page layout requirements |
Output Validation Rules
| Field Path |
Type |
Required |
Description |
| prototype |
object |
Yes |
Prototype data |
| prototype.fidelity |
string |
Yes |
Fidelity level (low/medium) |
| prototype.pages |
array |
Yes |
Page list, must not be empty |
| prototype.pages[].name |
string |
Yes |
Page name |
| prototype.pages[].layout |
object |
Yes |
Page layout (area division/content priority/navigation flow) |
| prototype.pages[].functional_areas |
array |
Yes |
Functional area list |
| prototype.pages[].data_display_needs |
array |
Yes |
Data display needs |
| prototype.pages[].interaction_intents |
array |
Yes |
Interaction intents |
| prototype.heuristic_evaluation |
object |
Yes |
Heuristic evaluation |
| prototype.heuristic_evaluation.overall_score |
number |
Yes |
Overall score (0-10) |
| prototype.heuristic_evaluation.weak_areas |
array |
Yes |
Weak areas list |
| component_catalog |
object |
Yes |
Component catalog data |
| component_catalog.catalog_id |
string |
Yes |
Catalog unique identifier |
| component_catalog.components |
array |
Yes |
Component list, must not be empty |
| component_catalog.components[].component_id |
string |
Yes |
Component unique identifier |
| component_catalog.components[].name |
string |
Yes |
Component name |
| component_catalog.components[].type |
string |
Yes |
Component type, enum: layout/navigation/data_display/form/feedback/media/composite |
| component_catalog.components[].props |
array |
Yes |
Component property list |
| component_catalog.components[].data_binding |
object |
Yes |
Data binding, includes data_source/fields/loading_state/error_state/empty_state |
| component_catalog.components[].pages_used_in |
array |
Yes |
Pages using this component, must correspond to prototype.pages[].name |
| component_catalog.components[].alternatives |
array |
No |
Alternative component proposal list, each item includes type/name/reason/best_for |
| component_catalog.components[].selection_criteria |
string |
No |
Component selection decision basis |
| component_catalog.shared_components |
array |
Yes |
Cross-page shared component list |
| component_catalog.component_dependencies |
array |
Yes |
Component dependency relationship list |
Upstream Change Response
Upstream Change Impact
| Upstream Change |
Impact Scope |
Response Strategy |
| IA proposal change (page addition/removal/hierarchy adjustment) |
Page inventory, layout structure |
Mark affected pages, suggest human confirmation on whether to regenerate prototype |
| UserFlow change (flow path modification) |
Navigation flow, interaction intents |
Mark affected interaction flows, suggest human confirmation on whether to update |
| PRD change (feature addition/removal) |
Functional areas, data display needs |
Mark affected functional areas, suggest human confirmation on whether to update |
Downstream Notification Mechanism
| Prototype Change Type |
Notification Scope |
Notification Method |
| Page addition/removal |
interaction-spec, design-handoff-spec |
Mark page changes, trigger interaction spec and handoff document updates |
| Functional area change |
design-handoff-spec |
Mark functional area changes, trigger handoff document update |
| Interaction intent change |
interaction-spec |
Mark interaction intent changes, trigger interaction spec update |
| Component catalog change |
UI Skill (ui-01-component-design) |
Mark component addition/removal/property changes, trigger component generation update |
| Shared component change |
UI Skill (ui-01-component-design) |
Mark shared component changes, trigger cross-page component update |
Data Acquisition Instructions
This Skill requires IA, UserFlow, and design specification data. Please provide via one of the following methods:
- Directly describe features, page structure, and interaction flows
- Upload ia_proposals.json / userflow.json / design specification files
- Provide data file paths
- AI is not responsible for external data collection, only for analysis
1---2name: design-prototype3description: "Use when generating prototypes based on IA and user flows. Automatically generates low-fidelity and medium-fidelity prototypes based on IA proposals and User Flows, including design spec checks and usability heuristic evaluation. Keywords: prototype design, low-fidelity prototype, medium-fidelity prototype, design specification, prototype generation, create design mockup, rapid prototype."4metadata:5 source: https://skillmd.com/skills/luckyonetwothree/design-prototype6 module: "Product Ideation & Design"7 sub-module: "Product Design & Prototyping"8 type: "pipeline"9 version: "3.2"10 domain_tags: ["Internet", "Software", "General"]11 trigger_examples:12 - "Help me generate a prototype"13 - "Quickly create a design mockup"14 - "How to make a low-fidelity prototype"15 interaction_mode: "ai_suggest_human_approve"16execution_depth:17 default: standard18 quick_description: "Output prototype proposal and interaction notes"19 deep_description: "Full prototype + interaction state full coverage + multi-device adaptation plan + usability assessment"20---2122# Prototype Auto-Generation2324## Core Principles25261. **Prototypes are communication tools, not final products**: The value of prototypes lies in quickly validating assumptions, not pixel-perfect reproduction272. **Fidelity progresses as needed**: Validate structure with low-fidelity first, then validate interaction with medium-fidelity; no skipping steps283. **Batch generation, human filtering**: AI generates prototype proposals in bulk, humans make final selection and judgment294. **Consistency is quantifiable**: Design spec consistency is measured with a score; <85% requires human confirmation3031AI->Human AI suggests -> Human approves3233## Interaction Mode3435AI->Human AI suggests, human approves3637## Input3839| Input Item | Type | Required | Source | Description |40|------------|------|----------|--------|-------------|41| IA Proposal | JSON | Yes | output/pm-design/design-ia/ia_proposals.json | Information architecture proposal from Pipeline 9 |42| User Flow | JSON | Yes | output/pm-design/design-userflow/userflow.json | User flow from Pipeline 10 |43| PRD Document | Markdown | O | output/pm-design/design-prd/prd.md | Product requirements reference |44| PRD Structured Data | JSON | O | output/pm-design/design-prd/prd.json | Machine-consumable PRD version containing pages[]/features[], for prototype design alignment |4546## Execution Steps4748### Step 1: Low-Fidelity Prototype Generation [Core]4950Generate wireframe-level prototype descriptions:5152- **Layout**: Page structure and area division53- **Content Priority**: Content importance ranking for each area54- **Copy**: Key text content55- **Functional Areas**: Functional area mapping based on PRD5657### Step 2: Medium-Fidelity Prototype Generation [Core]5859Add on top of low-fidelity:6061- **Area Relationships**: Visual hierarchy and associations between areas62- **Navigation Flow**: Page-to-page transition relationships63- **Data Display Needs**: List data, empty states, loading state requirement descriptions (does not define specific UI implementation)64- **Interaction Intents**: Basic interaction behavior intents (does not define specific animation parameters; interaction-spec and UI Skill decide implementation)6566### Step 3: Usability Heuristic Evaluation [Core]6768Evaluate based on Nielsen's 10 Usability Heuristics:69701. Visibility of system status712. Match between system and real world723. User control and freedom734. Consistency and standards745. Error prevention756. Recognition rather than recall767. Flexibility and efficiency of use778. Aesthetic and minimalist design789. Help users recognize, diagnose, and recover from errors7910. Help and documentation8081Scoring range 0-10, **weak areas with score <3 require improvement suggestions**.8283### Output Depth Grading8485| Depth Level | Output Scope | Description |86|----------|----------|------|87| quick | prototype proposal and interaction notes | Core conclusions + minimum viable deliverable |88| standard | Full deliverables (default) | Complete output including all Steps |89| deep | Full prototype + interaction state full coverage + multi-device adaptation plan + usability assessment | Full deliverables + extended analysis + deep simulation |9091## Output9293**Storage Path**: `output/pm-design/design-prototype/`9495**Output Files**:9697| File | Path | Description |98|------|------|-------------|99| Prototype Specification | prototype_spec.json | Page layout, functional areas, interaction intents, heuristic evaluation |100| Component Catalog | component_catalog.json | Component catalog for UI Skill consumption, including component types, properties, data binding |101102### prototype_spec.json103104```json105{106 "prototype": {107 "fidelity": "medium",108 "pages": [109 {110 "name": "Page Name",111 "layout": {112 "regions": [],113 "content_priority": [],114 "navigation_flow": []115 },116 "functional_areas": [],117 "data_display_needs": [],118 "interaction_intents": []119 }120 ],121 "heuristic_evaluation": {122 "overall_score": 8.5,123 "weak_areas": [124 {125 "principle": "Visibility of system status",126 "score": 2,127 "suggestion": "Add loading progress indicators"128 }129 ]130 }131 }132}133```134135### component_catalog.json136137component_catalog.json is the machine-consumable component catalog from prototype design, for UI Skill programmatic consumption, ensuring component generation aligns with prototype design.138139**Recommended + Alternative Mode**: Each component provides a recommended type and alternatives. UI Skill can choose a more suitable implementation based on design judgment, avoiding prototype pre-selection limiting design freedom.140141| Field | Description |142|-------|-------------|143| type | Recommended component type (derived from prototype functional requirements) |144| alternatives | Alternative component proposal list, each alternative includes type, name, reason, and applicable scenarios |145| selection_criteria | Component selection decision basis, describing conditions for choosing recommended type vs alternative type |146147**Example**:148```json149{150 "component_id": "user-list",151 "type": "data_display",152 "name": "UserTable",153 "alternatives": [154 {155 "type": "composite",156 "name": "UserCardGrid",157 "reason": "Card Grid is better for visual differentiation, supports image + summary rich display",158 "best_for": "Data count <20, needs visual impact, mobile-first scenarios"159 }160 ],161 "selection_criteria": "Use Table when data >20 rows or needs sorting/filtering; use CardGrid when data <20 rows or needs visual differentiation"162}163```164165```json166{167 "catalog_id": "string",168 "generated_at": "ISO8601",169 "source_prototype": "prototype_spec.json",170 "components": [171 {172 "component_id": "string",173 "name": "string",174 "type": "layout | navigation | data_display | form | feedback | media | composite",175 "description": "string",176 "props": [177 {178 "prop_name": "string",179 "type": "string | number | boolean | array | object",180 "required": "boolean",181 "default_value": "string | null",182 "description": "string"183 }184 ],185 "data_binding": {186 "data_source": "api | local | cache",187 "api_endpoint": "string | null",188 "fields": ["string"],189 "loading_state": "string",190 "error_state": "string",191 "empty_state": "string"192 },193 "pages_used_in": ["page_name"],194 "sub_components": ["component_id"],195 "variants": [196 {197 "variant_name": "string",198 "description": "string",199 "prop_overrides": {}200 }201 ],202 "alternatives": [203 {204 "type": "layout | navigation | data_display | form | feedback | media | composite",205 "name": "string",206 "reason": "string",207 "best_for": "string"208 }209 ],210 "selection_criteria": "string"211 }212 ],213 "shared_components": [214 {215 "component_id": "string",216 "name": "string",217 "usage_count": "number",218 "pages": ["page_name"]219 }220 ],221 "component_dependencies": [222 {223 "component_id": "string",224 "depends_on": ["component_id"]225 }226 ]227}228```229230### Relationship Between component_catalog.json and prototype_spec.json231232| Dimension | prototype_spec.json | component_catalog.json |233|-----------|---------------------|------------------------|234| Consumer | Humans (designers, PM) | Machines (UI Skill) |235| Content | Page layout + interaction intents + evaluation | Component types + properties + data binding + dependencies |236| Generation Order | Generate prototype_spec.json first | Extract component catalog from prototype_spec.json |237| Consistency | Components in component_catalog.json must cover all pages' functional_areas and data_display_needs in prototype_spec.json | |238239**Output Validation Rules**: See Output Validation Rules section below240241## Decision Rules242243- **Heuristic evaluation weak areas** (score <3) require human judgment on whether to modify244- Weak areas must have specific improvement suggestions to pass245246## Quality Checks247248### P0 Checks (must pass for quick/standard/deep)249250- [ ] Heuristic evaluation (All 10 principles evaluated)251- [ ] Weak area improvement suggestions (All weak areas with score <3 have specific improvement suggestions)252253### P1 Checks (must pass for standard/deep)254255- [ ] Core page coverage (All core pages covered)256- [ ] Functional area coverage (Each page's functional areas align with PRD)257- [ ] Component catalog coverage (component_catalog covers all pages' functional_areas and data_display_needs)258- [ ] Component alternatives (Key components (cross-page shared + data display components) have alternatives)259- [ ] Component page reference consistency (component_catalog.components[].pages_used_in page names exist in prototype.pages[])260261### P2 Checks (must pass for deep only)262263- [ ] Extended analysis complete (deep simulation and roadmap generated)264- [ ] Decision records complete (key decisions have rationale and alternatives)265266---267268## Degradation Strategy269270| Missing Upstream Input | Degradation Plan | Output Impact | Data Acquisition Instructions |271|------------------------|-----------------|---------------|-------------------------------|272| IA proposal missing | User provides feature description, generate low-fidelity prototype | Lacks IA data, page structure may be less reasonable | Request user to describe page structure and navigation, or upload design-ia output file |273| UserFlow missing | User provides feature description, generate low-fidelity prototype | Lacks UserFlow data, interaction flow may be less complete | Request user to describe user tasks and flow, or upload design-userflow output file |274| PRD missing | Derive functional areas based on IA and UserFlow | Functional areas may be less complete | Request user to provide feature list and requirements, or upload prd.json file |275| Both IA and UserFlow missing | Generate low-fidelity prototype based on user feature description | Overall confidence reduced, only low-fidelity output | Request user to describe features and page layout, or execute design-ia and design-userflow first |276| All upstream files missing | Prompt user to execute prior stages first, or generate low-fidelity prototype based on user feature description | Output is only low-fidelity prototype description | Request user to describe core features and page layout requirements |277278## Output Validation Rules279280| Field Path | Type | Required | Description |281|------------|------|----------|-------------|282| prototype | object | Yes | Prototype data |283| prototype.fidelity | string | Yes | Fidelity level (low/medium) |284| prototype.pages | array | Yes | Page list, must not be empty |285| prototype.pages[].name | string | Yes | Page name |286| prototype.pages[].layout | object | Yes | Page layout (area division/content priority/navigation flow) |287| prototype.pages[].functional_areas | array | Yes | Functional area list |288| prototype.pages[].data_display_needs | array | Yes | Data display needs |289| prototype.pages[].interaction_intents | array | Yes | Interaction intents |290| prototype.heuristic_evaluation | object | Yes | Heuristic evaluation |291| prototype.heuristic_evaluation.overall_score | number | Yes | Overall score (0-10) |292| prototype.heuristic_evaluation.weak_areas | array | Yes | Weak areas list |293| component_catalog | object | Yes | Component catalog data |294| component_catalog.catalog_id | string | Yes | Catalog unique identifier |295| component_catalog.components | array | Yes | Component list, must not be empty |296| component_catalog.components[].component_id | string | Yes | Component unique identifier |297| component_catalog.components[].name | string | Yes | Component name |298| component_catalog.components[].type | string | Yes | Component type, enum: layout/navigation/data_display/form/feedback/media/composite |299| component_catalog.components[].props | array | Yes | Component property list |300| component_catalog.components[].data_binding | object | Yes | Data binding, includes data_source/fields/loading_state/error_state/empty_state |301| component_catalog.components[].pages_used_in | array | Yes | Pages using this component, must correspond to prototype.pages[].name |302| component_catalog.components[].alternatives | array | No | Alternative component proposal list, each item includes type/name/reason/best_for |303| component_catalog.components[].selection_criteria | string | No | Component selection decision basis |304| component_catalog.shared_components | array | Yes | Cross-page shared component list |305| component_catalog.component_dependencies | array | Yes | Component dependency relationship list |306307## Upstream Change Response308309### Upstream Change Impact310311| Upstream Change | Impact Scope | Response Strategy |312|-----------------|-------------|-------------------|313| IA proposal change (page addition/removal/hierarchy adjustment) | Page inventory, layout structure | Mark affected pages, suggest human confirmation on whether to regenerate prototype |314| UserFlow change (flow path modification) | Navigation flow, interaction intents | Mark affected interaction flows, suggest human confirmation on whether to update |315| PRD change (feature addition/removal) | Functional areas, data display needs | Mark affected functional areas, suggest human confirmation on whether to update |316317### Downstream Notification Mechanism318319| Prototype Change Type | Notification Scope | Notification Method |320|----------------------|-------------------|---------------------|321| Page addition/removal | interaction-spec, design-handoff-spec | Mark page changes, trigger interaction spec and handoff document updates |322| Functional area change | design-handoff-spec | Mark functional area changes, trigger handoff document update |323| Interaction intent change | interaction-spec | Mark interaction intent changes, trigger interaction spec update |324| Component catalog change | UI Skill (ui-01-component-design) | Mark component addition/removal/property changes, trigger component generation update |325| Shared component change | UI Skill (ui-01-component-design) | Mark shared component changes, trigger cross-page component update |326327## Data Acquisition Instructions328329This Skill requires IA, UserFlow, and design specification data. Please provide via one of the following methods:330 1. Directly describe features, page structure, and interaction flows331 2. Upload ia_proposals.json / userflow.json / design specification files332 3. Provide data file paths333- AI is not responsible for external data collection, only for analysis