npx skills add ...
npx skills add jaganpro/sf-skills --skill sf-diagram-nanobananapro
AI-powered image generation for Salesforce visuals via Nano Banana Pro. TRIGGER when: user asks for PNG/SVG output, UI mockups, wireframes, visual ERDs, or says "generate image" / "create mockup". DO NOT TRIGGER when: text-based Mermaid diagrams (use sf-diagram-mermaid), or non-visual documentation tasks.
npx skills add jaganpro/sf-skills --skill sf-diagram-nanobananapro
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:
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:
Use natural-language edits:
Use the script when you need higher resolution or explicit edit inputs:
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 |
uv run scripts/generate_image.py \
-p "Final production-quality Salesforce ERD with legend and field highlights" \
-f "crm-erd-final.png" \
-r 4K