PaperBanana-CN: Skill for Claude Code

.claude/skills/generate-diagram/SKILL.md

generate-diagram is a skill for Claude Code from mituan-ai/PaperBanana-CN. It costs 0 tokens per session (234 once invoked), scanned A, a copy of generate-diagram, MIT.

A command that creates a publication-quality methodology diagram from text using PaperBanana, a diagram-generation tool.

In plain words
What is it for?
Use it with a text file and optional caption to generate a diagram, with a command-line fallback if the connected tool is unavailable.
Why use it?
It turns written methodology into a visual figure without requiring you to draw it manually.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is mituan-ai/PaperBanana-CN's own configuration. It tells Claude Code how to work on PaperBanana-CN itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything PaperBanana-CN configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/mituan-ai/PaperBanana-CN/main/.claude/skills/generate-diagram/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mituan-ai/PaperBanana-CN

Made for: Claude Code.

Wrote 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.

agentmods badge for generate-diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/mituan-ai/paperbanana-cn/generate-diagram/github.svg)](https://agentmods.dev/skills/mituan-ai/paperbanana-cn/generate-diagram)
Your own site
<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.

agentmods 80×15 button for generate-diagram

Your own site · 80×15
<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>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 234 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 010380e0a25f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

Origin

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.

.claude/skills/generate-diagram/SKILL.md · 36 lines

What it actually says

Generate Diagram

Generate a publication-quality methodology diagram from a text file using PaperBanana.

Instructions

  1. Read the file at $ARGUMENTS[0] to get the methodology text content.
  2. If $ARGUMENTS[1] is provided, use it as the figure caption. Otherwise, ask the user for a caption describing what the diagram should communicate.
  3. Call the MCP tool generate_diagram with:
    • source_context: the text content read from the file
    • caption: the figure caption
    • iterations: 3 (default)
  4. 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"
Changes

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.

  1. 12d ago First seen · 36 lines · 0 tokens per session scan A 010380e0a25f

Subscribe to this mod's changes

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.

Related

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.

zhoy0409-debug/polish-sci-figures · 102 tokens

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…

K-Dense-AI/scientific-agent-skills · 67 tokens

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.

wanshuiyin/Auto-claude-code-research-in-sleep · 107 tokens

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…

WUBING2023/PaperSpine · 126 tokens

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…

s1dashu/ip-as-logo-skill · 78 tokens

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.

foryourhealth111-pixel/Vibe-Skills · 53 tokens