From jaganpro-sf-skills-7
Generates AI-powered PNG/SVG images for Salesforce visuals including ERDs, UI mockups, wireframes, architecture diagrams, and image edits via Nano Banana Pro.
npx claudepluginhub jaganpro/sf-skillsThis skill uses the workspace's default tool permissions.
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.
CREDITS.mdREADME.mdassets/architecture/integration-flow.mdassets/erd/core-objects.mdassets/erd/custom-objects.mdassets/lwc/dashboard-card.mdassets/lwc/data-table.mdassets/lwc/record-form.mdassets/review/apex-review.mdassets/review/lwc-review.mdreferences/architect-aesthetic-guide.mdreferences/examples-index.mdreferences/gemini-cli-setup.mdreferences/interview-questions.mdreferences/iteration-workflow.mdscripts/check-prerequisites.shscripts/generate_image.pyGenerates SVG+PNG technical diagrams from natural language prompts. Supports 8 types including architecture, flowcharts, sequence diagrams; 5 visual styles; specialized for AI/Agent patterns like RAG pipelines and multi-agent flows.
Generates dark-themed SVG diagrams for architecture, flowcharts, sequences, structures, mind maps, timelines, state machines, and data flows to visualize systems, processes, and concepts.
Generates standalone HTML files with inline SVG for 13 diagram types: architecture, flowcharts, sequences, state machines, ERDs, timelines, swimlanes, quadrants, trees, and more. Customizable style guide with first-run onboarding.
Share bugs, ideas, or general feedback.
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 |