本文へ移動
cccskills
無料GitHub で公開

gpt-atelier

OpenAI GPT Image generation and editing (gpt-image-2, 1.5, 1, mini). Text-to-image, mask-based inpainting, multi-reference composition, multi-turn conversational editing via Responses API, streaming with partial images. This skill should be used when generating or editing images via OpenAI's image models, when near-perfect text rendering in images is needed, when mask-based region-aware editing is required, when multi-turn conversational image editing is desired, or when streaming progressive image delivery is needed. Complements nano-banana-pro (Gemini) as a parallel image generation backend.

インストール方法を見る

含まれるファイル(14)

  • SKILL.md8.8 KB
  • README.md5.0 KB
  • references/api-reference.md4.0 KB
  • references/compare-models-reference.md2.7 KB
  • references/prompting-guide.md6.5 KB
  • references/troubleshooting.md2.2 KB
  • scripts/compare_models.py10.9 KB
  • scripts/compose_images.py3.0 KB
  • scripts/converse_image.py7.7 KB
  • scripts/edit_image.py4.9 KB
  • scripts/generate_image.py2.8 KB
  • scripts/openai_images.py9.5 KB
  • scripts/stream_image.py4.7 KB
  • scripts/test_connection.py5.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

GPT Atelier

OpenAI GPT Image generation and editing. Wraps both the Image API (one-shot) and Responses API (multi-turn conversational) with 6 scripts covering generate, edit, compose, converse, stream, and test workflows.

Prerequisite: OPENAI_API_KEY environment variable.

Models

FlagModelStrengths
(default)gpt-image-2Reasoning-based, ~99% text rendering, up to 8 consistent images, 4K, streaming
--fastgpt-image-1.5Region-aware editing, 4x faster, cheaper
--minigpt-image-1-miniCheapest ($0.006/image low quality)

Quick Start

# Test connectivity
python3 scripts/test_connection.py --check-models

# Generate an image
python3 scripts/generate_image.py "A Minoan bull-leaper under golden light"

# Compare models side-by-side (HTML page)
python3 scripts/compare_models.py "A bronze seal stamp in Minoan style" --all --open

# Edit with mask
python3 scripts/edit_image.py "Replace the sky with a dramatic sunset" photo.png --mask sky_mask.png

# Compose from references
python3 scripts/compose_images.py "Create a gift basket containing these items" item1.png item2.png item3.png

# Multi-turn editing session
python3 scripts/converse_image.py

# Streaming with partial images
python3 scripts/stream_image.py "An ancient fresco being restored" --partials 3

Image API scripts share: --output DIR, --filename NAME, --quality low|medium|high, --format png|jpeg|webp, --fast, --mini. converse_image.py uses --orchestrator instead of --fast/--mini.

Core Workflows

1. Text-to-Image Generation

python3 scripts/generate_image.py "prompt" [options]
OptionDefaultDescription
--sizeautoWxH or preset: square, landscape, portrait, wide, 2k, 4k, 4k-portrait
--qualityhighlow, medium, high, auto
--n1Number of images (1-8)
--formatpngpng, jpeg (faster), webp
--compression—0-100 for jpeg/webp
--background—opaque, transparent, auto
--moderationautoauto, low
# Product photography
python3 scripts/generate_image.py \
  "High-end product photography of luxury watch on black marble, dramatic key light, f/5.6, commercial quality" \
  --size square --quality high

# Budget thumbnails
python3 scripts/generate_image.py "Quick sketch of a coffee cup" --mini --quality low

# Multiple variations
python3 scripts/generate_image.py "Logo design for a tech startup" --n 4 --size square

2. Image Editing

python3 scripts/edit_image.py "instruction" input.png [options]

Additional options: --mask, --images (extra references).

Auto-converts B&W masks to RGBA (requires Pillow: pip install Pillow).

# Region-aware edit with mask
python3 scripts/edit_image.py "Add a flamingo to the pool" lounge.png --mask pool_mask.png

# Full-image restyle
python3 scripts/edit_image.py "Convert to watercolor painting style" photo.jpg

# Edit with reference images
python3 scripts/edit_image.py "Replace the car with this bicycle" street.png --images bicycle.png

3. Multi-Reference Composition

python3 scripts/compose_images.py "instruction" img1.png img2.png [img3.png ...] [options]

Requires 2+ reference images. The model creates a new image incorporating all references.

python3 scripts/compose_images.py \
  "Create a mood board combining these design elements" \
  texture.png palette.png sketch.png --size landscape

4. Multi-Turn Conversational Editing (Responses API)

python3 scripts/converse_image.py [prompt] [options]

Without a prompt, enters interactive REPL. Maintains conversation state via previous_response_id.

# Interactive session
python3 scripts/converse_image.py --auto-save
> A cyberpunk street scene at night
> Now add neon signs with Japanese text
> Make it rain and add reflections
> /save final_scene

# Single-shot
python3 scripts/converse_image.py "Design a coffee brand logo" --output ./logos

Interactive commands: /save, /action auto|generate|edit, /model, /clear, /history, /help, /quit.

Attach images with @path: @logo.png Add this logo to the top-right corner.

Additional options:

FlagOrchestratorTradeoff
(default)gpt-5.4Standard quality, fastest
--thinkinggpt-5.4-thinkingBetter composition for complex scenes, slower
--progpt-5.4-proHighest quality, most expensive
--orchestrator MODELanyManual override

