generating-visual-diagrams
AI-powered image generation for Salesforce visuals via Nano Banana Pro. Use this skill when the user needs rendered PNG/SVG output such as visual ERDs (Entity Relationship Diagrams), UI mockups, wireframes, or architecture illustrations. 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 generating-mermaid-diagrams), or non-visual documentation tasks.
What this skill does
# generating-visual-diagrams: Salesforce Visual AI Skill 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. ## Scope **In scope:** - PNG / SVG-style rendered image output - Visual ERDs and architecture diagrams - LWC or Experience Cloud mockups / wireframes - Image edits on previously generated visuals **Out of scope — delegate instead:** - Mermaid or text-only diagrams → [generating-mermaid-diagrams](../generating-mermaid-diagrams/SKILL.md) - Object / field metadata discovery for ERDs → [generating-custom-object](../generating-custom-object/SKILL.md) or [generating-custom-field](../generating-custom-field/SKILL.md) - LWC implementation after the mockup is approved → [generating-lwc-components](../generating-lwc-components/SKILL.md) - Apex review / implementation → [generating-apex](../generating-apex/SKILL.md) --- ## Hard Gate: Prerequisites First Run the prerequisites check before using the skill: ```bash scripts/check-prerequisites.sh ``` If prerequisites fail, stop and route the user to setup guidance in: - [references/gemini-cli-setup.md](references/gemini-cli-setup.md) --- ## Required Inputs Ask for or infer before generating: | Input | Default if not provided | |---|---| | Image type | ERD | | Subject scope and key entities / systems | Ask the user | | Target quality | Draft (1K) | | Preferred style | architect.salesforce.com aesthetic | | Aspect ratio | Default (no override) | | Quick mode or interview mode | Interview mode | --- ## Interview-First Workflow Unless the user asks for **quick / simple / just generate**, ask clarifying questions first using the question bank in [references/interview-questions.md](references/interview-questions.md). | 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 | **Quick mode defaults** (triggered by "quick", "simple", "just generate", "fast"): - professional style, 1K draft, legend included, one image first then iterate --- ## Recommended Workflow ### 1. Run prerequisites check Run `scripts/check-prerequisites.sh` and confirm all required tools pass before proceeding. ### 2. Gather inputs - object list / metadata (delegate to `generating-custom-object` / `generating-custom-field` if needed) - purpose: draft vs presentation vs documentation - desired aesthetic — read [references/architect-aesthetic-guide.md](references/architect-aesthetic-guide.md) for ERDs - aspect ratio / resolution ### 3. Run interview or use quick-mode defaults Load [references/interview-questions.md](references/interview-questions.md) for the matching question set (ERD, LWC, architecture, code review). ### 4. Build a concrete prompt Good prompts specify subject, composition, color treatment, labels/legends, and output quality goal. ### 5. Generate a fast draft at 1K ```bash gemini --yolo "/generate 'Your prompt here'" ``` Open the result and review layout before spending on higher resolution. ### 6. Iterate using edits ```bash gemini --yolo "/edit 'Specific change instruction'" ``` Use `/edit` for small adjustments — cheaper than regenerating. See [references/iteration-workflow.md](references/iteration-workflow.md). ### 7. Generate final at 2K/4K using the Python script Run `scripts/generate_image.py` when layout is confirmed: ```bash uv run scripts/generate_image.py -p "Refined prompt" -f "output.png" -r 4K ``` ### 8. Error recovery - If `gemini --yolo` returns no image: re-run once; if it fails again, fall back to the Python script path. - If the Python script fails with `GEMINI_API_KEY not found`: verify the key is exported in your shell profile (`~/.zshrc` on macOS/zsh, `~/.bashrc` on Linux) and the terminal session is refreshed. - If the extension is missing: run `gemini extensions install nanobanana` and re-run the prerequisites check. --- ## Default Style Guidance For ERDs, default to the **architect.salesforce.com** aesthetic unless the user asks otherwise: - dark border + light fill cards - cloud-specific accent colors - clean labels and relationship lines - presentation-ready whitespace and hierarchy Full style specification: [references/architect-aesthetic-guide.md](references/architect-aesthetic-guide.md) --- ## Common Patterns | Pattern | Default approach | |---|---| | visual ERD | get metadata if available, then render a draft first | | LWC mockup | load [assets/lwc/data-table.md](assets/lwc/data-table.md), [assets/lwc/record-form.md](assets/lwc/record-form.md), or [assets/lwc/dashboard-card.md](assets/lwc/dashboard-card.md) for the matching template | | architecture illustration | load [assets/architecture/integration-flow.md](assets/architecture/integration-flow.md); emphasize systems and flows | | image refinement | use `/edit` for small changes before regenerating | | final production asset | switch to script-driven 2K/4K generation via `scripts/generate_image.py` | | Apex / LWC code review | load [assets/review/apex-review.md](assets/review/apex-review.md) or [assets/review/lwc-review.md](assets/review/lwc-review.md) for the review prompt template | --- ## Output Expectations Deliverables produced by this skill: - **Draft image** (`<name>.png`) — 1K resolution rendered via `gemini --yolo "/generate ..."` for layout review - **Final image** (`<name>.png`) — 2K or 4K resolution rendered via `scripts/generate_image.py` once composition is approved - **Edit iteration** (`<name>.png`) — incremental refinement via `gemini --yolo "/edit ..."` without full regeneration After delivering each image: - Open the file in Preview or attach it in the session for multimodal review - Ask the user whether to iterate on layout, labeling, or color before finalizing - Only proceed to high-res output after draft composition is confirmed --- ## Rules / Constraints | Rule | Rationale | |---|---| | Always run prerequisites check before any generation | Missing tools produce silent failures | | Always draft at 1K before generating at 4K | Cost and time savings; composition changes at high res are wasteful | | Use `/edit` for incremental changes, not full regeneration | Cheaper and faster for small adjustments | | Never commit `GEMINI_API_KEY` to version control | Key is personal and tied to billing | | Delegate text diagrams to `generating-mermaid-diagrams` | This skill owns rendered images only | --- ## Gotchas | Issue | Resolution | |---|---| | Edit not applying correctly | Be specific: reference existing elements by name; one change at a time | | 4K output looks different from 1K draft | Use exact same prompt text; minor variations are normal model behavior | | `gemini --yolo` fails silently | Check that the Nano Banana extension is installed: `gemini extensions list` | | Image dimensions wrong | Set `--aspect-ratio` explicitly in `scripts/generate_image.py` using `-a "16:9"` | | RGBA image causes errors in Python script | Script auto-converts RGBA→RGB; ensure Pillow is installed via `uv` | --- ## Cross-Skill Integration | Need | Delegate to | Reason | |---|---|---| | Mermaid first draft or text diagram | [generating-mermaid-diagrams](../generating-mermaid-diagrams/SKILL.md) | faster structural diagramming | | Object / field discovery for ERD | [generating-custom-object](../generating-custom-object/SKILL.md) / [generating-custom-field](../generating-custom-field/SKILL.md) | accurate schema grounding | | Turn mockup into real LWC component | [generating-lwc-components](../generating-lwc-components/SKILL.md) | implementation after design | | Apex review / implementation | [generating-apex](../generating-apex/SKILL.md) | code-quality follow-up | --- ## Reference File Index | File | When to read | |---|---| | [references/gemini-
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.