jules: Skill for Claude Code

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

generate-image-openai is a skill for Claude Code from jonathanmalkin/jules. It costs 88 tokens per session (1,026 once invoked), scanned A, original, MIT.

An image-generation workflow for creating pictures with OpenAI image models, using quick drafts before a final version.

In plain words
What is it for?
Use it to create illustrations, scenes, and other images from written prompts.
Why use it?
It helps you refine an image idea through a few drafts before spending time on the final render.

Skill for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; positional $N argument.

This is jonathanmalkin/jules's own configuration. It tells Claude Code how to work on jules 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 jules configures →

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/jonathanmalkin/jules/generate-image-openai.svg)](https://agentmods.dev/skills/jonathanmalkin/jules/generate-image-openai)
Your own site
<a href="https://agentmods.dev/skills/jonathanmalkin/jules/generate-image-openai"><img src="https://agentmods.dev/badge/skills/jonathanmalkin/jules/generate-image-openai.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,026 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00088 $0.01026
Opus 5 $0.00044 $0.00513
Sonnet 5 $0.00018 $0.00205
Haiku 4.5 $0.00009 $0.00103

Measured 8d ago against content hash 436b5e81a146, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

generate-image-openai 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 8d 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.

.claude/skills/generate-image-openai/SKILL.md · 107 lines

How it starts

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

OpenAI Image Generation — Iterative Workflow

Two-phase workflow: fast drafts for iteration, high-quality final render on approval.

Cost per successful session: ~$0.21 (3 draft iterations + 1 final render)


Phase 1: Clarify Before Generating

Before touching the script, ask targeted questions to nail the prompt. Typical clarifiers:

  • Subject/scene: What's in the image? Who or what is the focus?
  • Style: Photorealistic, illustration, watercolor, vector, cinematic, cartoon?
  • Composition: Wide shot, close-up, overhead, centered?
  • Mood/lighting: Warm/cool, dramatic/bright, moody/clean?
  • Background: Specific setting or transparent/solid color?
  • Text content: Any words/labels to include?
  • Aspect ratio: Square (1:1), landscape (3:2), portrait (2:3)?

Don't over-ask — 2-3 targeted questions if the prompt is ambiguous. Clear prompts skip directly to generation.


Phase 2: Draft Iterations

Model: gpt-image-1-mini at high quality — fast (~10s), good quality, cheap ($0.052/image)

.claude/scripts/generate-image.sh "<prompt>" [output_dir] [filename]
# Uses defaults: model=gpt-image-1-mini, quality=high, size=auto

After each generation:

  1. Read the saved PNG with the Read tool to view it
  2. Assess against the user's intent — composition, style, accuracy
  3. Note what's working and what needs refinement
  4. Adjust the prompt and regenerate (target 2-3 iterations max)

If the draft is clearly far off (wrong style, wrong subject), surface that before burning more iterations — a prompt restart is cheaper than 3 bad drafts.


Phase 3: Present for Approval

After 2-3 draft iterations, present to [Your Name]:

  • Display the best draft
  • Note what changed across iterations
  • Identify any remaining gaps

Two outcomes:

  • Approved → proceed to Phase 4 (final render)
  • Major changes needed → restart from Phase 1 with new direction

Phase 4: Final Render

On approval, generate the high-quality final:

Read the full file on GitHub · 107 lines

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. 8d ago First seen · 107 lines · 88 tokens per session scan A 436b5e81a146

Subscribe to this mod's changes

generate-image-openai is a skill published in the GitHub repository jonathanmalkin/jules (65 stars, last pushed 3mo ago), licensed MIT. It adds 88 tokens to every session and 1,026 once invoked, about $0.0004 per session on Opus 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-30.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens