Borrowing it
Nothing to install: this file belongs to mituan-ai/PaperBanana-CN. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/mituan-ai/PaperBanana-CN/main/.claude/skills/generate-diagram/SKILL.mdgit clone --depth 1 https://github.com/mituan-ai/PaperBanana-CNWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mituan-ai/paperbanana-cn/generate-diagram)<a href="https://agentmods.dev/skills/mituan-ai/paperbanana-cn/generate-diagram"><img src="https://agentmods.dev/badge/skills/mituan-ai/paperbanana-cn/generate-diagram/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mituan-ai/paperbanana-cn/generate-diagram"><img src="https://agentmods.dev/badge/skills/mituan-ai/paperbanana-cn/generate-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00234 |
| Opus 5 | $0.00000 | $0.00117 |
| Sonnet 5 | $0.00000 | $0.00047 |
| Haiku 4.5 | $0.00000 | $0.00023 |
Grade A, and why
generate-diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
94% identical to generate-diagram — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
Generate Diagram
Generate a publication-quality methodology diagram from a text file using PaperBanana.
Instructions
- Read the file at
$ARGUMENTS[0]to get the methodology text content. - If
$ARGUMENTS[1]is provided, use it as the figure caption. Otherwise, ask the user for a caption describing what the diagram should communicate. - Call the MCP tool
generate_diagramwith:source_context: the text content read from the filecaption: the figure captioniterations: 3 (default)
- Present the generated diagram to the user.
CLI Fallback
If the MCP tool is not available, fall back to the CLI:
paperbanana-cn generate --input <file> --caption "<caption>"
Example
/generate-diagram method.txt "Overview of our encoder-decoder architecture"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 36 lines · 0 tokens per session scan A 010380e0a25f
generate-diagram is a skill published in the GitHub repository mituan-ai/PaperBanana-CN (79 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 234 tokens. A static security scan graded it A with 0 findings. It is 94% identical to generate-diagram, differing in 4 lines, and is treated as a copy.
Other skills, from other repositories
polish-sci-figures
A final review and preparation workflow for scientific figures, including charts, image panels, manuscripts, slides, and posters.
scientific-schematics
Create publication-quality scientific diagrams using Nano Banana 2 AI with smart iterative refinement. Uses Gemini 3.6 Flash for quality review. Only regenerates if quality is below threshold for your document type. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways, and…
paper-poster-html
A workflow for building an academic conference poster as one HTML/CSS file and printing it to a PDF at an exact page size. It uses the paper’s real figures and checks layout details before review.
paperFig
Design, implement, revise, and validate publication-quality scientific figures from references, existing plotting code, and real project data. Trace every figure to source code and inputs; deconstruct reference figures; plan the scientific story and multi-panel structure; build complex model architecture and…
ip-as-logo
Generate extremely simple, cute, personified square character images with rounded heavy forms, two purposeful character colors, one solid background color, and a dominant lower-corner composition. Use when creating an animal, creature, robot, ghost, plant, object, or other character image, including when the agent…
latex-posters
Use when creating or revising LaTeX research posters with beamerposter, tikzposter, or baposter, including poster layout, typography, color, print sizing, figure placement, QR codes, compilation, and print-ready PDF checks.