Help us improve
Share bugs, ideas, or general feedback.
From nexus-agents
Generates AI illustrations for docs: hero images, covers, conceptual art, and infographics. Redirects precise diagrams and charts to specialized skills.
npx claudepluginhub nexus-substrate/nexus-agentsHow this skill is triggered — by the user, by Claude, or both
Slash command
/nexus-agents:docs-imageThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!--
Analyzes article structure, identifies positions needing illustrations, and generates images with Type × Style × Palette consistency.
Generates professional infographics using Gemini AI via Nano Banana MCP. Guides through content analysis, visualizable concepts, visualization approaches, and on-brand image creation for social media.
Generates Mermaid diagrams for flowcharts, sequences, and classes. Guides color palettes, stock photos, AI image prompts, visual themes, and accessible design for presentations.
Share bugs, ideas, or general feedback.
Use AI image generation in three specific cases:
For everything else, redirect.
Before generating, ask: "Is this a 'show how X works' question with precise components / sequence / state?"
If YES → recommend docs-mermaid. State the rule of thumb:
"Mermaid wins for precise diagrams: it's text-based, diff-able, and
renders accurately. AI images are wrong for this — they look right
until you check the details."
If NO and the request is genuinely illustrative ("show me what consensus feels like", "hero for the README"), proceed to step 2.
This guardrail is the highest-priority rule in the skill. Skipping it produces architecture diagrams that look plausible but are wrong in detail.
| Mode | When to use | Prompt emphasis |
|---|---|---|
| Infographic (default) | Layered process shape, comparison panels | Layout structure, hierarchy, accessible colors |
| Editorial | Hero / blog cover with mood | Composition, lighting, publication references |
| Abstract | Pattern background, decorative section divider | Color theory, mathematical forms, textures |
| UI/Web | Tech illustration with vector / flat-design feel | Clean lines, exact colors, icon-style |
Defaulting to Infographic is correct for ~80% of nexus-agents use cases — most requests are about explaining a process, not setting a mood.
(Product / Landscape modes from upstream are intentionally omitted — this is a code-governance project, not e-commerce or travel.)
Build the prompt as a natural narrative paragraph using the 6-component reasoning brief:
Never pass raw user text directly to the API. Always interpret + enhance.
See references/prompt-engineering.md for full per-mode modifier
libraries and worked examples.
Tool: mcp__nanobanana__generate_image
Prompt: <constructed prompt from step 3>
Aspect ratio: 16:9 (hero / OG card) or 4:3 (inline)
Resolution: 1200x630 for OG, 1920x1080 for hero
If nanobanana-mcp is not configured:
get_image_history (lightweight, no side effects)references/prompt-engineering.md for
setup."docs/architecture/images/; blog covers in <post-dir>/cover.png.
Never to /tmp or scratch dirs.This is the illustrative-images lane. Redirect when the request fits elsewhere:
docs-mermaiddocs-chartdocumentation-managementWhen you redirect, state the rule of thumb so the user calibrates for next time.
references/prompt-engineering.md — domain-mode modifier library +
worked examplesreferences/setup-nanobanana.md — MCP server setup walkthrough (TBD
— file as a follow-up if operators ask)