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.
curl -O https://raw.githubusercontent.com/jonathanmalkin/jules/main/.claude/skills/generate-image-openai/SKILL.mdgit clone --depth 1 https://github.com/jonathanmalkin/julesWrote 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/jonathanmalkin/jules/generate-image-openai)<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>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.00088 | $0.01026 |
| Opus 5 | $0.00044 | $0.00513 |
| Sonnet 5 | $0.00018 | $0.00205 |
| Haiku 4.5 | $0.00009 | $0.00103 |
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.
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:
- Read the saved PNG with the Read tool to view it
- Assess against the user's intent — composition, style, accuracy
- Note what's working and what needs refinement
- 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:
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.
- 8d ago First seen · 107 lines · 88 tokens per session scan A 436b5e81a146
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.
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.
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…
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.
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).
diagnostic-stem-delivery
Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.
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.