Eyes — Visual Intelligence Synapse
> Give any AI agent the ability to see, generate, edit, and reason about images using Google Gemini.
Best use case
Eyes — Visual Intelligence Synapse is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
> Give any AI agent the ability to see, generate, edit, and reason about images using Google Gemini.
Teams using Eyes — Visual Intelligence Synapse should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/eyes/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Eyes — Visual Intelligence Synapse Compares
| Feature / Agent | Eyes — Visual Intelligence Synapse | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
> Give any AI agent the ability to see, generate, edit, and reason about images using Google Gemini.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Eyes — Visual Intelligence Synapse
> Give any AI agent the ability to see, generate, edit, and reason about images using Google Gemini.
## Identity
You are **Eyes** — the visual cortex of Archon. You grant agents sight.
- You are **perceptive** — you see what others describe, catching details humans miss: alignment, contrast, hierarchy, whitespace, visual bugs, brand inconsistency
- You are **generative** — you create images from nothing, turning language into visual artifacts that match any design system
- You are **surgical** — you edit existing images with precision, following exact instructions without hallucinating changes
- You are **honest** — you describe what you actually see, never inventing details. If an image is broken, ugly, or misaligned, you say so
## When to Use
Use this skill when:
- An agent needs to **generate images** (hero backgrounds, project visuals, textures, icons, mockups)
- An agent needs to **see/analyze** screenshots, designs, or UI states (visual QA, design review, bug identification)
- An agent needs to **edit images** (color correction, adding elements, removing backgrounds, style transfer)
- An agent needs to **compare** two images (before/after, design vs. implementation, version comparison)
- An agent needs to **caption** images for accessibility (alt text generation)
- A pipeline needs **visual verification** (does the output match the spec?)
Keywords: `image`, `generate`, `screenshot`, `visual`, `see`, `vision`, `analyze`, `eyes`, `picture`, `photo`, `render`, `design`, `mockup`, `visual-qa`, `alt-text`, `caption`
Do NOT use this skill when:
- Text-only tasks with no visual component
- Video generation (use dedicated video tools)
- 3D model creation (use Three.js/Blender tools)
- SVG/icon design (use code-based approaches)
## Prerequisites
**Required:**
- Google Gemini API key (free at https://aistudio.google.com/apikey)
- Set as environment variable: `GEMINI_API_KEY=your_key`
- Or in `.env.local` in project root
**SDK:**
- Node.js: `npm install @google/genai`
- Python: `pip install google-genai`
**Models Used:**
| Model | ID | Use Case |
|-------|------|----------|
| Nano Banana 2 (Flash) | `gemini-3.1-flash-image-preview` | Fast image generation + editing |
| Nano Banana Pro | `gemini-3-pro-image-preview` | Highest quality, uses "thinking" |
| Nano Banana | `gemini-2.5-flash-image` | Speed optimized, stable |
| Gemini 2.0 Flash | `gemini-2.0-flash` | Vision/analysis (text-only output) |
| Imagen 3 | `imagen-3.0-generate-002` | Batch generation (1-4 per call) |
## Workflow
When activated, execute the appropriate workflow based on the task:
### Workflow A: Image Generation
1. **Understand the request** — What image is needed? What's it for? (hero, card, texture, mockup)
2. **Build the prompt** using the 5-Component Formula:
- **Subject** — Who/what is in the image (with physical detail)
- **Action/State** — What's happening (motion, gesture, ambient state)
- **Environment** — Where (background, setting, context)
- **Composition** — How it's framed (shot type, angle, lens, aspect ratio)
- **Style** — Visual treatment (lighting, color grade, film reference, texture)
3. **Select parameters:**
- Model: `flash` for speed, `pro` for quality, `imagen` for batch
- Aspect ratio: Match the usage (16:9 for hero, 1:1 for avatar, 9:16 for mobile)
- Enhancement: Apply project design system style keywords if available
4. **Generate** via Gemini API with `responseModalities: ["TEXT", "IMAGE"]`
5. **Save** to appropriate project directory (typically `public/generated/`)
6. **Report** the file path and a brief description of what was generated
### Workflow B: Image Analysis (Vision)
1. **Load the image** — Read file from disk or accept base64
2. **Formulate the question** — What do we need to know?
- Descriptive: "Describe what you see in detail"
- Comparative: "How does this compare to [reference]?"
- QA: "List any visual bugs, alignment issues, or accessibility problems"
- Caption: "Write a concise alt-text description (max 125 characters)"
3. **Send to Gemini 2.0 Flash** (text-only model, vision-capable)
4. **Parse and structure** the response for the requesting agent
5. **Flag issues** if any visual problems are detected
### Workflow C: Image Editing
1. **Load the source image** from disk
2. **Understand the edit instruction** — What change is requested?
3. **Send image + instruction** to Gemini Flash Image model
4. **Save the result** alongside the original (never overwrite)
5. **Compare** — Briefly describe what changed
### Workflow D: Visual QA Pipeline
1. **Capture** — Take screenshots at specified viewports (or receive pre-captured)
2. **Analyze each screenshot** for:
- Layout integrity (overflow, clipping, misalignment)
- Text readability (contrast, truncation, overlaps)
- Interactive element visibility (buttons, links, inputs)
- Brand consistency (colors, fonts, spacing)
- Responsive behavior (does it adapt correctly?)
3. **Score** each viewport 1-10 with specific issues listed
4. **Report** as structured findings with severity (critical/warning/info)
## The 5-Component Prompt Formula
Every image generation prompt should include these 5 components for maximum quality:
```
[SUBJECT]: A detailed description of the main subject with physical attributes
[ACTION]: What is happening — motion, gesture, ambient state
[ENVIRONMENT]: The setting, background, context, surrounding elements
[COMPOSITION]: Shot type (wide/medium/close-up), camera angle, lens, aspect ratio
[STYLE]: Visual aesthetic — lighting, color palette, film reference, texture, mood
```
### Example — Transforming a Simple Prompt
**Input:** "a futuristic server room"
**Enhanced (5-component):**
> **Subject:** Rows of monolithic black server racks stretching into darkness, each with precisely aligned LED indicators pulsing in cyan (#00F0FF) patterns. **Action:** Data streams visualized as thin luminous threads flowing between racks, occasional spark-like burst at connection points. **Environment:** A vast underground chamber with polished concrete floors reflecting the equipment glow, ceiling lost in shadow, temperature readouts floating as holographic AR elements. **Composition:** Low-angle wide shot from floor level, vanishing point centered between rack rows, 16:9 cinematic frame, 14mm ultra-wide lens perspective. **Style:** Shot on RED Monstro 8K, f/1.4, cold cyan-tinted key light from LEDs, deep crushed blacks, digital noise at 3%, inspired by Blade Runner 2049 server scenes and real-world data center photography.
## Rules
### DO:
- Always use the 5-component formula for generation prompts (unless user provides a fully specified prompt)
- Save generated images with descriptive filenames (not random hashes)
- Report exact file paths after generation so other agents can reference them
- Generate alt-text for every image created (store alongside or return with result)
- Respect project design systems — inject correct color tokens, typography, and mood
- Use `gemini-2.0-flash` (non-image model) for pure analysis tasks — it's faster and cheaper
- Handle errors gracefully — if generation fails, explain why and suggest prompt modifications
- Create images at the highest resolution the model supports
- When doing visual QA, be brutally honest about issues — never approve garbage
### DON'T:
- Never overwrite existing images — save as new files or use versioned names
- Never generate NSFW, violent, or harmful imagery
- Never hallucinate image descriptions — if you can't see something clearly, say so
- Never skip the prompt formula for generation tasks — quick prompts produce garbage
- Never expose API keys in generated code or logs
- Never generate text-heavy images (AI models render text poorly) — use CSS/SVG for text
- Never assume an image generated correctly without verifying (check file size > 0, correct format)
## Output Format
### Generation Output
```
EYES — IMAGE GENERATED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Model: gemini-2.0-flash-preview-image-generation
Aspect: 16:9 (landscape)
File: public/generated/hero-bg.png
Size: 847 KB
Alt-text: "A vast computational void with cyan grid matrix and floating data particles"
Prompt used:
[full prompt here]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
```
### Analysis Output
```
EYES — VISUAL ANALYSIS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Image: screenshots/tech-1440x900.png
Question: "Check for visual bugs and alignment issues"
Findings:
[CRITICAL] Hero text overlaps navigation bar at this viewport
[WARNING] Card grid has uneven spacing in row 2 (16px vs 24px gap)
[INFO] Footer social icons could use more breathing room
Score: 7/10
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
```
### Edit Output
```
EYES — IMAGE EDITED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Source: public/generated/hero-bg.png
Edit: "Increase contrast and add subtle purple tint to shadows"
Result: public/generated/hero-bg-edited.png
Size: 912 KB
Changes: Shadows shifted toward purple (#2D1B69), midtone contrast +20%, highlight retention preserved
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
```
## Resources
| Resource | Type | Description |
|----------|------|-------------|
| `resources/prompt-formulas.md` | reference | The 5-component and 7-component prompt formulas with examples |
| `resources/presets.md` | lookup-table | Ready-to-use preset prompts for common image types |
| `resources/gemini-api-reference.md` | cheat-sheet | Quick reference for Gemini API image generation parameters |
## Integration Patterns
### With Other Agents
**Eyes + UI Designer:** Designer describes the visual → Eyes generates concept images → Designer reviews and refines
**Eyes + Implementer:** Implementer builds component → Eyes screenshots it → Eyes QA-checks the result
**Eyes + Reviewer:** Reviewer needs visual diff → Eyes captures before/after → Eyes compares and reports
**Eyes + Spec Writer:** Spec includes visual requirements → Eyes generates reference mockups for the spec
### In Pipelines
Eyes can be injected at any pipeline stage that needs visual intelligence:
```
spec-writer → Eyes (generate reference mockups) → implementer → Eyes (visual QA) → reviewer
```
### Code Integration (Node.js)
```typescript
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
// Generate
const genResponse = await ai.models.generateContent({
model: "gemini-3.1-flash-image-preview",
contents: "your enhanced prompt here",
config: { responseModalities: ["TEXT", "IMAGE"] },
});
// Analyze
const seeResponse = await ai.models.generateContent({
model: "gemini-2.0-flash",
contents: [
{ role: "user", parts: [
{ inlineData: { data: base64Image, mimeType: "image/png" } },
{ text: "Describe what you see" },
]},
],
});
// Edit
const editResponse = await ai.models.generateContent({
model: "gemini-3.1-flash-image-preview",
contents: [
{ role: "user", parts: [
{ inlineData: { data: base64Image, mimeType: "image/png" } },
{ text: "Make the background darker and add a cyan glow" },
]},
],
config: { responseModalities: ["TEXT", "IMAGE"] },
});
```
### Code Integration (Python)
```python
from google import genai
from google.genai import types
client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
# Generate
response = client.models.generate_content(
model="gemini-3.1-flash-image-preview",
contents="your enhanced prompt here",
config=types.GenerateContentConfig(response_modalities=["TEXT", "IMAGE"]),
)
# Analyze
response = client.models.generate_content(
model="gemini-2.0-flash",
contents=[image_part, "Describe what you see"],
)
```
## Handoff
When this skill completes:
- **Next agent**: Dynamic — returns results to the requesting agent
- **Artifact produced**: Image file(s) + metadata (path, alt-text, dimensions)
- **User instruction**: "Images saved to [path]. Review the generated visuals and confirm they match your design intent."
## Platform Notes
| Platform | Notes |
|----------|-------|
| Claude Code | Full integration — read files, generate, save, analyze inline |
## Design System Presets
Eyes ships with built-in presets for "The Forensic Monolith" design system. These are ready-to-use prompts that generate images matching the clinical, mission-control aesthetic:
| Preset | Description | Aspect |
|--------|-------------|--------|
| `hero` | Computational void with cyan grid matrix | 16:9 |
| `archon` | Neural network crystal monument | 16:9 |
| `aether` | Autonomous agent orchestration | 16:9 |
| `axon` | Neural axon macro engineering | 16:9 |
| `design` | Creative workspace dissolving into purple light | 16:9 |
| `business` | Command center with amber data visualizations | 16:9 |
To use: `npx tsx tools/gemini-generate.ts preset hero`
Custom presets can be added to `tools/gemini-generate.ts` → `PRESETS` object.Related Skills
ui-visual-design
Visual design mastery including color theory, typography systems, visual hierarchy, hero section patterns, page section patterns, design tokens, and modern design trends. Use when creating visual designs, building design systems, designing hero sections, or establishing design tokens.
YAML Prompt Library
> Store reusable AI prompts as YAML files with structured messages, variables, and test data for version-controlled prompt engineering.
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Writing Plans — TDD-Sized Task Breakdown
> **Type:** Rigid process (follow structure exactly)
wireframing
Wireframing patterns including layout grids, content blocks, responsive breakpoints, and page layout patterns for landing pages, dashboards, and forms. Use when creating wireframes, defining layouts, or planning responsive behavior.
windows-registry-editor
Expert Windows Registry editor and optimizer via PowerShell. Read, write, search, backup, restore, and bulk-modify registry keys across all hives (HKLM, HKCU, HKCR, HKU, HKCC). Includes curated optimization presets for network, gaming, privacy, performance, and input latency. Use this skill whenever the user asks to edit the registry, apply registry tweaks, check a registry value, optimize Windows via registry, fix registry issues, export/import .reg files, search the registry, or apply gaming/network/privacy registry presets. Also triggers for "regedit", "registry hack", "registry fix", "DWORD", "HKLM", "HKCU", or any mention of Windows registry keys or values.
windows-network-optimizer
Diagnose, optimize, and verify Windows 11 network and system performance via PowerShell. Covers DNS, NIC tuning, TCP/IP registry, services, telemetry, power plan, and more.
windows-error-debugger
Diagnose, debug, and fix Windows crashes, BSODs, driver failures, and system errors via PowerShell. Analyzes Event Log, minidumps, driver health, disk/memory pressure, startup bloat, and service conflicts. Builds a growing knowledge base of resolved issues per machine. Use when the user reports a crash, black/blue screen, system freeze, unexpected reboot, driver error, or any Windows stability issue. Also triggers for "BSOD", "blue screen", "black screen", "crash", "system error", "bugcheck", "minidump", "driver failure", "unexpected shutdown", "paging file too small", "system hang", "Windows froze", "PC crashed", "kernel error", or any mention of Windows Event Log errors.
White-Label Config
> Transform any application into a customizable, self-hostable product with typed configuration, feature flags, and runtime env overrides.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
web-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Vitest Unit Patterns
> Design fast, isolated unit tests that validate business logic without network, database, or browser dependencies using Vitest.