
This routes image generation requests through Nano Banana Pro instead of text-based Mermaid diagrams. You'd reach for it when you need rendered PNG or SVG output: Salesforce ERDs with that architect.salesforce.com aesthetic, LWC mockups, architecture illustrations, or wireframes. It defaults to an interview-first workflow to nail the prompt before burning tokens on high-res output, then iterates with natural language edits before final generation. The hard gate on prerequisites and cross-skill delegation to sf-diagram-mermaid, sf-metadata, and sf-lwc keeps it focused on visual polish rather than structural diagramming or implementation. Solid for presentation assets once you've got the composition right, but you'll want to draft cheap and finalize expensive.
$ npx -y skills add jaganpro/sf-skills --skill sf-diagram-nanobananapro --agent claude-codeInstalls into .claude/skills of the current project.
Use this skill when the user needs rendered visuals, not text diagrams: ERDs, UI mockups, architecture illustrations, slide-ready images, or image edits using Nano Banana Pro.
Always run the prerequisites check before using the skill:
~/.claude/skills/sf-diagram-nanobananapro/scripts/check-prerequisites.sh
If prerequisites fail, stop and route the user to setup guidance in:
Use sf-diagram-nanobananapro when the user wants:
Delegate elsewhere when the user wants:
Ask for or infer:
Unless the user explicitly asks for quick/simple/just generate, ask clarifying questions first.
| Request type | Ask about |
|---|---|
| ERD / schema | objects, visual style, purpose, extras |
| UI mockup | component type, object/context, device/layout, style |
| architecture image | systems, boundaries, protocols, emphasis |
| image edit | what to keep, what to change, output quality |
Question bank: references/interview-questions.md
If the user says “quick”, “simple”, or “just generate”, default to:
Decide which of these are needed:
Good prompts specify:
gemini --yolo "/generate 'Professional Salesforce ERD with Account, Contact, Opportunity; clean legend; white background; Salesforce-style colors'"
Use natural-language edits:
gemini --yolo "/edit 'Move Account to center, thicken relationship lines, add legend in bottom right'"
Use the script when you need higher resolution or explicit edit inputs:
uv run scripts/generate_image.py \
-p "Final production-quality Salesforce ERD with legend and field highlights" \
-f "crm-erd-final.png" \
-r 4K
Full iteration guide: references/iteration-workflow.md
For ERDs, default to the architect.salesforce.com aesthetic unless the user asks otherwise:
Style guide: references/architect-aesthetic-guide.md
| Pattern | Default approach |
|---|---|
| visual ERD | get metadata if available, then render a draft first |
| LWC mockup | use component template + user context + one draft iteration |
| architecture illustration | emphasize systems and flows, reduce field-level detail |
| image refinement | use /edit for small changes before regenerating |
| final production asset | switch to script-driven 2K/4K generation |
Examples: references/examples-index.md
After generating, do one of these:
Keep the first pass cheap; only spend on high-res output after the composition is right.
| Need | Delegate to | Reason |
|---|---|---|
| Mermaid first draft or text diagram | sf-diagram-mermaid | faster structural diagramming |
| object / field discovery for ERD | sf-metadata | accurate schema grounding |
| turn mockup into real component | sf-lwc | implementation after design |
| review Apex / trigger code in parallel | sf-apex | code-quality follow-up |
| Score | Meaning |
|---|---|
| 70+ | strong image prompt / workflow choice |
| 55–69 | usable draft with iteration needed |
| 40–54 | partial alignment to request |
| < 40 | poor fit; re-interview and rebuild prompt |
Sponsors