image-gen

image-gen is a skill for Claude Code from oyi77/1ai-skills. It costs 47 tokens per session (1,753 once invoked), scanned B, original, MIT.

A guide to creating and editing images with AI systems such as Stable Diffusion, Midjourney, DALL-E, and ComfyUI.

In plain words
What is it for?
Use it to create marketing images, thumbnails, mockups, concept art, or edited images with techniques such as inpainting and outpainting.
Why use it?
It helps make image prompts more repeatable and gives structured methods for editing, controlling, and generating visual content.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the 1ai-skills plugin — 209 skills, 4 commands shipped together

Good fit Use it to create marketing images, thumbnails, mockups, concept art, or edited images with techniques such as inpainting and outpainting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oyi77/1ai-skills/image-gen
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 oyi77/1ai-skills --skill image-gen
Clone the repo
git clone --depth 1 https://github.com/oyi77/1ai-skills

Made for: Claude Code.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 209 skills, 4 commands.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/image-gen"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/image-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,753 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00047 $0.01753
Opus 5 $0.00023 $0.00877
Sonnet 5 $0.00009 $0.00351
Haiku 4.5 $0.00005 $0.00175

Measured 7d ago against content hash 92c9a6cbcc7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

image-gen scanned grade B with 2 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 7d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

response = requests.post( "https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v1-0/text-to-image",

Makes network callslowCapability

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

response = requests.post(
content/image-gen/SKILL.md · 264 lines

How it starts

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

Overview

AI image generation creates images from text prompts using diffusion models. This skill covers prompt engineering for consistent results, inpainting/outpainting for editing, ControlNet for precise control, and API integration for production workflows.

Capabilities

  • Generate images from text prompts (DALL-E, Stable Diffusion, Midjourney)
  • Engineer prompts with positive/negative prompts, style modifiers, and weights
  • Edit existing images with inpainting and outpainting
  • Use ControlNet for pose, depth, and edge-guided generation
  • Batch generate images for content pipelines
  • Integrate via API (OpenAI, Stability AI, Replicate)
  • Set up local generation with ComfyUI or Automatic1111

When to Use

Trigger phrases:

  • "image gen"

  • "AI image generation — Stable Diffusion, Midjourney, DALL-E, ComfyUI"

  • Creating marketing visuals, thumbnails, social media images

  • Generating product mockups and concept art

  • Building content pipelines that need custom images

  • Editing photos (remove backgrounds, change styles)

  • Creating consistent character/brand imagery

When NOT to Use

  • Task is about content strategy, not creation (use strategy skills)
  • Task is about content distribution (use distribution skills)
  • You need to analyze content performance (use analytics skills)
  • Task is about content moderation (use moderation tools)
  • You don't have content guidelines
  • Task requires domain expertise (consult experts)

Pseudo Code

The image-gen workflow follows a standard pipeline pattern.

Core flow:

# image-gen primary flow
input = prepare(raw_data)
result = process(input, config={comfyui, controlnet, dall, diffusion, engineering})
validate(result)
deliver(result)

Error handling:

on error:
  log(error_details)
  retry_with_backoff(max=3)
  if still_failing: alert_and_escalate()

Core Workflow

# image-gen primary flow
input = prepare(raw_data)
result = process(input, config={comfyui, controlnet, dall, diffusion, engineering})
validate(result)
deliver(result)

Read the full file on GitHub · 264 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. 7d ago First seen · 264 lines · 47 tokens per session scan B 92c9a6cbcc7b

Subscribe to this mod's changes

image-gen is a skill published in the GitHub repository oyi77/1ai-skills (12 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 1,753 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

automated-comic-creator

Automated comic creator that transforms text content into educational comics with multiple visual styles including dramatic, warm, shoujo, and ohmsha. Use when user asks to create comics, knowledge comics, educational manga, biography comics, or generate automated comic pages from articles or stories.

refly-ai/refly-skills · 63 tokens

hive.image-generation

Required before calling imagegenerate. Create and edit images from a prompt — generate an image, make a picture / logo / illustration / icon / banner / poster / thumbnail / hero image / mockup / product shot / social graphic, or edit / restyle / combine existing images from reference images. Uses OpenAI gpt-image-2…

aden-hive/hive · 149 tokens

music-search

Search cloud drives for downloadable music resources (songs, albums, lossless audio). Use this skill when the user wants to download a specific song or album. Do NOT use for general music information, lyrics, or recommendations.

netease-youdao/LobsterAI · 47 tokens

clipify

A video-editing workflow that finds notable moments in a long English video and turns them into separate short clips. It can change widescreen video to vertical format and add word-by-word captions.

ZJU-REAL/Easel · 131 tokens

ecom-details-image

A planning tool for e-commerce product visuals, including main-image concepts, scene ideas, detail-page directions, and prompts for image-generation systems.

ZJU-REAL/Easel · 101 tokens

xhs-note-creator

A content-production workflow for Xiaohongshu, a Chinese social platform for visual posts and product recommendations. It creates post copy, hashtags, image-card sets, or short-video storyboards from a topic and optional source material.

ZJU-REAL/Easel · 125 tokens