Agent skill

Create Explanatory Image

by Abilityai in Abilityai/cornelius

Generate explanatory diagrams and infographics that visually communicate concepts.

MITAuto-check: notesMedia & Creative

Install Create Explanatory Image

skills CLI
$ npx skills add Abilityai/cornelius --skill create-explanatory-image -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Abilityai/cornelius create-explanatory-image --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Abilityai/cornelius.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/create-explanatory-image .claude/skills/create-explanatory-image && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-explanatory-image
GitHub stars
109
Token cost
~2.8k tokens
SKILL.md length
1,178 words
Files
1
Skills in repo
51
Repo updated
First seen
Licence
MIT

At a glance

Generate explanatory diagrams and infographics that visually communicate concepts.

  • Works in 8 steps: Read Current State → Decompose the Concept → Simplify for Constraints → …
  • Tasks that involve Image generation
  • SKILL.md covers Purpose, State Dependencies, Prerequisites and Inputs, plus 6 more sections
  • Calls git, python3 and black; needs GOOGLE_API_KEY and GEMINI_API_KEY

What it does

Create Explanatory Image is an agent skill from Abilityai/cornelius. Generate explanatory diagrams and infographics that visually communicate concepts. Iterates autonomously until images are logically correct, text is clean, and the concept explanation is clear. Uses Nano Banana (Gemini 2.5 Flash Image).

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering Image generation, Diagrams and Infographics. It works with Google Gemini. The repository describes itself as: AI-powered second brain template for Claude Code + Obsidian. The licence is MIT.

When your agent uses it

  • Tasks that involve Image generation
  • Tasks that involve Diagrams
  • Tasks that involve Infographics

Example prompts

  • “/create-explanatory-image”

Requirements

  • Python 3
  • A credential in GOOGLE_API_KEY
  • A credential in GEMINI_API_KEY
  • Pre-approved tools (allowed-tools): Bash, Read, Write, Glob, AskUserQuestion

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Read Current State
  2. Decompose the Concept
  3. Simplify for Constraints
  4. Generate Initial Variants
  5. Self-Critique Loop
  6. Present Candidates
  7. Finalize and Cleanup
  8. Write Completion Summary

What it can do on your machine

