본문으로 건너뛰기
cccskills
무료GitHub에 공개

imgen

Azure OpenAI画像生成CLIツール (gpt-image-1.5 / gpt-5.1)。テキストから画像生成、画像のAI編集、画像の内容説明を行う。

Use when the user wants to (1) generate images using Azure OpenAI, (2) edit existing images with AI, (3) explain image contents. Triggers on "画像を生成", "画像を編集", "画像の説明", "generate an image", "edit this image", "describe this image", "imgenで".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구AzureOpenAI
설치 방법 보기

포함된 파일(1)

  • SKILL.md5.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

imgen - Azure OpenAI Image Generation CLI

How to Run

imgen is NOT globally installed. Use one of these methods:

# 開発モード(ソースから直接実行、.envを自動読み込み)
npm run dev --prefix /Volumes/Data/dev/imgen -- <command>

# npx でソースから実行(.envは自動読み込みされない)
npx tsx /Volumes/Data/dev/imgen/src/index.ts <command>

# npm パッケージとして実行(npm install -g @nogataka/imgen 済みの場合)
imgen <command>

以下の例では imgen と表記するが、実際は上記いずれかの方法で実行すること。

Quick Reference

imgen image gen "<prompt>" -q <quality> -s <size>    # 画像生成
imgen image edit <file> "<instruction>"               # 画像編集
imgen image explain <file> -l <lang>                  # 画像説明

Setup

環境変数または .env ファイルで Azure OpenAI の認証情報を設定する。

# 環境変数(最優先)
export AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com"
export AZURE_OPENAI_API_KEY="your-api-key"
export AZURE_OPENAI_DEPLOYMENT_NAME="gpt-5.1"
export AZURE_OPENAI_DEPLOYMENT_NAME_IMAGE="gpt-image-1.5"

.env ファイル探索順: cwd/.env → ~/.imgen/.env

VariableDescriptionDefault
AZURE_OPENAI_ENDPOINTAzure OpenAI resource endpoint(required)
AZURE_OPENAI_API_KEYAzure OpenAI API key(required)
AZURE_OPENAI_DEPLOYMENT_NAMEChat model deployment(required)
AZURE_OPENAI_DEPLOYMENT_NAME_IMAGEImage model deployment(required)
AZURE_OPENAI_API_VERSIONChat API version2024-02-15-preview
AZURE_OPENAI_IMAGE_API_VERSIONImage API version2025-04-01-preview

Image Generation

imgen image gen [options] <theme>
OptionValuesDefault
-s, --size1024x1024, 1536x1024, 1024x15361024x1024
-q, --qualitylow, medium, highhigh
-f, --formatpng, jpg, webppng
-p, --presetbuiltin preset name-
-c, --contextcontext file path (.md/.txt)-
-o, --outputoutput path (file or directory)auto
-d, --debugenable debug loggingfalse
--jsonJSON output formatfalse
--dry-runpreview settings without API callfalse

Recommended Settings

Use CaseQualitySize
Product photo, landscapehigh1536x1024
Illustration, icon, mascothigh1024x1024
Quick draft, prototypelow1024x1024
Portrait, verticalhigh1024x1536

Examples

imgen image gen "夕日の海辺の風景" -q high -s 1536x1024
imgen image gen "可愛い猫のマスコット" -p builtin:square
imgen image gen "ミニマルなロゴデザイン" -o logo.png
imgen image gen "complex scene" --dry-run

Image Editing

imgen image edit [options] <file> <prompt>

Edit instructions in natural language:

  • Background change: "背景を青空に変更"
  • Style transfer: "水彩画風に変換"
  • Object modification: "色を鮮やかに"

Supported input formats: .jpg, .jpeg, .png, .gif, .webp

OptionValuesDefault
-s, --size1024x1024, 1536x1024, 1024x15361024x1024
-f, --formatpng, jpg, webppng
-o, --outputoutput pathauto
--jsonJSON output formatfalse
--dry-runpreview settings without API callfalse

Examples

imgen image edit photo.jpg "背景を青空に変更"
imgen image edit portrait.png "アニメスタイルに変換" -s 1536x1024
imgen image edit photo.png "edit" --dry-run

Image Explanation

imgen image explain [options] <file>
OptionValuesDefault
-l, --langja, en, zh, ko, es, fr, de, it, ru, vija
-f, --formatmarkdown, jsonmarkdown
-c, --contextcontext info (text or .md/.txt file path)-
-o, --outputoutput file pathstdout

Examples

imgen image explain screenshot.png
imgen image explain photo.jpg -l en
imgen image explain chart.png -c "Q4 sales report" -f json

Builtin Presets

-p オプションで指定可能:

NameSizeQuality
builtin:square1024x1024high
builtin:landscape1536x1024high
builtin:portrait1024x1536high
builtin:draft1024x1024low
builtin:photo1536x1024high

Option Priority

CLI options > Preset values (-p) > Default values

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

pptx

무료

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nogataka/SlideKit302026년 3월 19일 업데이트

Generate HTML slide presentations (1 slide = 1 HTML file, 1280x720px) using Tailwind CSS, Font Awesome, and Google Fonts. Use when the user asks to create a new presentation deck or slide HTML files. Covers design guidelines, 43 layout patterns, component library, and PPTX conversion compatibility rules. Supports style selection (creative, elegant, modern, professional, minimalist) and theme selection (marketing, portfolio, business, technology, education).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nogataka/SlideKit302026년 3월 19일 업데이트

Convert PDF presentations to HTML slide templates using a visual reproduction approach. Pipeline: PDF → slide screenshots → Claude writes HTML matching each screenshot. Use when the user wants to convert a PDF to HTML slide templates, reproduce a presentation as HTML, or create reusable templates from existing decks. Triggers: 'pdf to html', 'convert pdf to template', 'reproduce this deck as html', 'create template from pdf'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nogataka/SlideKit302026년 3월 19일 업데이트

nogataka의 스킬 모두 보기

이 스킬의 문제 신고