This wraps OpenAI's image generation API in a Python script with sensible defaults and Chinese language triggers. You get access to gpt-image-2 and the earlier models, with options for different aspect ratios, transparent backgrounds, and multi-image editing where you can feed in up to three reference images. The script handles both generation and editing modes, saves files locally, and supports custom API endpoints if you're running through Azure or a proxy. It's straightforward if you already have an OpenAI key and just want Claude to generate images without switching contexts. The bilingual triggers are a nice touch for international teams.

skills.sh installs
150
GitHub stars
1.7K
last updated
Apr 25, 2026

Install

$ npx -y skills add feiskyer/claude-code-settings --skill gpt-image-skill --agent claude-code

Installs into .claude/skills of the current project.

Files

GPT Image Skill

Generate or edit images using OpenAI's GPT Image models through a bundled Python script.

Requirements

  1. OPENAI_API_KEY: Must be configured in ~/.gpt-image.env or export OPENAI_API_KEY=<your-key>
  2. OPENAI_API_BASE (optional): Custom API base URL for compatible endpoints (e.g. Azure OpenAI, proxies). Set in ~/.gpt-image.env or export it.
  3. Python3 with dependencies: openai, Pillow. Install via python3 -m pip install -r ${CLAUDE_SKILL_DIR}/requirements.txt if not installed yet.
  4. Executable: ${CLAUDE_SKILL_DIR}/gpt_image.py

Instructions

For image generation

  1. Ask the user for:

    • What they want to create (the prompt)
    • Desired size (optional, defaults to 1024x1024)
    • Output filename (optional, auto-generates UUID-based name if not specified)
    • Model preference (optional, defaults to gpt-image-2)
    • Quality (optional, defaults to auto)
    • Number of images (optional, defaults to 1)
  2. Run the script:

    python3 ${CLAUDE_SKILL_DIR}/gpt_image.py --prompt "description of image" --output "filename.png"
    
  3. Show the user the saved image path when complete.

For image editing

Sponsors

Details

Repository
github.com/feiskyer/claude-code-settings
Categories
Backend & APIs, AI & Agent Building
License
MIT
First seen
Jun 11, 2026

More from feiskyer/claude-code-settings

All 15
1hoodini avataraws-agentcorehoodini/ai-agents-skillsBuild AI agents with AWS Bedrock AgentCore. Use when developing agents on AWS infrastructure, creating tool-use patterns, implementing agent orchestration, or i148skills.sh installs
2vm0-ai avatarscrapeninjavm0-ai/vm0-skillsScrapeNinja API for web scraping. Use when user mentions "ScrapeNinja", "scrape", "web scraping", or data extraction.147skills.sh installs
3rysweet avatarmcp-managerrysweet/amplihackConversational interface for managing MCP (Model Context Protocol) server configurations in Claude Code146skills.sh installs
4salesforcecommercecloud avatarb2c-docssalesforcecommercecloud/b2c-developer-toolingSearch and read B2C Commerce documentation using the b2c CLI. Covers Script API reference (dw.* classes/modules), Developer Center guides (Commerce API, PWA Kit145skills.sh installs
5hoodini avatarcloudflarehoodini/ai-agents-skillsBuild and deploy on Cloudflare's edge platform. Use when creating Workers, Pages, D1 databases, R2 storage, AI inference, or KV storage. Triggers on Cloudflare,144skills.sh installs
6webmaxru avatarenonic-content-migrationwebmaxru/enonic-agent-skillsGenerates Enonic XP scripts for bulk content operations — creating, updating, querying, migrating, and transforming content using lib-content and lib-node APIs.143skills.sh installs