Read from SKILL.md and the folder at commit fd5e9a4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Write
    • Glob
    • AskUserQuestion

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • python3
    • black

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GOOGLE_API_KEY
    • GEMINI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Create Explanatory Image loads about 2.8k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 1,178 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:31
    GLE_API_KEY` or `GEMINI_API_KEY` set in `.env`
  • NoteMentions a .env fileSKILL.md:224
    ion fails completely | Check API key in `.env` | Yes |
  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Write, Glob, AskUserQuestion

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Abilityai/cornelius at commit fd5e9a4, republished under its MIT licence (© Abilityai). 1,178 words, ~2,757 tokens.

Download SKILL.mdSave it as .claude/skills/create-explanatory-image/SKILL.md (or your agent's skills folder).
name
create-explanatory-image
description
Generate explanatory diagrams and infographics that visually communicate concepts. Iterates autonomously until images are logically correct, text is clean, and the concept explanation is clear. Uses Nano Banana (Gemini 2.5 Flash Image).
allowed-tools
Bash, Read, Write, Glob, AskUserQuestion
automation
gated
user-invocable
true
metadata.version
1.0
metadata.created
2026-03-03
metadata.author
content-agent
metadata.ported-to
Cornelius
metadata.ported-date
2026-03-21

Create Explanatory Image

Purpose

Generate explanatory diagrams and infographics that clearly communicate a concept, iterating autonomously until the images are logically correct, text is accurate, and the visual explanation lands.

State Dependencies

SourceLocationReadWriteDescription
Best practices.claude/skills/nano-banana-image-generator/best_practices.mdyesPrompt engineering constraints and style guide
Generate script.claude/skills/nano-banana-image-generator/scripts/generate_image.pyyesImage generation API
Output folderUser-specified or auto-createdyesFinal and intermediate images

Prerequisites

  • GOOGLE_API_KEY or GEMINI_API_KEY set in .env
  • Nano Banana image generator scripts available at .claude/skills/nano-banana-image-generator/scripts/

Inputs

  • Concept description: What the diagram should explain (from user message or arguments)
  • Output folder (optional): Where to save images. Default: auto-created folder named after the concept in current directory
  • Style (optional): dark (black bg, brand style) or warm (charcoal bg, illustrated). Default: warm
  • Aspect ratio (optional): 16:9, 1:1, 9:16. Default: 16:9
  • Variant count (optional): How many initial variants. Default: 3

Process

Step 1: Read Current State
  1. Read .claude/skills/nano-banana-image-generator/best_practices.md

    • Note complexity limits: 10 boxes max, 10 text labels max, 3 hierarchy levels max
    • Note known model limitations (misspellings on 4+ syllable words, font inconsistency)
  2. Confirm output folder:

    • If user specified a folder, use it
    • Otherwise, create: [concept_slug]_diagrams/ in current directory
    • mkdir -p [folder]
Step 2: Decompose the Concept

Analyze the user's concept description and break it down:

  1. Core message: What single insight should the viewer walk away with?
  2. Visual elements: List all shapes, icons, nodes, connections needed
  3. Text labels: List every text string that will appear in the image
  4. Layout type: Identify the best diagram type:
    • Framework (central concept + surrounding elements)
    • Before/after comparison
    • Flow/process (horizontal or vertical)
    • Circular loop/cycle
    • Visual metaphor
    • Timeline/evolution
    • Cross-section/exploded view
Step 3: Simplify for Constraints

This step is critical. The concept decomposition will almost always exceed Nano Banana's limits. Simplify ruthlessly:

  1. Count visual elements - if > 10, merge or remove until <= 10

  2. Count text labels - if > 10, shorten labels to 1-2 words, replace words with icons, or remove sub-labels

  3. Check word complexity - replace any word with 4+ syllables with a simpler alternative:

    Avoid (misspells)Use Instead
    SOVEREIGNTYOWN SPACE, ISOLATE
    ORCHESTRATIONCOORDINATE, TEAMWORK
    HIERARCHICALTOP-DOWN, LEADER
    INFRASTRUCTUREFOUNDATION, BUILD
    OBSERVABILITYMONITOR, WATCH
    GOVERNANCECONTROL, AUDIT
    PLAYBOOK(usually OK but occasionally garbles)
  4. Verify hierarchy - max 3 levels: title, main content, footer

Present the simplified plan:

Concept: [one sentence]
Layout: [type]
Elements: [count] / 10 max
Labels: [count] / 10 max
Complex words replaced: [list]
Step 4: Generate Initial Variants

Generate the specified number of variants (default 3), each taking a slightly different visual approach to the same concept.

For each variant:

  1. Craft a narrative prompt following best practices:

    • Write descriptive paragraphs, not keyword lists
    • Include style tokens (background color, text color, font)
    • Specify layout positioning explicitly
    • Request "generous spacing" and "clean minimal design"
  2. Generate using the Python script (handles JSON escaping properly):

    bash
    python3 .claude/skills/nano-banana-image-generator/scripts/generate_image.py "[prompt]" /tmp/[concept]_v[N].png --aspect-ratio [ratio]

    Important: Use the Python script, not the bash script, to avoid JSON escaping issues with quotes in prompts.

  3. Wait 2 seconds between API calls to avoid rate limits:

    bash
    sleep 2
Step 5: Self-Critique Loop

For each generated image, run this analysis cycle. This is the core differentiator of this skill.

  1. View the image: Use the Read tool on the PNG file to visually inspect it

  2. Check for issues against this checklist:

    • Title text: Is it spelled correctly and readable?
    • All labels: Are they spelled correctly? Any garbled/mushy text?
    • Element count: Does the image have roughly the right number of elements?
    • Logical structure: Does the layout match the requested concept? Are connections correct?
    • Missing elements: Is anything from the concept missing entirely?
    • Duplicate elements: Are any labels or nodes repeated incorrectly?
    • Text placement: Are labels in the right positions relative to their elements?
    • Readability: Would this be readable on a mobile screen?
  3. Classify the image:

    • Good: No issues found, or only very minor ones. Keep as candidate.
    • Fixable: 1-2 specific issues that can be addressed by prompt adjustment. Iterate.
    • Redo: Fundamental layout/structure problems. Needs a different prompt approach.
  4. For Fixable images, identify the specific fix:

    • Missing element -> Add explicit instruction for it
    • Misspelled word -> Replace with simpler word or remove
    • Wrong layout -> Be more explicit about positioning
    • Duplicate node -> Emphasize exact count ("exactly six nodes, not five, not seven")
    • Elements merged -> Use completely distinct words for each element
  5. Regenerate with targeted fixes. Maximum 3 iteration rounds per variant.

  6. Track the best version of each variant approach.

Show full SKILL.md (488 more words)Show less
Step 6: Present Candidates

[APPROVAL GATE] - Present the best candidates to the user

Show each candidate image and describe:

  • What it got right
  • Any remaining minor imperfections
  • Which concept angle it takes

User options:

  1. Pick a winner - Select one or more as final
  2. Iterate on specific one - Request changes to a candidate
  3. New direction - Describe a different visual approach
  4. Combine elements - Mix aspects from multiple candidates

If user requests changes:

  • Apply modifications to the prompt
  • Regenerate and re-run self-critique (Step 5)
  • Return to this gate
Step 7: Finalize and Cleanup
  1. Copy final images to the output folder with clean names:

    bash
    cp /tmp/[best_version].png [output_folder]/[concept_name].png
  2. Delete intermediate files from /tmp:

    bash
    rm /tmp/[concept]_v*.png
  3. Keep only final versions in the output folder. Delete any intermediate copies.

  4. Open the output folder for the user:

    bash
    open [output_folder]
Step 8: Write Completion Summary

Report:

## Generated Images

**Concept**: [description]
**Output**: [folder path]
**Files**: [list of final files]
**Iterations**: [total attempts] across [variants] variants
**Cost**: ~$[0.039 * total_attempts] ([total] images generated)

Outputs

  • Final explanatory images in the output folder
  • All intermediate files cleaned up

Error Recovery

ErrorRecoveryNotify
API rate limitWait 3 seconds and retryNo
API quota exceededWait 60 seconds, retry onceYes - warn user about quota
JSON escape errorSwitch to Python script (not bash)No
All variants have garbled textSimplify further - reduce to 6 labels maxNo
Image generation fails completelyCheck API key in .envYes

Completion Checklist

  • Best practices read fresh
  • Concept decomposed and simplified to constraints
  • Initial variants generated
  • Each variant self-critiqued for text accuracy and logical correctness
  • Best candidates presented and approved by user
  • Final images saved to output folder with clean names
  • Intermediate files deleted
  • Output folder opened for user

Style Reference

Warm style (default):

Warm charcoal background (#2D2926), soft cream text (#FAF8F5),
illustrated flat design with soft shadows, DM Sans font style,
dusty rose (#D4A5A5), coral (#E8B4A0), muted teal (#7BA3A3),
soft gold (#D4C4A0) accent colors.

Dark brand style (the user's):

Black background (#000000), white text (#ffffff), DM Sans font,
bold 700 weight for titles, clean minimal design, high contrast.

Self-Improvement

After completing this skill's primary task, consider tactical improvements:

  • Review execution: Were there friction points, unclear steps, or inefficiencies?
  • Common failure patterns: Did certain types of prompts consistently fail? Add to the word replacement table.
  • Iteration efficiency: Did self-critique catch real issues or waste cycles on false positives?
  • Prompt patterns: Did any prompt structure produce consistently better results? Document it below.
  • Apply improvement (if identified):
    • Edit this SKILL.md with the specific improvement
    • Keep changes minimal and focused
  • Version control (if in a git repository):
    • Stage: git add .claude/skills/create-explanatory-image/SKILL.md
    • Commit: git commit -m "refactor(create-explanatory-image): <brief improvement description>"
Learned Patterns
<!-- Add patterns discovered through self-improvement here -->
  • "playbook" frequently misspells as "playbaak" or "playbauk" - avoid in taglines, use "it" or "the file" instead
  • EDIT and SAVE merge into one label when used as adjacent cycle nodes - use completely distinct words (RUN/CHECK/STORE/REFLECT/REFINE/PUSH)
  • Circular diagrams with 6+ nodes tend to duplicate labels - stick to 3-4 nodes max for loops
  • The Python generate_image.py script handles JSON escaping; the bash generate.sh does not - always prefer Python for complex prompts
  • Explicitly state "exactly N nodes, not more, not fewer" when count precision matters
  • Labels OUTSIDE circles/nodes render more reliably than labels inside
  • Use numbered lists (1. READ STATE, 2. DO WORK) to force correct vertical stacking

© Abilityai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/create-explanatory-image of Abilityai/cornelius.

Open the folder on GitHubat commit fd5e9a4

Compare with similar skills

Create Explanatory Image next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create Explanatory Image compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Explanatory Image this skillAbilityai/cornelius109—~2.8kAutomated safety check: NotesMIT
Generate ImageMicrock/ordinary-claude-skills403—~1.2kAutomated safety check: NotesCustom licence
SEO Image GeneratorAgriciDaniel/claude-seo18k2 repos~2.1kAutomated safety check: PassMIT
Imagensanjay3290/ai-skills4317 repos~657Automated safety check: PassApache-2.0
Nano Bananakkoppenhaver/cc-nano-banana3781 repos~1.4kAutomated safety check: PassMIT
Smart Illustratoraxtonliu/smart-illustrator564—~1.8kAutomated safety check: PassMIT

Similar skills

  • Generate Image

    Microck/ordinary-claude-skills

    Generate or edit images using AI models (FLUX, Gemini). An agent skill from Microck/ordinary-claude-skills.

    403 GitHub stars~1.2k tokensUpdated 1 mo ago
    Media & CreativeAuto-check: notes
  • SEO Image Generator

    AgriciDaniel/claude-seo

    Generates Open Graph previews, blog hero images, product photos and infographics for SEO use through Gemini image tools and the banana extension.

    18k GitHub starsUsed in 2 repos~2.1k tokens
    Media & CreativeAuto-check passed
  • Imagen

    sanjay3290/ai-skills

    Generate images using Google Gemini's image generation capabilities.

    431 GitHub starsUsed in 7 repos~657 tokens
    Media & CreativeAuto-check passed
  • Nano Banana

    kkoppenhaver/cc-nano-banana

    REQUIRED for all image generation requests. An agent skill from kkoppenhaver/cc-nano-banana.

    378 GitHub starsUsed in 1 repo~1.4k tokens
    Media & CreativeAuto-check passed
  • Smart Illustrator

    axtonliu/smart-illustrator

    Generates article illustrations, batch slide infographics and cover images from your text, using Gemini, Mermaid or Excalidraw engines and a prompt-only mode.

    564 GitHub stars~1.8k tokensUpdated 3 mo ago
    Media & CreativeAuto-check passed
  • Figure

    Muuuun/luxas

    Hybrid figure pipeline (Nano Banana raster + rembg background removal + TikZ vector assembly).

    1.2k GitHub stars~1.2k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed

More from Abilityai/cornelius

All 51 skills in this repo
  • Nano Banana Image Generator

    Abilityai/cornelius

    Generate images using Google's Nano Banana (Gemini 2.5 Flash Image).

    109 GitHub stars~1.2k tokensUpdated 15 days ago
    Auto-check: notes
  • Changelog Protocol

    Abilityai/cornelius

    Protocol for creating dated changelog files after significant agent sessions.

    109 GitHub stars~555 tokensUpdated 15 days ago
    Auto-check passed
  • Create Article

    Abilityai/cornelius

    Create long-form articles from knowledge base insights. An agent skill from Abilityai/cornelius.

    109 GitHub stars~2.1k tokensUpdated 15 days ago
    Auto-check: notes
  • Epistemic Classification

    Abilityai/cornelius

    Framework for distinguishing research findings from hypotheses and speculative synthesis.

    109 GitHub stars~1.5k tokensUpdated 15 days ago
    Auto-check passed
  • Get Youtube Transcript

    Abilityai/cornelius

    Extract the transcript from a YouTube video by URL or video ID.

    109 GitHub stars~525 tokensUpdated 15 days ago
    Auto-check: notes
  • Insight Capture Format

    Abilityai/cornelius

    Standard format for capturing and documenting insights in the knowledge base.

    109 GitHub stars~616 tokensUpdated 15 days ago
    Auto-check passed

Works with

Questions about Create Explanatory Image

What does Create Explanatory Image do?

Generate explanatory diagrams and infographics that visually communicate concepts. Create Explanatory Image is an agent skill from Abilityai/cornelius. Generate explanatory diagrams and infographics that visually communicate concepts.

When should I use Create Explanatory Image?

Create Explanatory Image fits situations like: tasks that involve Image generation; tasks that involve Diagrams; tasks that involve Infographics.

How do I install Create Explanatory Image in Claude Code?

Run `npx skills add Abilityai/cornelius --skill create-explanatory-image -a claude-code`. Or copy the skill folder (.claude/skills/create-explanatory-image in Abilityai/cornelius) into .claude/skills/create-explanatory-image in your project. Claude Code loads it when a task matches its description.

How do I install Create Explanatory Image in Codex?

Run `npx skills add Abilityai/cornelius --skill create-explanatory-image -a codex`. Or copy the skill folder (.claude/skills/create-explanatory-image in Abilityai/cornelius) into .agents/skills/create-explanatory-image in your project. Codex loads it when a task matches its description.

Can I use Create Explanatory Image in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Abilityai/cornelius --skill create-explanatory-image -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-explanatory-image, .gemini/skills/create-explanatory-image, .github/skills/create-explanatory-image and .opencode/skills/create-explanatory-image in your project.

What does Create Explanatory Image need to run?

Going by SKILL.md and its folder, Create Explanatory Image needs the command-line tools its instructions call (git, python3 and black) and credentials named GOOGLE_API_KEY and GEMINI_API_KEY. Our summary lists: Python 3; A credential in GOOGLE_API_KEY; A credential in GEMINI_API_KEY. Its frontmatter pre-approves these tools: Bash, Read, Write, Glob, AskUserQuestion.

Does Create Explanatory Image access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Create Explanatory Image safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file; pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Create Explanatory Image use?

Create Explanatory Image is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Create Explanatory Image use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create Explanatory Image?

Skills that share tags, products or a category with Create Explanatory Image: Generate Image (Microck/ordinary-claude-skills, 403 stars), SEO Image Generator (AgriciDaniel/claude-seo, 18k stars), Imagen (sanjay3290/ai-skills, 431 stars) and Nano Banana (kkoppenhaver/cc-nano-banana, 378 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create Explanatory Image?

Abilityai (a GitHub organization) maintains it in Abilityai/cornelius, which has 109 GitHub stars. The repository holds 51 skills in this directory. The repository was last updated on September 22, 2026.

Source: Abilityai/cornelius on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.