A Claude Code skill for generating AI-rendered scientific figures for academic papers.
- Generates polished scientific illustrations (method overviews, conceptual diagrams, barrel/iceberg metaphors) via OpenAI-images-compatible endpoints
- Saves every iteration's prompt, request body, response, and PNG with timestamps for reproducibility
- Supports iterative prompt refinement with diff-able history
# Clone to Claude Code skills directory
mkdir -p ~/.claude/skills/scientific-figure
cp skills/scientific-figure/* ~/.claude/skills/scientific-figure/Set the required environment variable:
export IMAGE_API_KEY="your-api-key"Optional overrides:
| Variable | Default |
|---|---|
IMAGE_API_HOST |
vip.yi-zhan.top |
IMAGE_API_PATH |
/v1/images/generations |
IMAGE_API_MODEL |
gpt-image-2 |
IMAGE_API_SIZE |
1824x1024 |
After installation, Claude will invoke this skill when you ask to generate a scientific figure. The skill will:
- Help draft the prompt using the structured template
- Call the image generation endpoint
- Save all outputs to
reports/scientific_illustrations/
Apache License 2.0