5. Model Comparison (HTML Page)

python3 scripts/compare_models.py "A Minoan bull-leaper" --open
python3 scripts/compare_models.py "prompt" --all --open
python3 scripts/compare_models.py "" --list-models

Generates the same prompt across multiple models and outputs a dark-themed HTML comparison page. See references/compare-models-reference.md for full options.

6. Streaming with Partial Images

python3 scripts/stream_image.py "prompt" --partials N [options]

Outputs partial images as they generate, then the final image.

# Stream with 3 progressively sharper partials
python3 scripts/stream_image.py "A detailed architectural drawing" --partials 3 --save-partials

Additional option: --save-partials to save intermediate images.

Prompting Quick-Hits

  1. Lead with scene/style, not subject. First words carry highest visual weight. Specify intended use (ad, UI mockup, editorial) so the model picks the right polish level.
  2. Always double-quote literal text. "HELLO WORLD" engages the high-accuracy text rendering engine.
  3. Pixel dimensions in prompt. For custom aspect ratios, append "Output in exactly WxH (R:R ratio) resolution" — the API size param alone is unreliable. Done automatically by inject_size_hint() for gpt-image-2.
  4. Use --thinking for complex scenes. The orchestrator model matters — Thinking models produce significantly better multi-element compositions.
  5. Generate fresh, don't edit. Reference-image editing on gpt-image-2 produces yellow tint and poor prompt adherence. For design-final work, generate from scratch.

See references/prompting-guide.md for full details.

When to Use GPT Atelier vs Nano Banana Pro

TaskGPT AtelierNano Banana Pro
Text rendering (complex, non-Latin)BestGood
Mask-based inpaintingNative, low driftHigher drift (~40%)
Reference-image editingYellow tint risk — use --fastBetter fidelity
Multi-turn editing with stateResponses APIMulti-turn chat
PhotorealismExcellentExcellent
Cinematic digital paintingGoodBest
UI mockups / screenshotsBestGood
Multi-image consistencyUp to 8/promptUp to 14 references
Streaming partial deliveryNativeNot available
Dark/artistic themesStricter policyMore permissive
Budget/volume$0.006/img (mini low)Gemini pricing
Arbitrary aspect ratiosAny (16px multiples)10 presets

Cost Control

Start with --quality low ($0.006/image) for ideation. Graduate to medium ($0.05) for review, high ($0.21) for final assets. Use --fast for cheaper generation, --mini for maximum cost savings. Use --format jpeg for faster response times.

Script Reference

ScriptPurposeAPI
generate_image.pyText-to-imageImage API
edit_image.pyEdit with mask/referencesImage API
compose_images.pyMulti-reference compositionImage API
converse_image.pyMulti-turn editingResponses API
compare_models.pySide-by-side model comparison (HTML)Image API
stream_image.pyStreaming with partialsImage API
test_connection.pyConnectivity checkModels API

Reference Documentation

FileContents
references/api-reference.mdFull parameter reference, pricing, size constraints
references/compare-models-reference.mdModel comparison script: options, examples, HTML output
references/prompting-guide.mdPrompt engineering patterns, text rendering, style keywords
references/troubleshooting.mdError codes, content policy, rate limits

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Search academic papers, build literature reviews, and synthesize research findings — combines Exa MCP (research_paper category, arxiv filtering) with arxiv-mcp-server for paper discovery, download, and deep analysis. Triggers on academic paper, literature review, research synthesis, arxiv, find papers, scholarly search.

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

This skill should be used when creating, auditing, or maintaining AGENTS.md files and Codex CLI configuration for any project—including initializing AGENTS.md for cross-agent compatibility (Codex, Cursor, Copilot, Devin, Jules, Amp, Gemini CLI), generating config.toml or .rules files, scaffolding .agents/skills/, converting CLAUDE.md to AGENTS.md, or auditing existing agent configs for bloat and staleness. Complementary to codex-orchestrator (which executes subagents; this skill creates the config files they consume).

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

Academic research skill for Biblical Hebrew, Semitic linguistics, cuneiform studies, and comparative Ancient Near Eastern research. Provides Sefaria API for Hebrew Bible, CDLI/ORACC for cuneiform databases, and web discovery via Omnisearch, Exa, Firecrawl, and Obscura for finding scholarly sources across JSTOR, Perseus, Persée, Google Scholar, and academia.edu. Triggers on Hebrew quotes, cuneiform, Sefaria, ANE research, Minoan, search for scholarship, find papers, literature review, scholarly search, academic search, Genesis/Tehom, Ugaritic, Talmudic sources, extract from PDF, OCR academic.

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

Build comprehensive ARCHITECTURE.md files following matklad's canonical guidelines — bird's-eye views, ASCII/Mermaid diagrams, codemaps, invariants, and layer boundaries. Triggers on document the architecture, create ARCHITECTURE.md, map this codebase, architectural overview.

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

Generate physically-based atmospheric scattering shaders — sky domes, planetary atmospheres, LUT-optimized pipelines, depth-aware post-processing. Four modes — sky-dome, atmosphere-post, planet, lut. Triggers on atmospheric scattering, sky shader, sunset rendering, planet atmosphere, Rayleigh scattering, Mie scattering, volumetric sky, sky dome, atmosphere post-processing, aerial perspective, transmittance LUT, sky rendering, realistic sky, planetary rendering.

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

tdimino のスキルをすべて見る

このスキルの問題を報告する