| name | nano-banana-visual |
| description | [OPTIONAL] AI-powered visual generation using Google Nano Banana Pro. For user flows, architecture diagrams, mockups. |
| optional | true |
Nano Banana Pro Visual Integration
OPTIONAL SKILL - AID works without this.
Setup
ENABLE_NANO_BANANA=true
NANO_BANANA_PROVIDER=google
GOOGLE_AI_API_KEY=your-key
When to Use
| Phase |
Trigger |
Output |
| Discovery |
"Create stakeholder map" |
Diagram |
| PRD |
"Create user flow" |
Flow diagram |
| Tech Spec |
"Create architecture" |
System diagram |
| Development |
"Create mockup" |
Screen mockup |
Quick Start
User Flow
const result = await client.generateFromText(`
Create user flow for checkout:
1. Cart Review
2. Shipping
3. Payment
4. Confirmation
Style: Clean, modern
`);
Architecture
const result = await client.generateFromText(`
Create microservices diagram:
- Frontend: React
- API Gateway: Kong
- Services: User, Order, Payment
- Database: PostgreSQL, Redis
`);
Screen Mockup
const builder = new WireframePromptBuilder({
designSystem: 'material3',
primaryColor: '#3B82F6',
});
const prompt = builder.generateScreen({
name: 'Dashboard',
components: [
{ type: 'header', position: 'top' },
{ type: 'card', description: 'Stats' },
{ type: 'list', description: 'Activity' },
],
});
File Organization
docs/visuals/
discovery/stakeholder-map.png
prd/user-flow.png
tech-spec/architecture.png
design/mockup.png
API Methods
| Method |
Description |
| generateFromText(prompt) |
Image from text |
| editImage(base64, instruction) |
Edit image |
| wireframeToUI(sketch, description) |
Sketch to UI |
Options
| Option |
Values |
| aspectRatio |
1:1, 16:9, 9:16 |
| resolution |
1K, 2K, 4K |
| numImages |
1-4 |