Purpose: Visual content creation, UI design, image generation, and diagram creation
| Task Type | Context File | Subagent | Tools |
|---|---|---|---|
| Generate image/diagram | This file | Image Specialist | tool:gemini |
| Edit existing image | This file | Image Specialist | tool:gemini |
| UI mockup (static) | This file | Image Specialist | tool:gemini |
| Interactive UI design | workflows/design-iteration.md |
- | - |
| Design system | development/design-systems.md |
- | - |
| UI standards | development/ui-styling-standards.md |
- | - |
| Animation patterns | development/animation-patterns.md |
- | - |
The Image Specialist subagent uses Gemini Nano Banana AI to:
Delegate to Image Specialist when users request:
Keywords to Watch For:
Common Use Cases:
task(
subagent_type="Image Specialist",
description="[Brief 3-5 word description]",
prompt="Context to load:
- .opencode/context/core/visual-development.md
Task: [Detailed visual requirement]
Requirements:
- Style: [Visual aesthetic - modern, minimalist, professional, etc.]
- Dimensions: [Width x Height or aspect ratio]
- Key Elements: [What must be included]
- Colors: [Color scheme, brand colors, palette]
- Format: [PNG, JPG, SVG preference]
Output: [Expected deliverable and location]"
)
User Request: "Create a diagram showing our microservices architecture"
Invocation:
task(
subagent_type="Image Specialist",
description="Generate microservices architecture diagram",
prompt="Create a technical architecture diagram showing:
**Services**:
- API Gateway (entry point)
- Auth Service (authentication)
- User Service (user management)
- Order Service (order processing)
- Payment Service (payment processing)
- Notification Service (emails/SMS)
**Infrastructure**:
- PostgreSQL databases (one per service)
- Redis cache (shared)
- RabbitMQ message queue
- AWS S3 (file storage)
**External Services**:
- Stripe (payments)
- SendGrid (emails)
- Twilio (SMS)
**Style**: Clean, professional, modern tech diagram
**Colors**: Blue for services, green for databases, orange for external
**Format**: PNG, 1920x1080
**Layout**: Left-to-right flow, clear connections
Output: Save to docs/architecture-diagram.png"
)
User Request: "Show me what the dashboard could look like"
Invocation:
task(
subagent_type="Image Specialist",
description="Generate analytics dashboard mockup",
prompt="Create a UI mockup for an analytics dashboard:
**Layout**:
- Top: Header with logo, navigation, user menu
- Below header: 4 metric cards in a row
* Total Users (with trend arrow)
* Revenue (with percentage change)
* Conversion Rate (with sparkline)
* Active Sessions (with live indicator)
- Middle: Large line chart showing 30-day trends
- Bottom: Data table with recent transactions
**Style**: Modern, professional SaaS aesthetic
**Theme**: Dark mode with subtle gradients
**Colors**:
- Background: Dark gray (#1e293b)
- Cards: Slightly lighter (#334155)
- Accent: Blue (#3b82f6)
- Text: White/gray
**Typography**: Clean sans-serif (Inter-style)
**Format**: PNG, 1440x900
Output: Save to design_iterations/dashboard_mockup.png"
)
User Request: "Create a graphic announcing our new feature"
Invocation:
task(
subagent_type="Image Specialist",
description="Generate feature announcement graphic",
prompt="Create a social media graphic for feature launch:
**Content**:
- Main headline: 'Introducing Real-Time Collaboration'
- Subheadline: 'Work together, ship faster'
- Small text: 'Available now for all teams'
**Visual Elements**:
- Abstract illustration of people collaborating
- Subtle geometric shapes in background
- Modern, energetic feel
**Brand Colors**:
- Primary: #6366f1 (indigo)
- Secondary: #8b5cf6 (purple)
- Background: White with gradient
- Text: Dark gray (#1e293b)
**Format**: PNG, 1200x630 (optimized for Twitter/LinkedIn)
**Style**: Modern, professional, eye-catching
Output: Save to marketing/feature-launch-social.png"
)
User Request: "Diagram the user onboarding flow"
Invocation:
task(
subagent_type="Image Specialist",
description="Generate user onboarding flowchart",
prompt="Create a flowchart showing user onboarding process:
**Steps**:
1. User signs up (email/password)
2. Email verification sent
3. User clicks verification link
4. Profile setup (name, company, role)
5. Choose plan (Free/Pro/Enterprise)
6. Payment (if Pro/Enterprise)
7. Onboarding tutorial (5 steps)
8. Dashboard access
**Decision Points**:
- Email verified? (Yes → Continue, No → Resend)
- Plan selected? (Free → Skip payment, Paid → Payment)
- Payment successful? (Yes → Continue, No → Retry)
**Style**: Clean flowchart with standard symbols
**Colors**:
- Start/End: Green
- Process: Blue
- Decision: Yellow
- Error: Red
**Format**: PNG, 1600x1200
**Layout**: Top-to-bottom flow
Output: Save to docs/onboarding-flow.png"
)
User Request: "Create an icon for our file upload feature"
Invocation:
task(
subagent_type="Image Specialist",
description="Generate file upload icon",
prompt="Create a modern icon for file upload feature:
**Concept**: Cloud with upward arrow
**Style**:
- Minimalist, clean lines
- Rounded corners
- Flat design (no gradients)
**Colors**:
- Primary: #3b82f6 (blue)
- Accent: #60a5fa (lighter blue)
**Size**: 512x512px (will be scaled down)
**Format**: PNG with transparent background
**Usage**: App UI, documentation, marketing
Output: Save to assets/icons/upload-icon.png"
)
User Request: "Make this screenshot look more professional"
Invocation:
task(
subagent_type="Image Specialist",
description="Enhance screenshot for documentation",
prompt="Edit the existing screenshot at docs/raw-screenshot.png:
**Enhancements Needed**:
- Add subtle drop shadow for depth
- Round the corners (8px radius)
- Add a thin border (#e5e7eb)
- Increase contrast slightly
- Ensure text is crisp and readable
**Optional**:
- Add subtle gradient background
- Highlight key UI elements with arrows/boxes
**Output Format**: PNG, maintain original dimensions
**Quality**: High (for documentation)
Output: Save to docs/enhanced-screenshot.png"
)
Use this decision tree to choose the right approach:
User needs visual content
↓
Is it interactive/responsive HTML/CSS?
↓
YES → Use design-iteration.md workflow
| - Create HTML files
| - Iterate on designs
| - Production-ready code
↓
NO → Is it a static visual asset?
↓
YES → Use Image Specialist
| - Diagrams
| - Mockups (non-interactive)
| - Graphics
| - Illustrations
↓
NO → Clarify requirements with user
| Need | Use |
|---|---|
| Interactive dashboard | design-iteration.md |
| Dashboard mockup (static image) | Image Specialist |
| Responsive landing page | design-iteration.md |
| Landing page hero graphic | Image Specialist |
| Working HTML prototype | design-iteration.md |
| Architecture diagram | Image Specialist |
| UI component library | design-iteration.md |
| Social media graphic | Image Specialist |
tool:gemini - Gemini Nano Banana AI
Add to .env file:
GEMINI_API_KEY=your_api_key_here
✅ Do:
❌ Don't:
❌ Bad Prompt:
"Create a diagram of our system"
✅ Good Prompt:
"Create a technical architecture diagram showing:
- 3 microservices (API, Auth, Database)
- AWS infrastructure (EC2, RDS, S3)
- External APIs (Stripe, SendGrid)
Style: Clean, professional, modern
Colors: Blue for services, green for databases
Format: PNG, 1920x1080
Layout: Left-to-right flow with clear connections
Output: docs/system-architecture.png"
Before delegating to Image Specialist:
After receiving output:
Issue: Generated image doesn't match expectations Solution: Refine prompt with more specific details, provide reference examples
Issue: Image quality is low Solution: Request higher resolution, specify quality requirements in prompt
Issue: Colors don't match brand Solution: Provide exact hex codes, reference brand guidelines
Issue: Layout is cluttered Solution: Simplify requirements, specify clear hierarchy and spacing
Issue: Text in image is unreadable Solution: Request larger text, higher contrast, clearer typography
.opencode/context/core/workflows/design-iteration.md.opencode/context/development/design-systems.md.opencode/context/development/ui-styling-standards.md.opencode/context/development/animation-patterns.md.opencode/context/openagents-repo/guides/subagent-invocation.md.opencode/context/openagents-repo/core-concepts/agents.mdContextScout should find this file when users mention: