Imagegenskill

From aipoch/medical-research-skills · View interactive version

Imagegenskill is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Generate renderable, scientific-style SVG graphics directly from natural-language requirements (no image models). Use when users ask for an image/picture/scientific diagram/visualization poster or explicitly request SVG output for web-embeddable vector graphics.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

When to Use

Key Features

Dependencies

Note: No third-party Python packages are specified in the provided documentation. If scripts/svg_gen.py imports external libraries, add them here with exact versions.

Example Usage

# 1) Create the brief (UTF-8)
mkdir -p input
cat > input/brief.txt << 'EOF'
Scientific poster-style SVG: "Graph topology in latent space".
Include a calm lab-atlas aesthetic, visible grid + network + waveform layers,
and a few symbol rings. Use restrained colors, high text readability.
Keywords: latent space, manifold, spectral bands, topology.
EOF

# 2) (Optional) Edit configuration at the top of the generator script
#    - STYLE (lab-atlas | signal-loom | lattice-field)
#    - canvas width/height
#    - density parameters (node_count, noise_points, band_count, ring_density)
# Example:
# sed -i 's/^STYLE = .*/STYLE = "lab-atlas"/' scripts/svg_gen.py

# 3) Run generation
python scripts/svg_gen.py

# 4) View output
# Primary output directory:
ls -la output/svggen/
# Quick preview file:
# open output/svggen/latest.svg   (macOS)
# xdg-open output/svggen/latest.svg (Linux)
# start output/svggen/latest.svg  (Windows)

Expected outputs:

Implementation Details

Workflow

  1. Write requirements to input/brief.txt (UTF-8).
  2. Adjust the configuration section at the top of scripts/svg_gen.py (e.g., STYLE, canvas dimensions, density parameters).
  3. Run python scripts/svg_gen.py.
  4. Open output/svggen/latest.svg to inspect the result.

Prompt / Brief Guidelines

Composition & Quality Criteria

Tuning / Troubleshooting Parameters

Primary Entry Point

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.