mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-09 02:24:11 +08:00
- Add concept-verify and action-plan-verify quality gate commands - Enhance IMPL_PLAN.md with CCW Workflow Context section - Add Artifact Usage Strategy for clear CCW artifact hierarchy - Update frontmatter with context_package, verification_history, phase_progression - Synchronize enhancements across task-generate, task-generate-agent, task-generate-tdd - Update synthesis, plan, and tdd-plan commands with verification guidance Makes CCW's multi-phase workflow and intelligent context gathering visible in generated documentation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
236 lines
8.5 KiB
Markdown
236 lines
8.5 KiB
Markdown
# 🎨 UI Design Workflow with Triple Vision Analysis & Interactive Preview
|
|
|
|
This release introduces a comprehensive UI design workflow system with triple vision analysis capabilities, interactive user checkpoints, zero agent overhead, and enhanced preview tools for real-time prototype comparison.
|
|
|
|
## 🌟 Major Features
|
|
|
|
### UI Design Workflow System
|
|
- **`/workflow:design:auto`**: Semi-autonomous workflow orchestrator with interactive checkpoints
|
|
- **`/workflow:design:style-extract`**: Triple vision analysis (Claude Code + Gemini + Codex)
|
|
- **`/workflow:design:style-consolidate`**: Token validation and style guide generation
|
|
- **`/workflow:design:ui-generate`**: Token-driven HTML/CSS prototype generation with preview tools
|
|
- **`/workflow:design:design-update`**: Design system integration into brainstorming artifacts
|
|
|
|
### 👁️ Triple Vision Analysis
|
|
- **Claude Code**: Quick initial visual analysis using native Read tool
|
|
- **Gemini Vision**: Deep semantic understanding of design intent
|
|
- **Codex Vision**: Structured pattern recognition with -i parameter
|
|
- **Consensus Synthesis**: Weighted combination strategy for robust results
|
|
|
|
### ⏸️ Interactive Checkpoints
|
|
- **Checkpoint 1**: User selects preferred style variants after extraction
|
|
- **Checkpoint 2**: User confirms selected prototypes before design update
|
|
- Pause-and-continue pattern for critical design decisions
|
|
|
|
### 🌐 Preview Enhancement System (NEW!)
|
|
- **`index.html`**: Master preview navigation with grid layout
|
|
- **`compare.html`**: Side-by-side comparison with responsive viewport toggles
|
|
- **`PREVIEW.md`**: Comprehensive preview instructions and server setup guide
|
|
- Synchronized scrolling for layout comparison
|
|
- Dynamic page switching and real-time responsive testing
|
|
|
|
### 🎯 Zero Agent Overhead
|
|
- Removed Task(conceptual-planning-agent) wrappers from design commands
|
|
- Direct bash execution for gemini-wrapper and codex commands
|
|
- Improved performance while preserving all functionality
|
|
|
|
## 🚀 Quick Start
|
|
|
|
### Complete Design Workflow
|
|
```bash
|
|
# Semi-autonomous workflow with user checkpoints
|
|
/workflow:design:auto --session WFS-auth --images "design-refs/*.png" --pages "login,register" --batch-plan
|
|
```
|
|
|
|
### Individual Commands
|
|
```bash
|
|
# Extract design styles (triple vision analysis)
|
|
/workflow:design:style-extract --session WFS-auth --images "refs/*.png"
|
|
|
|
# Consolidate selected variants
|
|
/workflow:design:style-consolidate --session WFS-auth --variants "variant-1,variant-3"
|
|
|
|
# Generate prototypes with preview tools
|
|
/workflow:design:ui-generate --session WFS-auth --pages "login,register" --variants 2
|
|
|
|
# Preview generated prototypes
|
|
cd .workflow/WFS-auth/.design/prototypes
|
|
python -m http.server 8080 # Visit http://localhost:8080
|
|
|
|
# Integrate design system
|
|
/workflow:design:design-update --session WFS-auth --selected-prototypes "login-variant-1,register-variant-2"
|
|
```
|
|
|
|
## 🎨 Design System Features
|
|
- **OKLCH Color Format**: Perceptually uniform color space
|
|
- **W3C Design Tokens**: Standard-compliant token format
|
|
- **WCAG 2.1 AA Compliance**: Automated accessibility validation
|
|
- **Style Override Support**: Runtime token customization with --style-overrides
|
|
- **Batch Task Generation**: Automatic task creation with --batch-plan
|
|
|
|
## 📊 Preview Tools
|
|
|
|
### Master Navigation (index.html)
|
|
- Grid layout of all generated prototypes
|
|
- Quick links to individual variants
|
|
- Metadata display (session ID, timestamps, page info)
|
|
- Direct access to implementation notes
|
|
|
|
### Side-by-Side Comparison (compare.html)
|
|
- Iframe-based comparison for multiple variants
|
|
- Responsive viewport toggles:
|
|
- Desktop (100%)
|
|
- Tablet (768px)
|
|
- Mobile (375px)
|
|
- Synchronized scrolling option
|
|
- Dynamic page switching dropdown
|
|
- Real-time variant comparison
|
|
|
|
### Preview Options
|
|
```bash
|
|
# Option 1: Direct browser (simplest)
|
|
cd .workflow/WFS-{session}/.design/prototypes
|
|
open index.html # or double-click
|
|
|
|
# Option 2: Local server (recommended)
|
|
python -m http.server 8080 # Python
|
|
npx http-server -p 8080 # Node.js
|
|
php -S localhost:8080 # PHP
|
|
# Visit: http://localhost:8080
|
|
```
|
|
|
|
## 📦 What's Included
|
|
|
|
### New Commands (5)
|
|
- `/workflow:design:auto`
|
|
- `/workflow:design:style-extract`
|
|
- `/workflow:design:style-consolidate`
|
|
- `/workflow:design:ui-generate`
|
|
- `/workflow:design:design-update`
|
|
|
|
### Generated Files
|
|
```
|
|
.workflow/WFS-{session}/.design/
|
|
├── style-extraction/
|
|
│ ├── claude_vision_analysis.json
|
|
│ ├── gemini_vision_analysis.json
|
|
│ ├── codex_vision_analysis.json
|
|
│ ├── semantic_style_analysis.json
|
|
│ ├── design-tokens.json
|
|
│ └── style-cards.json
|
|
├── style-consolidation/
|
|
│ ├── design-tokens.json (validated)
|
|
│ ├── style-guide.md
|
|
│ ├── tailwind.config.js
|
|
│ └── validation-report.json
|
|
└── prototypes/
|
|
├── index.html (NEW - preview navigation)
|
|
├── compare.html (NEW - side-by-side comparison)
|
|
├── PREVIEW.md (NEW - setup instructions)
|
|
├── {page}-variant-{n}.html
|
|
├── {page}-variant-{n}.css
|
|
└── design-tokens.css
|
|
```
|
|
|
|
## 🔄 Workflow Integration
|
|
|
|
Design phase fits seamlessly between brainstorming and planning:
|
|
|
|
```
|
|
Brainstorming → UI Design → Planning → Execution
|
|
↓ ↓ ↓ ↓
|
|
synthesis- design-tokens tasks with token-driven
|
|
specification + style design implementation
|
|
guide context
|
|
```
|
|
|
|
**Optional but recommended** for UI-heavy projects:
|
|
- User-facing applications
|
|
- Design system creation
|
|
- Brand-critical interfaces
|
|
- Accessibility compliance projects
|
|
|
|
## 💡 Benefits
|
|
|
|
### User Experience
|
|
- 🎨 Visual validation before implementation
|
|
- ⏸️ Interactive control at critical decision points
|
|
- 👁️ Comprehensive analysis from three AI vision sources
|
|
- 🌐 Real-time preview with comparison tools
|
|
- 🎯 Zero waiting with direct bash execution
|
|
|
|
### Code Quality
|
|
- 🔒 100% CSS values use custom properties
|
|
- ♿ WCAG AA validated at design phase
|
|
- 🎨 Single source of truth for visual design
|
|
- 🧪 Production-ready prototypes (semantic HTML5, responsive, accessible)
|
|
|
|
### Development Workflow
|
|
- 🔄 Seamless integration with existing workflow
|
|
- 🚀 Backward compatible (design phase optional)
|
|
- 📊 Better planning with design system context
|
|
- 🎯 Focused implementation from validated prototypes
|
|
|
|
## 📚 Documentation
|
|
|
|
- **README.md**: Updated with UI Design Workflow section
|
|
- **README_CN.md**: Chinese documentation for design workflow
|
|
- **CHANGELOG.md**: Comprehensive release notes with examples
|
|
- **Command Files**: Detailed implementation guides for all 5 commands
|
|
|
|
## 🔧 Technical Details
|
|
|
|
**Triple Vision Analysis Flow**:
|
|
```
|
|
Reference Images
|
|
↓
|
|
Claude Code (Read tool) → claude_vision_analysis.json
|
|
Gemini Vision (wrapper) → gemini_vision_analysis.json
|
|
Codex Vision (codex -i) → codex_vision_analysis.json
|
|
↓
|
|
Main Claude Synthesis → semantic_style_analysis.json
|
|
↓
|
|
Codex Token Generation → design-tokens.json, style-cards.json
|
|
```
|
|
|
|
**Checkpoint Workflow Pattern**:
|
|
```
|
|
User: /workflow:design:auto --session WFS-xxx --images "refs/*.png" --pages "dashboard"
|
|
↓
|
|
Phase 1: style-extract (automatic)
|
|
↓ [CHECKPOINT 1: User selects variants]
|
|
User: /workflow:design:style-consolidate --session WFS-xxx --variants "variant-1"
|
|
↓
|
|
Phase 3: ui-generate (automatic)
|
|
↓ [CHECKPOINT 2: User confirms prototypes]
|
|
User: /workflow:design:design-update --session WFS-xxx --selected-prototypes "dashboard-variant-1"
|
|
↓
|
|
Phase 5: batch-plan (optional, if --batch-plan flag)
|
|
```
|
|
|
|
## 🆙 Upgrade Instructions
|
|
|
|
```bash
|
|
# Windows (PowerShell)
|
|
Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1" -UseBasicParsing).Content
|
|
|
|
# Linux/macOS (Bash/Zsh)
|
|
bash <(curl -fsSL https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.sh)
|
|
```
|
|
|
|
## 🐛 Bug Fixes & Improvements
|
|
- Optimized agent architecture by removing unnecessary wrappers
|
|
- Improved execution performance with direct bash commands
|
|
- Enhanced documentation consistency across English and Chinese versions
|
|
- Updated phase numbering to accommodate new design phase
|
|
|
|
## 📝 Full Changelog
|
|
See [CHANGELOG.md](https://github.com/catlog22/Claude-Code-Workflow/blob/main/CHANGELOG.md) for complete details.
|
|
|
|
---
|
|
|
|
**Questions or Issues?**
|
|
- 📖 [Documentation](https://github.com/catlog22/Claude-Code-Workflow)
|
|
- 🐛 [Report Issues](https://github.com/catlog22/Claude-Code-Workflow/issues)
|
|
- 💬 [Discussions](https://github.com/catlog22/Claude-Code-Workflow/discussions)
|