**Version:** 1.0.0
/plugin marketplace add nguyenthienthanh/ccpm-team-agents/plugin install nguyenthienthanh-aura-frog-aura-frog-2@nguyenthienthanh/ccpm-team-agentsworkflow/Version: 1.0.0
Purpose: Execute Phase 3 - Design Review
Trigger: Auto-triggered after Phase 2 approval OR manual /workflow:phase:3
Review design specifications and break down UI into components.
Deliverables:
Agent: ui-designer
Prompt user:
šø DESIGN ASSETS NEEDED
Please provide:
1. Figma screenshot(s) OR
2. Design mockups OR
3. Existing UI reference
Upload images or paste Figma link (screenshots will be taken)
Agents: ui-designer + dev agent
Analyze:
Identify and document each component:
## Component Breakdown
### 1. MediaPreviewSection
**Purpose:** Display media with playback controls
**Visual Elements:**
- Image/Video container (aspect ratio preserved)
- Sound toggle button (bottom-right corner)
- Loading skeleton
**Props:**
- signedUrl: string
- mediaWidth: number
- mediaHeight: number
- muted: boolean
- onToggleMuted: () => void
**NativeWind Styling (if React Native):**
```tsx
<View className="relative w-full aspect-video bg-gray-100 rounded-lg overflow-hidden">
<Image source={{ uri: signedUrl }} className="w-full h-full" />
<TouchableOpacity className="absolute bottom-4 right-4 bg-black/50 p-3 rounded-full">
{/* Mute icon */}
</TouchableOpacity>
</View>
Purpose: Select social media platform Visual Elements:
NativeWind Styling (if React Native):
<TouchableOpacity
className={`flex-row items-center px-4 py-3 border rounded-lg ${
disabled ? 'bg-gray-100 border-gray-300' : 'bg-white border-gray-400'
}`}
>
{/* Platform icon */}
<Text className="text-base text-gray-900 ml-2">{platform.name}</Text>
</TouchableOpacity>
**š” Tip:** For React Native projects using NativeWind, generate components with Tailwind utility classes. See `skills/nativewind-component-generator.md` for templates.
### Step 5: Extract Design Tokens
**For React Native Projects with NativeWind:**
Map design tokens to Tailwind config for seamless styling.
```javascript
// tailwind.config.js (NativeWind project)
module.exports = {
content: [
"./App.{js,jsx,ts,tsx}",
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {
colors: {
primary: {
DEFAULT: '#0066FF',
50: '#E6F0FF',
100: '#CCE0FF',
500: '#0066FF',
600: '#0052CC',
700: '#003D99',
},
secondary: '#6B6B6B',
error: '#FF3B30',
success: '#34C759',
},
spacing: {
'xs': '4px',
'sm': '8px',
'md': '16px',
'lg': '24px',
'xl': '32px',
},
fontSize: {
'heading': '24px',
'body': '16px',
'caption': '14px',
},
borderRadius: {
'sm': '4px',
'md': '8px',
'lg': '12px',
},
},
},
};
For Traditional React Native or Web Projects:
// Design Tokens
export const designTokens = {
colors: {
primary: '#0066FF',
secondary: '#6B6B6B',
background: '#FFFFFF',
text: '#000000',
border: '#E0E0E0',
error: '#FF3B30',
success: '#34C759',
},
spacing: {
xs: 4,
sm: 8,
md: 16,
lg: 24,
xl: 32,
},
typography: {
heading: {
fontSize: 24,
fontWeight: '700',
lineHeight: 32,
},
body: {
fontSize: 16,
fontWeight: '400',
lineHeight: 24,
},
caption: {
fontSize: 14,
fontWeight: '400',
lineHeight: 20,
},
},
borderRadius: {
sm: 4,
md: 8,
lg: 12,
},
};
## UI Flows
### Flow 1: Post Creation
1. User enters caption
2. User selects platform
3. User clicks "Customize" ā Navigate to customization
4. OR User clicks "Post Now" ā Show confirmation ā Post
### Flow 2: Caption Editing
1. User clicks edit icon
2. Modal opens with caption editor
3. User edits caption
4. User clicks "Save" ā Caption updated
5. Modal closes
### Flow 3: Generate Caption
1. User clicks "Generate Caption"
2. Loading indicator shown
3. API generates caption
4. Caption auto-filled
5. User can edit or accept
## Responsive Breakpoints
### Phone (Portrait)
- Width: 375-428px
- Layout: Single column, full width
- Media: Full width, 16:9 aspect ratio
### Phone (Landscape)
- Width: 667-932px
- Layout: Two columns (media left, controls right)
### Tablet (Portrait)
- Width: 768-834px
- Layout: Centered content, max-width 600px
### Tablet (Landscape)
- Width: 1024-1366px
- Layout: Two columns, media 60%, controls 40%
Phase 3 complete when:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
šÆ PHASE 3 COMPLETE: Design Review
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š Summary:
Analyzed design and broke down into 5 UI components
š¦ Deliverables:
š PHASE_3_DESIGN_REVIEW.md
- 5 components identified
- Design tokens extracted
- 3 UI flows documented
- Responsive breakpoints defined
š Components Identified:
- MediaPreviewSection (image/video display)
- PlatformSelector (platform picker)
- PostCaptionEditor (caption input)
- PostActionButtons (Post Now, Customize)
- Main Container (layout orchestration)
ā
Success Criteria:
ā
Design analyzed
ā
Components broken down
ā
Design tokens extracted
ā
UI flows documented
ā
Responsive plan defined
āļø Next Phase: Phase 4 - Test Planning
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ļø ACTION REQUIRED
Type "/workflow:approve" ā Proceed to Phase 4
Type "/workflow:reject" ā Revise design breakdown
Type "/workflow:modify <feedback>" ā Adjust components
Your response:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
logs/contexts/{workflow-id}/deliverables/
āāā PHASE_3_DESIGN_REVIEW.md
āāā design-tokens.ts (extracted design tokens)
After approval ā /workflow:phase:4:
Status: Active command
Related: workflow:phase:2, workflow:phase:4, workflow:approve