imagegen
यह क्या करती है
यह स्किल बिटमैप इमेज बनाती या बदलती है, जैसे चित्र, फ़ोटो, टेक्सचर और मॉकअप। यह उन लोगों के लिए है जिन्हें कोड या वेक्टर ड्रॉइंग के बजाय तस्वीर वाली फ़ाइलें चाहिए।
कब इस्तेमाल करें
- ✓जब आप किसी प्रोजेक्ट के लिए नया चित्र, फ़ोटो जैसी इमेज या टेक्सचर बनवाना चाहते हैं।
- ✓जब आप किसी मौजूदा इमेज को संदर्भ से बदलवाना या उसके वेरिएशन बनवाना चाहते हैं।
- ✓जब आपको कटआउट के लिए पारदर्शी बैकग्राउंड वाली इमेज चाहिए।
Skill का लिंक
https://github.com/openai/skills/blob/main/skills/.system/imagegen/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी वेबसाइट हेडर के लिए कॉफ़ी कप का एक फ़्लैट चित्र बनाइए, जिसका बैकग्राउंड पारदर्शी हो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट डिफ़ॉल्ट रूप से बिल्ट-इन इमेज जनरेटर से चित्र बनाता या बदलता है, और परिणाम आपके Codex होम फ़ोल्डर में सेव होता है, जब तक आप कोई और जगह न चुनें।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Image Generation Skill
Generates or edits images for the current project (for example website assets, game assets, UI mockups, product mockups, wireframes, logo design, photorealistic images, or infographics).
Top-level modes and rules
This skill has exactly two top-level modes:
- Default built-in tool mode (preferred): built-in
image_gentool for normal image generation and editing. Does not requireOPENAI_API_KEY. - Fallback CLI mode (explicit-only):
scripts/image_gen.pyCLI. Use only when the user explicitly asks for the CLI path. RequiresOPENAI_API_KEY.
Within the explicit CLI fallback only, the CLI exposes three subcommands:
generateeditgenerate-batch
Rules:
- Use the built-in
image_gentool by default for all normal image generation and editing requests. - Never switch to CLI fallback automatically.
- If the built-in tool fails or is unavailable, tell the user the CLI fallback exists and that it requires
OPENAI_API_KEY. Proceed only if the user explicitly asks for that fallback. - If the user explicitly asks for CLI mode, use the bundled
scripts/image_gen.pyworkflow. Do not create one-off SDK runners. - Never modify
scripts/image_gen.py. If something is missing, ask the user before doing anything else.
Built-in save-path policy:
- In built-in tool mode, Codex saves generated images under
$CODEX_HOME/*by default. - Do not describe or rely on OS temp as the default built-in destination.
- Do not describe or rely on a destination-path argument (if any) on the built-in
image_gentool. If a specific location is needed, generate first and then move or copy the selected output from$CODEX_HOME/generated_images/.... - Save-path precedence in built-in mode:
- If the user names a destination, move or copy the selected output there.
- If the image is meant for the current project, move or copy the final selected image into the workspace before finishing.
- If the image is only for preview or brainstorming, render it inline; the underlying file can remain at the default
$CODEX_HOME/*path.
- Never leave a project-referenced asset only at the default
$CODEX_HOME/*path. - Do not overwrite an existing asset unless the user explicitly asked for replacement; otherwise create a sibling versioned filename such as
hero-v2.pngoritem-icon-edited.png.
Shared prompt guidance for both modes lives in references/prompting.md and references/sample-prompts.md.
Fallback-only docs/resources for CLI mode:
references/cli.mdreferences/image-api.mdreferences/codex-network.mdscripts/image_gen.py
When to use
- Generate a new image (concept art, product shot, cover, website hero)
- Generate a new image using one or more reference images for style, composition, or mood
- Edit an existing image (inpainting, lighting or weather transformations, background replacement, object removal, compositing, transparent background)
- Produce many assets or variants for one task
When not to use
- Extending or matching an existing SVG/vector icon set, logo system, or illustration library inside the repo
- Creating simple shapes, diagrams, wireframes, or icons that are better produced directly in SVG, HTML/CSS, or canvas
- Making a small project-local asset edit when the source file already exists in an editable native format
- Any task where the user clearly wants deterministic code-native output instead of a generated bitmap
Decision tree
Think about two separate questions:
- Intent: is this a new image or an edit of an existing image?
- Execution strategy: is this one asset or many assets/variants?
Intent:
- If the user wants to modify an existing image while preserving parts of it, treat the request as edit.
- If the user provides images only as references for style, composition, mood, or subject guidance, treat the request as generate.
- If the user provides no images, treat the request as generate.
Built-in edit semantics:
- Built-in edit mode is for images already visible in the conversation context, such as attached images or images generated earlier in the thread.
- If the user wants to edit a local image file with the built-in tool, first load it with built-in
view_imagetool so the image is visible in the conversation context, then proceed with the built-in edit flow. - Do not promise arbitrary filesystem-path editing through the built-in tool.
- If a local file still needs direct file-path control, masks, or oth
अक्सर पूछे जाने वाले सवाल
क्या इसके लिए API key चाहिए?
बिल्ट-इन टूल को नहीं चाहिए। अलग से दिया गया कमांड लाइन फ़ॉलबैक OPENAI_API_KEY माँगता है और तभी चलता है जब आप उसे माँगें।
इमेजें कहाँ सेव होती हैं?
डिफ़ॉल्ट रूप से वे आपके Codex होम फ़ोल्डर में सेव होती हैं।
क्या यह वेक्टर ग्राफ़िक्स या कोड बना सकती है?
नहीं। स्किल बिटमैप इमेज के लिए है, कोड या वेक्टर काम दूसरे टूल के लिए है।
जानकारी
लेखक का मूल विवरण
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.
repo: openai/skills
लोकप्रियता
- GitHub स्टार
- 28k
- रैंकिंग में स्थान
- #9863
- लाइसेंस
- —
- अपडेट की गई
- 28/10/2026
कमेंट
- …
इस repository की और skills
aspnet-core
28kयह आपके एजेंट को ASP.NET Core वेब ऐप बनाने, जांचने या अपग्रेड करने में मदद करती है, सही ऐप प्रकार चुनकर और .NET के लिए Microsoft के मौजूदा दिशानिर्देश मानकर।
chatgpt-apps
28kयह आपके एजेंट को ChatGPT ऐप बनाने में मदद करती है, जो MCP सर्वर को widget UI के साथ जोड़ता है, टूल डिज़ाइन, UI resources, metadata और लोकल सेटअप सहित।
cli-creator
28kयह आपके एजेंट को API दस्तावेज़ या स्क्रिप्ट से ऐसा कमांड-लाइन टूल बनाने में मदद करती है, जो किसी भी फ़ोल्डर से चले और स्थिर JSON लौटाए।
define-goal
28kयह आपके एजेंट को धुंधले इरादे को सफलता के मानदंड और दायरे वाले साफ़ लक्ष्य में बदलने में मदद करती है, काम शुरू होने से पहले।
मिलती-जुलती skills
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।