Borrowing it
Nothing to install: this file belongs to Guo-Chenxu/paper-agent. 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/Guo-Chenxu/paper-agent/main/.claude/skills/image-gen/SKILL.mdgit clone --depth 1 https://github.com/Guo-Chenxu/paper-agentWrote 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/guo-chenxu/paper-agent/image-gen)<a href="https://agentmods.dev/skills/guo-chenxu/paper-agent/image-gen"><img src="https://agentmods.dev/badge/skills/guo-chenxu/paper-agent/image-gen/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/guo-chenxu/paper-agent/image-gen"><img src="https://agentmods.dev/badge/skills/guo-chenxu/paper-agent/image-gen.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.00048 | $0.00597 |
| Opus 5.5 | $0.00019 | $0.00239 |
| Sonnet 5.5 | $0.00010 | $0.00119 |
| Haiku 4.5 | $0.00005 | $0.00060 |
Grade A, and why
image-gen 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Image Generation Skill
When To Use
Use this skill when a paper or report needs generated visual material:
- Generate architecture diagrams, flowcharts, method illustrations, and other figures that need to be inserted into a paper.
- Add or redraw figures based on writing, reviewer, or human feedback.
- Save a generated image to
figures/and provide a same-name PDF.
Do not use this skill for experiment plots that should be produced from measured data. Those belong in the experiment/visualization code.
Configuration
The script reads model configuration from repository .env:
IMAGE_GEN_API_KEYIMAGE_GEN_BASE_URLIMAGE_GEN_MODELIMAGE_GEN_VENDOR
Supported vendor values:
gemini: calls Gemini-stylegenerateContentimage output.openaiorgpt-image: calls OpenAI-compatible/v1/images/generations.
For gpt-image, set for example:
IMAGE_GEN_VENDOR=gpt-image
IMAGE_GEN_MODEL=gpt-image-1
Workflow
- Write a precise prompt that includes the figure purpose, desired layout, labels, and academic style.
- Run the generator from the repository root.
- Verify both image and PDF outputs exist in
figures/. - Insert the PDF in LaTeX unless the template specifically requires raster images.
Example:
python .claude/skills/image-gen/scripts/generate_image.py \
--name fig_architecture \
--prompt "Create a clean academic architecture diagram for ... Use white background, vector-like style, and readable labels."
Expected outputs:
figures/fig_architecture.pngorfigures/fig_architecture.jpgfigures/fig_architecture.pdf
Script
scripts/generate_image.py: loads.env, calls the configured image model, saves the generated image underfigures/, then converts it to PDF.scripts/image2pdf.py: converts an existing generated image into a same-name PDF vector wrapper.
Required PDF conversion dependency:
python -m pip install img2pdf
Quality Checks
Before considering the figure complete:
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago First seen · 80 lines · 48 tokens per session scan A 23130e532974
image-gen is a skill published in the GitHub repository Guo-Chenxu/paper-agent (4 stars, last pushed 2d ago), licensed Apache-2.0. It adds 48 tokens to every session and 597 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
image-gen compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| image-genGuo-Chenxu/paper-agent | Skill | 4 | 2d ago | Apache-2.0 | A | 48 | Claude Code |
| instrument-data-to-allotropeanthropics/knowledge-work-plugins | Skill | 35k | 2d ago | Apache-2.0 | A | 123 | Claude Code |
| exploratory-data-analysisK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 83 | Claude Code |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 44 | Claude Code |
| phylogeneticsK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 71 | Claude Code, Codex |
| research-engineerdavila7/claude-code-templates | Skill | 33k | yesterday | MIT | A | 43 | Claude Code, Codex |
| mapping-to-snomedmaziyarpanahi/openmed | Skill | 5.8k | yesterday | Apache-2.0 | A | 205 | Claude Code |