mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
refactor(ui-design): optimize layout planning to prevent architecture homogenization
- Replace exa-code with web-search for diverse layout inspiration - Simplify from keyword pools to direct "common variations" search - Add selection strategy for agents to pick different structural patterns - Support unlimited layout variants with natural diversity Impact: Prevents layout architecture convergence by leveraging web search for real-world layout variations instead of code examples. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -128,19 +128,24 @@ FOR target IN target_list:
|
||||
Task(ui-design-agent): "
|
||||
[TARGET_LAYOUT_PLANNING]
|
||||
|
||||
TARGET: {target} | TARGET_TYPE: {target_type} | LAYOUT_ID: {layout_id}
|
||||
TARGET: {target} | TARGET_TYPE: {target_type} | LAYOUT_ID: {layout_id}/{layout_variants}
|
||||
BASE_PATH: {base_path}
|
||||
{IF synthesis_spec: PROJECT_REQUIREMENTS: {synthesis_spec}}
|
||||
|
||||
## Task
|
||||
Research and generate layout plan JSON for '{target}' ({target_type}).
|
||||
Research common {target} {target_type} layout variations and select the #{layout_id} approach.
|
||||
Generate layout plan JSON that is STRUCTURALLY DIFFERENT from other layout IDs.
|
||||
|
||||
## Research (MCP Required)
|
||||
mcp__exa__get_code_context_exa(
|
||||
query=\"modern {target} {target_type} layout patterns 2024 2025\",
|
||||
tokensNum=\"dynamic\"
|
||||
mcp__exa__web_search_exa(
|
||||
query=\"common {target} {target_type} layout patterns variations best practices 2024\",
|
||||
numResults=5
|
||||
)
|
||||
|
||||
## Selection Strategy
|
||||
From search results, identify multiple layout variations and select approach #{layout_id}.
|
||||
Ensure each layout_id uses a DIFFERENT structural pattern (not just styling differences).
|
||||
|
||||
## Output File
|
||||
Write(\"{base_path}/prototypes/_templates/{target}-layout-{layout_id}.json\", layout_plan_json)
|
||||
|
||||
|
||||
@@ -119,19 +119,24 @@ FOR target IN target_list:
|
||||
Task(ui-design-agent): "
|
||||
[TARGET_LAYOUT_PLANNING]
|
||||
|
||||
TARGET: {target} | TARGET_TYPE: {target_type} | LAYOUT_ID: {layout_id}
|
||||
TARGET: {target} | TARGET_TYPE: {target_type} | LAYOUT_ID: {layout_id}/{layout_variants}
|
||||
BASE_PATH: {base_path}
|
||||
{IF --session: PROJECT_REQUIREMENTS: .workflow/WFS-{session}/.brainstorming/synthesis-specification.md}
|
||||
|
||||
## Task
|
||||
Research and generate layout plan JSON for '{target}' ({target_type}).
|
||||
Research common {target} {target_type} layout variations and select the #{layout_id} approach.
|
||||
Generate layout plan JSON that is STRUCTURALLY DIFFERENT from other layout IDs.
|
||||
|
||||
## Research (MCP Required)
|
||||
mcp__exa__get_code_context_exa(
|
||||
query=\"modern {target} {target_type} layout patterns 2024 2025\",
|
||||
tokensNum=\"dynamic\"
|
||||
mcp__exa__web_search_exa(
|
||||
query=\"common {target} {target_type} layout patterns variations best practices 2024\",
|
||||
numResults=5
|
||||
)
|
||||
|
||||
## Selection Strategy
|
||||
From search results, identify multiple layout variations and select approach #{layout_id}.
|
||||
Ensure each layout_id uses a DIFFERENT structural pattern (not just styling differences).
|
||||
|
||||
## Output File
|
||||
Write(\"{base_path}/prototypes/_templates/{target}-layout-{layout_id}.json\", layout_plan_json)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user