claude-scientific-writer: Skill for Claude Code

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

generate-image is a skill for Claude Code from K-Dense-AI/claude-scientific-writer. It costs 81 tokens per session (2,295 once invoked), scanned A, original, MIT.

Instructions and a script for generating or editing images through OpenRouter, a service that provides access to several AI image models.

In plain words
What is it for?
Use it for photos, illustrations, artwork, logos, concept images, and image edits; it requires an OpenRouter API key.
Why use it?
It gives developers one workflow for creating visual assets or modifying reference images.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: built for openclaw.

This is K-Dense-AI/claude-scientific-writer's own configuration. It tells Claude Code how to work on claude-scientific-writer 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 claude-scientific-writer configures →

About the project

Claude Scientific Writer is an AI-assisted research and writing tool that searches literature and produces documents such as scientific papers, reports, posters, grant proposals, and reviews with citations. Researchers and technical writers can use it as a Claude Code plugin, Python package, or command-line tool, with the catalogue entries defining agent workflows for it.

K-Dense-AI/claude-scientific-writer · 2,324 stars · on GitHub · k-dense.ai

Reuse

Borrowing it

Nothing to install: this file belongs to K-Dense-AI/claude-scientific-writer. 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/K-Dense-AI/claude-scientific-writer/main/.claude/skills/generate-image/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/K-Dense-AI/claude-scientific-writer

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-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/k-dense-ai/claude-scientific-writer/generate-image/github.svg)](https://agentmods.dev/skills/k-dense-ai/claude-scientific-writer/generate-image)
Your own site
<a href="https://agentmods.dev/skills/k-dense-ai/claude-scientific-writer/generate-image"><img src="https://agentmods.dev/badge/skills/k-dense-ai/claude-scientific-writer/generate-image/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-image

Your own site · 80×15
<a href="https://agentmods.dev/skills/k-dense-ai/claude-scientific-writer/generate-image"><img src="https://agentmods.dev/badge/skills/k-dense-ai/claude-scientific-writer/generate-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,295 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 173
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found 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.00081 $0.02295
Opus 5 $0.00041 $0.01148
Sonnet 5 $0.00016 $0.00459
Haiku 4.5 $0.00008 $0.00230

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

Security

Grade A, and why

generate-image scanned grade A with 1 finding 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate_image.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s https://openrouter.ai/api/v1/images \
.claude/skills/generate-image/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Image

Generate and edit images through OpenRouter's Image API, which reaches Gemini, FLUX, Seedream, Recraft, GPT-Image, and roughly thirty other models behind one request shape.

When to use

Use this skill for: photos and photorealistic images, illustrations and artwork, concept art, presentation and poster visuals, logos and vector marks, image editing, and compositing from reference images.

Use scientific-schematics instead for: flowcharts, circuit diagrams, biological pathways, system architecture diagrams, CONSORT diagrams, and other technical schematics.

API key

Generation requires an OpenRouter key. The script resolves it in this order:

  1. --api-key
  2. the OPENROUTER_API_KEY environment variable
  3. OPENROUTER_API_KEY= in a .env file, searching the working directory upward

If none is present the script exits with setup instructions. Keys: https://openrouter.ai/keys

--list-models needs no key.

Quick start

# Generate
python scripts/generate_image.py "A beautiful sunset over mountains"

# Edit an existing image
python scripts/generate_image.py "Make the sky purple" -i photo.jpg -o edited.png

Output defaults to generated_image.<ext>, where the extension follows the media type the model returned. The per-request cost is printed from usage.cost.

Choosing a model

Default: google/gemini-3.1-flash-image.

Need Model
General quality, prompt adherence google/gemini-3.1-flash-image
Highest Gemini tier google/gemini-3-pro-image
Photoreal control, reproducible seeds black-forest-labs/flux.2-pro
Cheap iteration black-forest-labs/flux.2-klein-4b
Several images per request bytedance-seed/seedream-4.5, openai/gpt-image-2
Vector / SVG output recraft/recraft-v4-vector
Transparent background openai/gpt-image-2 with --background transparent

references/models.md carries the full catalogue with per-model parameter support. The live listing is authoritative:

Read the full file on GitHub · 216 lines

Files

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.

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 · 216 lines · 81 tokens per session scan A 84eb8eca9d1f

Subscribe to this mod's changes

generate-image is a skill published in the GitHub repository K-Dense-AI/claude-scientific-writer (2,324 stars, last pushed 23d ago), licensed MIT. It adds 81 tokens to every session and 2,295 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

mind-map-generator

A tool for turning outlines or other text into visual mind maps, which show ideas as connected branches. It returns an image URL and an online editing link.

GongLingRui/screen-creative-skills · 39 tokens

agentic-webdesign-html-anything

Install and use html-anything — the agentic HTML editor where your local AI agent writes HTML and you ship it. 75 skills × 9 surfaces, BYOK, zero API key. Use when building magazine articles, keynote decks, resumes, posters, social cards, web prototypes, data reports, or Hyperframes videos with AI coding agents.

S3YED/appie-kit · 78 tokens

html-visual

Generate an interactive single-file HTML visualization — mockup, wireframe, ERD, flowchart, chart, slides, architecture diagram, dashboard, timeline, mindmap, kanban, or table. Use when the user wants something rendered rather than described: a UI mockup or wireframe, a database schema as an ERD, business logic as a…

2ykwang/agent-skills · 111 tokens

creative-problem-solving

Generate new ideas and breakthrough solutions using brainstorming, lateral thinking, SCAMPER, first principles reasoning, game theory, and strategic reframing. Use when the user asks to brainstorm, ideate, "think outside the box", generate alternatives, explore creative solutions, reframe a problem, or come up with…

viktorbezdek/skillstack · 122 tokens

narrative-video-director

A set of instructions for planning short narrative videos, including timed shots, dialogue, sound, and prompts for video models.

Onevium/awesome-claude-skills · 134 tokens

portrait-shoot-director

A Chinese-language photography planning skill for portrait, fashion, editorial, and series photography. It turns a creative brief into a shoot plan, storyboard, and complete prompt for each image.

Onevium/awesome-claude-skills · 117 tokens