imagine

imagine is a skill for Claude Code, Codex from hairyf/skills. It costs 94 tokens per session (879 once invoked), scanned A, original, from a forked repository, MIT.

A command-line workflow for generating or editing images with AI image services. It can save results to disk and keep context between related image requests.

In plain words
What is it for?
Use it to create or edit images, illustrations, icons, logos, stickers, sprites, textures, posters, and mockups from prompts.
Why use it?
It removes the need to switch manually between image tools for repeated generation and editing tasks. Saved files and session context make multi-step asset work easier to manage.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to create or edit images, illustrations, icons, logos, stickers, sprites, textures, posters, and mockups from prompts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hairyf/skills/imagine
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hairyf/skills --skill imagine
Clone the repo
git clone --depth 1 https://github.com/hairyf/skills

Made for: Claude Code, Codex.

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 imagine

README.md
[![agentmods](https://agentmods.dev/badge/skills/hairyf/skills/imagine/github.svg)](https://agentmods.dev/skills/hairyf/skills/imagine)
Your own site
<a href="https://agentmods.dev/skills/hairyf/skills/imagine"><img src="https://agentmods.dev/badge/skills/hairyf/skills/imagine/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 imagine

Your own site · 80×15
<a href="https://agentmods.dev/skills/hairyf/skills/imagine"><img src="https://agentmods.dev/badge/skills/hairyf/skills/imagine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 879 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 fork From a forked repository.
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.00094 $0.00879
Opus 5 $0.00047 $0.00439
Sonnet 5 $0.00019 $0.00176
Haiku 4.5 $0.00009 $0.00088

Measured 9d ago against content hash 711e0ccc140e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

imagine 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 9d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/imagine.js, scripts/lib/config.js, scripts/lib/env.js, …), 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.

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.

skills/imagine/SKILL.md · 57 lines

How it starts

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

Image Gen

Generate images through scripts/imagine.js, a zero-dependency Node.js CLI (Node 18+, no npm install) backed by multiple providers. It saves images to disk and prints the absolute paths.

Quick start

# Generate an image
node scripts/imagine.js "a retro synthwave poster, neon grid, 80s style" -o poster.png

# Edit an existing image
node scripts/imagine.js "add a red balloon in the sky" -e photo.png -o edited.png

# Multi-step session: keep context across calls (design first, then its three views)
node scripts/imagine.js "a cute robot mascot, front view, flat vector style" --session mascot -o design.png
node scripts/imagine.js "draw its three views (front, side, back) from the same design" --session mascot -o views.png

# Clean up the session cache when the workflow is done
node scripts/imagine.js --clear mascot

Model selection

Priority for general images: GPT Image 2 (gpt-image-2) → Nano Banana (gemini-2.5-flash-image) → SiliconFlow Qwen-Image (Qwen/Qwen-Image) → OpenAI GPT Image (gpt-image-1). When a provider has no API key, fall back to the next configured one.

Asset Recommended models (priority order)
Images / posters gpt-image-2gemini-2.5-flash-imageQwen/Qwen-Imagegpt-image-1
Stickers / icons / logos Ideogram 3.0 (transparent) → gpt-image-1.5 / gpt-image-2 with --background transparent -f png → FLUX.2 pro
Seamless textures Z-Image Turbo Tiling (fal.ai) → FLUX.2 pro → any strong model with a strict tiling prompt

Specialist models outside the script's providers (Ideogram, fal tiling) are called through their own APIs; imagine.js covers OpenAI, SiliconFlow, Gemini, and OpenAI-compatible relays.

Key workflows

  • Transparent assets: --background transparent -f png (never jpeg); phrase stickers as "die-cut sticker, thick white border, bold clean shapes".
  • Seamless textures: include "seamless, tileable, top-down, flat uniform lighting, no shadows, edges wrap perfectly".
  • Text in images: GPT Image 2 is best for CJK/multilingual text; keep text short and quoted.
  • Aspect ratio: Gemini via --aspect 16:9; OpenAI/SiliconFlow via -s WxH (Qwen native sizes like 1328x1328, 1664x928).
  • Iterate cheaply: draft with Qwen/Qwen-Image / Nano Banana or -q low, render finals on gpt-image-2 with -q high; --seed for reproducible output.

Read the full file on GitHub · 57 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. 9d ago First seen · 57 lines · 94 tokens per session scan A 711e0ccc140e

Subscribe to this mod's changes

imagine is a skill published in the GitHub repository hairyf/skills (25 stars, last pushed 29d ago), licensed MIT. It adds 94 tokens to every session and 879 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.

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