dtsong/claude-code-windows-setup/generate-diagram
Claude Code and agent skill by dtsong/claude-code-windows-setup
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when creating a methodology diagram from research text. Triggers on "make a diagram", "visualize this methodology", "diagram this process", or "generate a figure from this paper". Applies to methodology descriptions, process flows, and research paper sections. Do NOT use for scoring existing diagrams (use evaluate-diagram) or plotting data from CSV/JSON (use generate-plot).
Install
npx vskill@latest install dtsong/claude-code-windows-setup/generate-diagramSKILL.md
The same SKILL.md was published earlier as dtsong/claude-code-wsl-setup/generate-diagram.
Generate Diagram
Generate a publication-quality methodology diagram from a text file using PaperBanana.
Inputs
- Required:
$ARGUMENTS[0]— path to the methodology text file - Optional:
$ARGUMENTS[1]— figure caption (prompted if not provided)
Scope Constraints
- Read ONLY the user-specified input file and
~/Desktop/PaperBanana/contents - Do NOT read, write, or reference home directory dotfiles (~/.ssh, ~/.env, etc.)
- Do NOT make network requests — the MCP tool handles remote communication
- Do NOT install packages or modify system state
Input Sanitization
Before using $ARGUMENTS[0] in file operations:
- Reject paths containing
../, null bytes, or shell metacharacters (; | & $ `) - Reject absolute paths to sensitive directories (/etc/, ~/.ssh/, ~/.aws/, ~/.gnupg/)
- Verify the file exists before reading
Procedure
- 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
paperbanana:generate_diagramwith:
source_context: the text content read from the filecaption: the figure captioniterations: 3 (default)
- After generation, list and read all files in the
~/Desktop/PaperBananafolder (including any subfolders) to show the full iterative history — previous versions, metadata, intermediate outputs, etc. # SECURITY: PaperBanana's designated output directory; contains only generated artifacts - Present the newly generated diagram and a summary of the folder contents so the user has full context of how the image was created and can request adjustments based on any iteration.
Output Format
Present the generated diagram with a summary of parameters used (caption, iterations) and the full contents listing of ~/Desktop/PaperBanana/.
CLI Fallback
If the MCP tool is not available, fall back to the CLI:
Example
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/generate-diagram/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dtsong/claude-code-windows-setup/generate-diagram)