mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
feat: refactor UI design workflow for agent-driven execution and default separate mode
## Core Changes ### 1. Fix Token Application Issues (v4.2.1-fix) - Add convert_tokens_to_css.sh script for design-tokens.json → tokens.css conversion - Auto-generate Google Fonts @import for web fonts - Auto-generate global font application rules (body, headings) - Add Phase 1.8 to generate.md: Token Variable Name Extraction - Update generate.md Phase 2a: Inject exact variable names into agent prompt - Fix CSS variable naming mismatches (20+ variables) ### 2. Refactor consolidate.md - Default to Separate Mode - Remove --keep-separate parameter (now default behavior) - Remove Unified Mode (Phase 4A) entirely - Use ui-design-agent for multi-file generation (Phase 4) - Generate N independent design systems by default - Update documentation and completion messages - Add Task(*) to allowed-tools ### 3. Update explore-auto.md Integration - Remove --keep-separate from Phase 2 consolidate command - Update comments to reflect default separate mode behavior ### 4. Refactor ui-design-agent.md (v2.0 → v3.0) - Remove slash command execution logic - Focus on consolidate.md and generate.md task execution - Remove workflow orchestration content - Add MCP integration strategies (Exa + Code Index) - Integrate v4.2.1-fix changes ## Impact - All workflows now default to separate design systems (matrix-ready) - Agent handles multi-file generation efficiently - Token application issues resolved - Simplified user experience (fewer parameters) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -409,14 +409,14 @@ SlashCommand(command)
|
||||
|
||||
---
|
||||
|
||||
### Phase 2: Style Consolidation with Separation
|
||||
### Phase 2: Style Consolidation (Separate Design Systems)
|
||||
**Command**:
|
||||
```bash
|
||||
run_base_flag = "--base-path \"{base_path}\""
|
||||
|
||||
# Use count-based parameter with --keep-separate for matrix mode
|
||||
# Consolidate generates independent design systems by default
|
||||
# IMPORTANT: Pass --layout-variants to ensure correct number of layout strategies are generated
|
||||
command = "/workflow:ui-design:consolidate {run_base_flag} --variants {style_variants} --layout-variants {layout_variants} --keep-separate"
|
||||
command = "/workflow:ui-design:consolidate {run_base_flag} --variants {style_variants} --layout-variants {layout_variants}"
|
||||
SlashCommand(command)
|
||||
```
|
||||
**Result**: Generates `style_variants` independent design systems:
|
||||
|
||||
Reference in New Issue
Block a user