[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EMB2TW9NVXZHPYT2VFYFTP":3,"skill-same:01M7EMB2TW9NVXZHPYT2VFYFTP":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7EMB2TW9NVXZHPYT2VFYFTP","imagegen",null,"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 the agent 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\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.","marvinli001\u002Fwevir","marvinli001","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F44795725?v=4","01M7EMAAB41ZKD1BDB7G92J6D7","Nian Hoihan","01M7EMAABSTYSYJ1341QEEW5G7",9,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fskills\u002Fimagegen\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fskills\u002Fimagegen\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: imagegen\ndescription: \"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 the agent 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\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.\"\nmetadata:\n  short-description: Generate and edit images\n---\n\n\u003C!--\nSPDX-License-Identifier: Apache-2.0\nCopyright 2025 OpenAI\nWevir built-in skill. Adapted from openai\u002Fcodex, commit 092d3acd6bec3e3a14bdc7e7a2810ab628ab759d,\ncodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fimagegen\u002FSKILL.md (Apache-2.0; see LICENSE.txt). Changes: the tool is Wevir's\n`wevir_image_generate` (Codex's own `image_gen` where that is the tool listed); the Python CLI fallback, its\ndependencies and the OPENAI_API_KEY setup are removed because Wevir's Host holds the provider key; edits take local\nfile paths; the save-path policy uses Wevir's generated-images folder; gpt-image-2 parameter guidance follows the\ntool's arguments.\n-->\n\n# Image Generation Skill\n\nGenerates or edits images for the current project (for example website assets, game assets, UI mockups, product mockups, wireframes, logo design, photorealistic images, or infographics).\n\n## Which tool\n\nUse whichever image tool is in your tool list:\n\n- **`wevir_image_generate`** (Wevir's app tool). It appears when the session's provider has image models configured (the `gpt-image-2` family or a compatible model). Wevir calls the provider with its stored key; never ask the user for an API key.\n- **`image_gen`** (Codex's built-in tool). It appears in sessions signed in with ChatGPT. Follow the `image_gen` notes below where they differ.\n\nIf neither tool is listed, do not write scripts, call an image API yourself, or ask for an API key. Tell the user that image generation needs an image model: add one (for example `gpt-image-2`) to an OpenAI or OpenAI-compatible provider in Settings → Providers, then use that provider for the session.\n\nRules:\n- If the tool fails, report the error. Retry only when the cause is clear and fixable (for example an unsupported size or option the user did not require); otherwise ask the user.\n- The word `batch` does not change the tool. For many assets, issue one call per requested asset; use `n` only for variants of one prompt.\n- Never silently switch to a different image model than the one the user asked for, or from `gpt-image-2` to an older model. Ask first unless the user named that model.\n\n## `wevir_image_generate` arguments\n\n- `prompt` (required): the full prompt; use the prompt schema below.\n- `images`: local file paths, absolute or relative to the session folder, up to 16. When given, the call is an **edit** of these images; they can also serve as references for style, composition, or subjects. Refer to them in the prompt by index (`Image 1`, `Image 2`) in the order passed.\n- `mask`: PNG with an alpha channel, edit only. Transparent pixels mark the area to change. Masking is prompt-guided; exact shapes are not guaranteed.\n- `size`: `auto` or `WIDTHxHEIGHT` (see `references\u002Fimage-api.md` for the limits).\n- `quality`: `low`, `medium`, `high`, or `auto`. Use `low` for fast drafts and quick iterations; `medium`, `high`, or `auto` for final assets, dense text, diagrams, identity-sensitive edits, or large outputs.\n- `background`: `auto`, `opaque`, or `transparent` (see \"Transparent image requests\").\n- `n`: 1–4 variants of the same prompt.\n- `model`: one of the provider's image models; omit to use the provider's first image model.\n- `outputFormat`: `png` (default), `jpeg`, or `webp`. Transparency needs `png` or `webp`.\n- `name`: file name stem for the saved images, short and descriptive (`hero-mug`, `item-icon-sword`).\n\nThe tool shows the images inline to the user and returns the absolute paths of the saved files plus the model used. To iterate on a result, pass its returned path in `images`.\n\n## Save-path policy\n\n- Wevir saves generated images under its data folder (`generated-images\u002F\u003Csession>\u002F`). That folder is Wevir's, not the project's.\n- Do not rely on a destination argument; there is none. If a specific location is needed, generate first, then copy the selected output.\n- Save-path precedence:\n  1. If the user names a destination, copy the selected output there.\n  2. If the image is meant for the current project, copy the final selected image into the workspace before finishing.\n  3. If the image is only for preview or brainstorming, leave it where Wevir saved it; the user already sees it inline.\n- Never leave a project-referenced asset only in Wevir's generated-images folder.\n- Do not overwrite an existing asset unless the user explicitly asked for replacement; otherwise create a sibling versioned filename such as `hero-v2.png` or `item-icon-edited.png`.\n\n## `image_gen` notes (Codex's built-in tool)\n\n- `image_gen` takes a prompt; it does not expose `size`, `quality`, `background`, masks, output format, or paths. Do not invent those arguments.\n- It edits images that are visible in the conversation (attachments or earlier results). To edit a local file, first load it with `view_image`, then proceed with the edit. Do not promise arbitrary file-path editing or masks through it.\n- It saves images under `$CODEX_HOME\u002Fgenerated_images\u002F...`; apply the save-path policy above to that folder.\n- For transparent images, ask it for a genuinely transparent background and preserve the generated alpha.\n\nShared prompt guidance lives in `references\u002Fprompting.md` and `references\u002Fsample-prompts.md`. Model and size limits for `wevir_image_generate` are in `references\u002Fimage-api.md`.\n\n## When to use\n- Generate a new image (concept art, product shot, cover, website hero)\n- Generate a new image using one or more reference images for style, composition, or mood\n- Edit an existing image (inpainting, lighting or weather transformations, background replacement, object removal, compositing, transparent background)\n- Produce many assets or variants for one task\n\n## When not to use\n- Extending or matching an existing SVG\u002Fvector icon set, logo system, or illustration library inside the repo\n- Creating simple shapes, diagrams, wireframes, or icons that are better produced directly in SVG, HTML\u002FCSS, or canvas\n- Making a small project-local asset edit when the source file already exists in an editable native format\n- Any task where the user clearly wants deterministic code-native output instead of a generated bitmap\n\n## Decision tree\n\nThink about two separate questions:\n\n1. **Intent:** is this a new image or an edit of an existing image?\n2. **Execution strategy:** is this one asset or many assets\u002Fvariants?\n\nIntent:\n- If the user wants to modify an existing image while preserving parts of it, treat the request as **edit**.\n- If the user provides images only as references for style, composition, mood, or subject guidance, treat the request as **generate** with references.\n- If the user provides no images, treat the request as **generate**.\n\nEdit semantics for `wevir_image_generate`:\n- Pass the edit target and any supporting images as file paths in `images`. Earlier results can be passed by the paths the tool returned.\n- If an image is only visible in the conversation and you have no file path for it, ask the user for the file.\n- For edits, preserve invariants aggressively and save non-destructively by default.\n\nExecution strategy:\n- Produce many assets or variants by issuing one call per requested asset or variant.\n- For many distinct assets, do not use `n` as a substitute for separate prompts. `n` is for variants of one prompt; distinct assets need distinct calls.\n\nAssume the user wants a new image unless they clearly ask to change an existing one.\n\n## Workflow\n1. Check which image tool is available (see \"Which tool\").\n2. Decide the intent: generate or edit.\n3. Decide whether the output is preview-only or meant to be consumed by the current project.\n4. Decide the execution strategy: single asset vs repeated calls vs `n` variants of one prompt.\n5. Collect inputs up front: prompt(s), exact text (verbatim), constraints\u002Favoid list, and any input images.\n6. For every input image, label its role explicitly:\n   - reference image\n   - edit target\n   - supporting insert\u002Fstyle\u002Fcompositing input\n7. If the user asked for a photo, illustration, sprite, product image, banner, or other explicitly raster-style asset, use the image tool rather than substituting SVG\u002FHTML\u002FCSS placeholders. If the request is for an icon, logo, or UI graphic that should match existing repo-native SVG\u002Fvector\u002Fcode assets, prefer editing those directly instead.\n8. Augment the prompt based on specificity:\n   - If the user's prompt is already specific and detailed, normalize it into a clear spec without adding creative requirements.\n   - If the user's prompt is generic, add tasteful augmentation only when it materially improves output quality.\n9. Choose `size`, `quality`, `background`, and `outputFormat` from the intended use; leave them at their defaults when nothing calls for a change.\n10. Inspect outputs and validate: subject, style, composition, text accuracy, and invariants\u002Favoid items.\n11. Iterate with a single targeted change, then re-check.\n12. For preview-only work, leave the images where Wevir saved them.\n13. For project-bound work, copy the selected artifact into the workspace and update any consuming code or references.\n14. For batches or multi-asset requests, persist every requested deliverable final in the workspace unless the user explicitly asked to keep outputs preview-only. Discarded variants do not need to be kept unless requested.\n15. Always report the final saved path(s) for any workspace-bound asset(s), plus the final prompt or prompt set and the model used.\n\n## Transparent image requests\n\n- `gpt-image-2` does not support `background: transparent`. If the provider also lists a model that does (for example `gpt-image-1.5`), ask the user before switching to it unless they already named that model; then pass `model`, `background: transparent`, and `outputFormat` `png` or `webp`.\n- If no transparency-capable model is available, say so, and offer an image on a flat, uniform background that is easy to cut out instead. Do not claim the result is transparent.\n- With Codex's `image_gen`, ask for a genuinely transparent background and preserve its alpha.\n\n## Prompt augmentation\n\nReformat user prompts into a structured, production-oriented spec. Make the user's goal clearer and more actionable, but do not blindly add detail.\n\nTreat this as prompt-shaping guidance, not a closed schema. Use only the lines that help, and add a short extra labeled line when it materially improves clarity.\n\n### Specificity policy\n\nUse the user's prompt specificity to decide how much augmentation is appropriate:\n\n- If the prompt is already specific and detailed, preserve that specificity and only normalize\u002Fstructure it.\n- If the prompt is generic, you may add tasteful augmentation when it will materially improve the result.\n\nAllowed augmentations:\n- composition or framing hints\n- polish level or intended-use hints\n- practical layout guidance\n- reasonable scene concreteness that supports the stated request\n\nNot allowed augmentations:\n- extra characters or objects that are not implied by the request\n- brand names, slogans, palettes, or narrative beats that are not implied\n- arbitrary side-specific placement unless the surrounding layout supports it\n\n## Use-case taxonomy (exact slugs)\n\nClassify each request into one of these buckets and keep the slug consistent across prompts and references.\n\nGenerate:\n- photorealistic-natural — candid\u002Feditorial lifestyle scenes with real texture and natural lighting.\n- product-mockup — product\u002Fpackaging shots, catalog imagery, merch concepts.\n- ui-mockup — app\u002Fweb interface mockups and wireframes; specify the desired fidelity.\n- infographic-diagram — diagrams\u002Finfographics with structured layout and text.\n- scientific-educational — classroom explainers, scientific diagrams, and learning visuals with required labels and accuracy constraints.\n- ads-marketing — campaign concepts and ad creatives with audience, brand position, scene, and exact tagline\u002Fcopy.\n- productivity-visual — slide, chart, workflow, and data-heavy business visuals.\n- logo-brand — logo\u002Fmark exploration, vector-friendly.\n- illustration-story — comics, children’s book art, narrative scenes.\n- stylized-concept — style-driven concept art, 3D\u002Fstylized renders.\n- historical-scene — period-accurate\u002Fworld-knowledge scenes.\n\nEdit:\n- text-localization — translate\u002Freplace in-image text, preserve layout.\n- identity-preserve — try-on, person-in-scene; lock face\u002Fbody\u002Fpose.\n- precise-object-edit — remove\u002Freplace a specific element (including interior swaps).\n- lighting-weather — time-of-day\u002Fseason\u002Fatmosphere changes only.\n- background-extraction — transparent background \u002F clean cutout; see \"Transparent image requests\".\n- style-transfer — apply reference style while changing subject\u002Fscene.\n- compositing — multi-image insert\u002Fmerge with matched lighting\u002Fperspective.\n- sketch-to-render — drawing\u002Fline art to photoreal render.\n\n## Shared prompt schema\n\nUse the following labeled spec as prompt scaffolding:\n\n```text\nUse case: \u003Ctaxonomy slug>\nAsset type: \u003Cwhere the asset will be used>\nPrimary request: \u003Cuser's main prompt>\nInput images: \u003CImage 1: role; Image 2: role> (optional)\nScene\u002Fbackdrop: \u003Cenvironment>\nSubject: \u003Cmain subject>\nStyle\u002Fmedium: \u003Cphoto\u002Fillustration\u002F3D\u002Fetc>\nComposition\u002Fframing: \u003Cwide\u002Fclose\u002Ftop-down; placement>\nLighting\u002Fmood: \u003Clighting + mood>\nColor palette: \u003Cpalette notes>\nMaterials\u002Ftextures: \u003Csurface details>\nText (verbatim): \"\u003Cexact text>\"\nConstraints: \u003Cmust keep\u002Fmust avoid>\nAvoid: \u003Cnegative constraints>\n```\n\nNotes:\n- `Asset type` and `Input images` are prompt scaffolding, not tool arguments.\n- `Scene\u002Fbackdrop` refers to the visual setting. It is not the same as the tool's `background` argument, which controls output transparency.\n- Execution settings such as size, quality, transparency, masks, and output format go in the tool's arguments, not in the prompt text.\n\nAugmentation rules:\n- Keep it short.\n- Add only the details needed to improve the prompt materially.\n- For edits, explicitly list invariants (`change only X; keep Y unchanged`).\n- If any critical detail is missing and blocks success, ask a question; otherwise proceed.\n\n## Examples\n\n### Generation example (hero image)\n```text\nUse case: product-mockup\nAsset type: landing page hero\nPrimary request: a minimal hero image of a ceramic coffee mug\nStyle\u002Fmedium: clean product photography\nComposition\u002Fframing: wide composition with usable negative space for page copy if needed\nLighting\u002Fmood: soft studio lighting\nConstraints: no logos, no text, no watermark\n```\n\n### Edit example (invariants)\n```text\nUse case: precise-object-edit\nAsset type: product photo background replacement\nPrimary request: replace only the background with a warm sunset gradient\nConstraints: change only the background; keep the product and its edges unchanged; no text; no watermark\n```\n\n## Prompting best practices\n- Structure prompt as scene\u002Fbackdrop -> subject -> details -> constraints.\n- Include intended use (ad, UI mock, infographic) to set the mode and polish level.\n- Use camera\u002Fcomposition language for photorealism.\n- Only use SVG\u002Fvector stand-ins when the user explicitly asked for vector output or a non-image placeholder.\n- Quote exact text and specify typography + placement.\n- For tricky words, spell them letter-by-letter and require verbatim rendering.\n- For multi-image inputs, reference images by index and describe how they should be used.\n- For edits, repeat invariants every iteration to reduce drift.\n- Iterate with single-change follow-ups.\n- If the prompt is generic, add only the extra detail that will materially help.\n- If the prompt is already detailed, normalize it instead of expanding it.\n\nMore principles: `references\u002Fprompting.md`.\nCopy\u002Fpaste specs: `references\u002Fsample-prompts.md`.\n\n## Guidance by asset type\nAsset-type templates (website assets, game assets, wireframes, logo) are consolidated in `references\u002Fsample-prompts.md`.\n\n## gpt-image-2 guidance\n\n- `gpt-image-2` always uses high fidelity for image inputs; there is no fidelity setting.\n- Square images are typically fastest to generate. Use `1024x1024` for fast square drafts.\n- If the user asks for 4K-style output, use `3840x2160` for landscape or `2160x3840` for portrait.\n- `size` may be `auto` or `WIDTHxHEIGHT` if all constraints hold: max edge `\u003C= 3840px`, both edges multiples of `16px`, long-to-short ratio `\u003C= 3:1`, total pixels between `655,360` and `8,294,400`.\n\nPopular `gpt-image-2` sizes:\n- `1024x1024` square\n- `1536x1024` landscape\n- `1024x1536` portrait\n- `2048x2048` 2K square\n- `2048x1152` 2K landscape\n- `3840x2160` 4K landscape\n- `2160x3840` 4K portrait\n- `auto`\n\n## Reference map\n- `references\u002Fprompting.md`: prompting principles.\n- `references\u002Fsample-prompts.md`: copy\u002Fpaste prompt recipes.\n- `references\u002Fimage-api.md`: models, sizes, and argument limits for `wevir_image_generate`.\n","\u003C!--\nSPDX-License-Identifier: Apache-2.0\nCopyright 2025 OpenAI\nWevir built-in skill. Adapted from openai\u002Fcodex, commit 092d3acd6bec3e3a14bdc7e7a2810ab628ab759d,\ncodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fimagegen\u002FSKILL.md (Apache-2.0; see LICENSE.txt). Changes: the tool is Wevir's\n`wevir_image_generate` (Codex's own `image_gen` where that is the tool listed); the Python CLI fallback, its\ndependencies and the OPENAI_API_KEY setup are removed because Wevir's Host holds the provider key; edits take local\nfile paths; the save-path policy uses Wevir's generated-images folder; gpt-image-2 parameter guidance follows the\ntool's arguments.\n-->\n\n# Image Generation Skill\n\nGenerates or edits images for the current project (for example website assets, game assets, UI mockups, product mockups, wireframes, logo design, photorealistic images, or infographics).\n\n## Which tool\n\nUse whichever image tool is in your tool list:\n\n- **`wevir_image_generate`** (Wevir's app tool). It appears when the session's provider has image models configured (the `gpt-image-2` family or a compatible model). Wevir calls the provider with its stored key; never ask the user for an API key.\n- **`image_gen`** (Codex's built-in tool). It appears in sessions signed in with ChatGPT. Follow the `image_gen` notes below where they differ.\n\nIf neither tool is listed, do not write scripts, call an image API yourself, or ask for an API key. Tell the user that image generation needs an image model: add one (for example `gpt-image-2`) to an OpenAI or OpenAI-compatible provider in Settings → Providers, then use that provider for the session.\n\nRules:\n- If the tool fails, report the error. Retry only when the cause is clear and fixable (for example an unsupported size or option the user did not require); otherwise ask the user.\n- The word `batch` does not change the tool. For many assets, issue one call per requested asset; use `n` only for variants of one prompt.\n- Never silently switch to a different image model than the one the user asked for, or from `gpt-image-2` to an older model. Ask first unless the user named that model.\n\n## `wevir_image_generate` arguments\n\n- `prompt` (required): the full prompt; use the prompt schema below.\n- `images`: local file paths, absolute or relative to the session folder, up to 16. When given, the call is an **edit** of these images; they can also serve as references for style, composition, or subjects. Refer to them in the prompt by index (`Image 1`, `Image 2`) in the order passed.\n- `mask`: PNG with an alpha channel, edit only. Transparent pixels mark the area to change. Masking is prompt-guided; exact shapes are not guaranteed.\n- `size`: `auto` or `WIDTHxHEIGHT` (see `references\u002Fimage-api.md` for the limits).\n- `quality`: `low`, `medium`, `high`, or `auto`. Use `low` for fast drafts and quick iterations; `medium`, `high`, or `auto` for final assets, dense text, diagrams, identity-sensitive edits, or large outputs.\n- `background`: `auto`, `opaque`, or `transparent` (see \"Transparent image requests\").\n- `n`: 1–4 variants of the same prompt.\n- `model`: one of the provider's image models; omit to use the provider's first image model.\n- `outputFormat`: `png` (default), `jpeg`, or `webp`. Transparency needs `png` or `webp`.\n- `name`: file name stem for the saved images, short and descriptive (`hero-mug`, `item-icon-sword`).\n\nThe tool shows the images inline to the user and returns the absolute paths of the saved files plus the model used. To iterate on a result, pass its returned path in `images`.\n\n## Save-path policy\n\n- Wevir saves generated images under its data folder (`generated-images\u002F\u003Csession>\u002F`). That folder is Wevir's, not the project's.\n- Do not rely on a destination argument; there is none. If a specific location is needed, generate first, then copy the selected output.\n- Save-path precedence:\n  1. If the user names a destination, copy the selected output there.\n  2. If the image is meant for the current project, copy the final selected image into the workspace before finishing.\n  3. If the image is only for preview or brainstorming, leave it where Wevir saved it; the user already sees it inline.\n- Never leave a project-referenced asset only in Wevir's generated-images folder.\n- Do not overwrite an existing asset unless the user explicitly asked for replacement; otherwise create a sibling versioned filename such as `hero-v2.png` or `item-icon-edited.png`.\n\n## `image_gen` notes (Codex's built-in tool)\n\n- `image_gen` takes a prompt; it does not expose `size`, `quality`, `background`, masks, output format, or paths. Do not invent those arguments.\n- It edits images that are visible in the conversation (attachments or earlier results). To edit a local file, first load it with `view_image`, then proceed with the edit. Do not promise arbitrary file-path editing or masks through it.\n- It saves images under `$CODEX_HOME\u002Fgenerated_images\u002F...`; apply the save-path policy above to that folder.\n- For transparent images, ask it for a genuinely transparent background and preserve the generated alpha.\n\nShared prompt guidance lives in `references\u002Fprompting.md` and `references\u002Fsample-prompts.md`. Model and size limits for `wevir_image_generate` are in `references\u002Fimage-api.md`.\n\n## When to use\n- Generate a new image (concept art, product shot, cover, website hero)\n- Generate a new image using one or more reference images for style, composition, or mood\n- Edit an existing image (inpainting, lighting or weather transformations, background replacement, object removal, compositing, transparent background)\n- Produce many assets or variants for one task\n\n## When not to use\n- Extending or matching an existing SVG\u002Fvector icon set, logo system, or illustration library inside the repo\n- Creating simple shapes, diagrams, wireframes, or icons that are better produced directly in SVG, HTML\u002FCSS, or canvas\n- Making a small project-local asset edit when the source file already exists in an editable native format\n- Any task where the user clearly wants deterministic code-native output instead of a generated bitmap\n\n## Decision tree\n\nThink about two separate questions:\n\n1. **Intent:** is this a new image or an edit of an existing image?\n2. **Execution strategy:** is this one asset or many assets\u002Fvariants?\n\nIntent:\n- If the user wants to modify an existing image while preserving parts of it, treat the request as **edit**.\n- If the user provides images only as references for style, composition, mood, or subject guidance, treat the request as **generate** with references.\n- If the user provides no images, treat the request as **generate**.\n\nEdit semantics for `wevir_image_generate`:\n- Pass the edit target and any supporting images as file paths in `images`. Earlier results can be passed by the paths the tool returned.\n- If an image is only visible in the conversation and you have no file path for it, ask the user for the file.\n- For edits, preserve invariants aggressively and save non-destructively by default.\n\nExecution strategy:\n- Produce many assets or variants by issuing one call per requested asset or variant.\n- For many distinct assets, do not use `n` as a substitute for separate prompts. `n` is for variants of one prompt; distinct assets need distinct calls.\n\nAssume the user wants a new image unless they clearly ask to change an existing one.\n\n## Workflow\n1. Check which image tool is available (see \"Which tool\").\n2. Decide the intent: generate or edit.\n3. Decide whether the output is preview-only or meant to be consumed by the current project.\n4. Decide the execution strategy: single asset vs repeated calls vs `n` variants of one prompt.\n5. Collect inputs up front: prompt(s), exact text (verbatim), constraints\u002Favoid list, and any input images.\n6. For every input image, label its role explicitly:\n   - reference image\n   - edit target\n   - supporting insert\u002Fstyle\u002Fcompositing input\n7. If the user asked for a photo, illustration, sprite, product image, banner, or other explicitly raster-style asset, use the image tool rather than substituting SVG\u002FHTML\u002FCSS placeholders. If the request is for an icon, logo, or UI graphic that should match existing repo-native SVG\u002Fvector\u002Fcode assets, prefer editing those directly instead.\n8. Augment the prompt based on specificity:\n   - If the user's prompt is already specific and detailed, normalize it into a clear spec without adding creative requirements.\n   - If the user's prompt is generic, add tasteful augmentation only when it materially improves output quality.\n9. Choose `size`, `quality`, `background`, and `outputFormat` from the intended use; leave them at their defaults when nothing calls for a change.\n10. Inspect outputs and validate: subject, style, composition, text accuracy, and invariants\u002Favoid items.\n11. Iterate with a single targeted change, then re-check.\n12. For preview-only work, leave the images where Wevir saved them.\n13. For project-bound work, copy the selected artifact into the workspace and update any consuming code or references.\n14. For batches or multi-asset requests, persist every requested deliverable final in the workspace unless the user explicitly asked to keep outputs preview-only. Discarded variants do not need to be kept unless requested.\n15. Always report the final saved path(s) for any workspace-bound asset(s), plus the final prompt or prompt set and the model used.\n\n## Transparent image requests\n\n- `gpt-image-2` does not support `background: transparent`. If the provider also lists a model that does (for example `gpt-image-1.5`), ask the user before switching to it unless they already named that model; then pass `model`, `background: transparent`, and `outputFormat` `png` or `webp`.\n- If no transparency-capable model is available, say so, and offer an image on a flat, uniform background that is easy to cut out instead. Do not claim the result is transparent.\n- With Codex's `image_gen`, ask for a genuinely transparent background and preserve its alpha.\n\n## Prompt augmentation\n\nReformat user prompts into a structured, production-oriented spec. Make the user's goal clearer and more actionable, but do not blindly add detail.\n\nTreat this as prompt-shaping guidance, not a closed schema. Use only the lines that help, and add a short extra labeled line when it materially improves clarity.\n\n### Specificity policy\n\nUse the user's prompt specificity to decide how much augmentation is appropriate:\n\n- If the prompt is already specific and detailed, preserve that specificity and only normalize\u002Fstructure it.\n- If the prompt is generic, you may add tasteful augmentation when it will materially improve the result.\n\nAllowed augmentations:\n- composition or framing hints\n- polish level or intended-use hints\n- practical layout guidance\n- reasonable scene concreteness that supports the stated request\n\nNot allowed augmentations:\n- extra characters or objects that are not implied by the request\n- brand names, slogans, palettes, or narrative beats that are not implied\n- arbitrary side-specific placement unless the surrounding layout supports it\n\n## Use-case taxonomy (exact slugs)\n\nClassify each request into one of these buckets and keep the slug consistent across prompts and references.\n\nGenerate:\n- photorealistic-natural — candid\u002Feditorial lifestyle scenes with real texture and natural lighting.\n- product-mockup — product\u002Fpackaging shots, catalog imagery, merch concepts.\n- ui-mockup — app\u002Fweb interface mockups and wireframes; specify the desired fidelity.\n- infographic-diagram — diagrams\u002Finfographics with structured layout and text.\n- scientific-educational — classroom explainers, scientific diagrams, and learning visuals with required labels and accuracy constraints.\n- ads-marketing — campaign concepts and ad creatives with audience, brand position, scene, and exact tagline\u002Fcopy.\n- productivity-visual — slide, chart, workflow, and data-heavy business visuals.\n- logo-brand — logo\u002Fmark exploration, vector-friendly.\n- illustration-story — comics, children’s book art, narrative scenes.\n- stylized-concept — style-driven concept art, 3D\u002Fstylized renders.\n- historical-scene — period-accurate\u002Fworld-knowledge scenes.\n\nEdit:\n- text-localization — translate\u002Freplace in-image text, preserve layout.\n- identity-preserve — try-on, person-in-scene; lock face\u002Fbody\u002Fpose.\n- precise-object-edit — remove\u002Freplace a specific element (including interior swaps).\n- lighting-weather — time-of-day\u002Fseason\u002Fatmosphere changes only.\n- background-extraction — transparent background \u002F clean cutout; see \"Transparent image requests\".\n- style-transfer — apply reference style while changing subject\u002Fscene.\n- compositing — multi-image insert\u002Fmerge with matched lighting\u002Fperspective.\n- sketch-to-render — drawing\u002Fline art to photoreal render.\n\n## Shared prompt schema\n\nUse the following labeled spec as prompt scaffolding:\n\n```text\nUse case: \u003Ctaxonomy slug>\nAsset type: \u003Cwhere the asset will be used>\nPrimary request: \u003Cuser's main prompt>\nInput images: \u003CImage 1: role; Image 2: role> (optional)\nScene\u002Fbackdrop: \u003Cenvironment>\nSubject: \u003Cmain subject>\nStyle\u002Fmedium: \u003Cphoto\u002Fillustration\u002F3D\u002Fetc>\nComposition\u002Fframing: \u003Cwide\u002Fclose\u002Ftop-down; placement>\nLighting\u002Fmood: \u003Clighting + mood>\nColor palette: \u003Cpalette notes>\nMaterials\u002Ftextures: \u003Csurface details>\nText (verbatim): \"\u003Cexact text>\"\nConstraints: \u003Cmust keep\u002Fmust avoid>\nAvoid: \u003Cnegative constraints>\n```\n\nNotes:\n- `Asset type` and `Input images` are prompt scaffolding, not tool arguments.\n- `Scene\u002Fbackdrop` refers to the visual setting. It is not the same as the tool's `background` argument, which controls output transparency.\n- Execution settings such as size, quality, transparency, masks, and output format go in the tool's arguments, not in the prompt text.\n\nAugmentation rules:\n- Keep it short.\n- Add only the details needed to improve the prompt materially.\n- For edits, explicitly list invariants (`change only X; keep Y unchanged`).\n- If any critical detail is missing and blocks success, ask a question; otherwise proceed.\n\n## Examples\n\n### Generation example (hero image)\n```text\nUse case: product-mockup\nAsset type: landing page hero\nPrimary request: a minimal hero image of a ceramic coffee mug\nStyle\u002Fmedium: clean product photography\nComposition\u002Fframing: wide composition with usable negative space for page copy if needed\nLighting\u002Fmood: soft studio lighting\nConstraints: no logos, no text, no watermark\n```\n\n### Edit example (invariants)\n```text\nUse case: precise-object-edit\nAsset type: product photo background replacement\nPrimary request: replace only the background with a warm sunset gradient\nConstraints: change only the background; keep the product and its edges unchanged; no text; no watermark\n```\n\n## Prompting best practices\n- Structure prompt as scene\u002Fbackdrop -> subject -> details -> constraints.\n- Include intended use (ad, UI mock, infographic) to set the mode and polish level.\n- Use camera\u002Fcomposition language for photorealism.\n- Only use SVG\u002Fvector stand-ins when the user explicitly asked for vector output or a non-image placeholder.\n- Quote exact text and specify typography + placement.\n- For tricky words, spell them letter-by-letter and require verbatim rendering.\n- For multi-image inputs, reference images by index and describe how they should be used.\n- For edits, repeat invariants every iteration to reduce drift.\n- Iterate with single-change follow-ups.\n- If the prompt is generic, add only the extra detail that will materially help.\n- If the prompt is already detailed, normalize it instead of expanding it.\n\nMore principles: `references\u002Fprompting.md`.\nCopy\u002Fpaste specs: `references\u002Fsample-prompts.md`.\n\n## Guidance by asset type\nAsset-type templates (website assets, game assets, wireframes, logo) are consolidated in `references\u002Fsample-prompts.md`.\n\n## gpt-image-2 guidance\n\n- `gpt-image-2` always uses high fidelity for image inputs; there is no fidelity setting.\n- Square images are typically fastest to generate. Use `1024x1024` for fast square drafts.\n- If the user asks for 4K-style output, use `3840x2160` for landscape or `2160x3840` for portrait.\n- `size` may be `auto` or `WIDTHxHEIGHT` if all constraints hold: max edge `\u003C= 3840px`, both edges multiples of `16px`, long-to-short ratio `\u003C= 3:1`, total pixels between `655,360` and `8,294,400`.\n\nPopular `gpt-image-2` sizes:\n- `1024x1024` square\n- `1536x1024` landscape\n- `1024x1536` portrait\n- `2048x2048` 2K square\n- `2048x1152` 2K landscape\n- `3840x2160` 4K landscape\n- `2160x3840` 4K portrait\n- `auto`\n\n## Reference map\n- `references\u002Fprompting.md`: prompting principles.\n- `references\u002Fsample-prompts.md`: copy\u002Fpaste prompt recipes.\n- `references\u002Fimage-api.md`: models, sizes, and argument limits for `wevir_image_generate`.\n",{"name":5,"metadata":25,"description":7},{"short-description":26},"Generate and edit images","master","04a179e0753752cdfcc37c71ec176403a8a12570","prompts\u002Fskills\u002Fimagegen",1,"https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir","https:\u002F\u002Fwevir.si","https:\u002F\u002Fgithub.com\u002Fmarvinli001","https:\u002F\u002Fnianphotograph.com","Ai大人的形状","2026-11-15 05:38:11",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add marvinli001\u002Fwevir --skill imagegen",{"tool":43,"command":44},"bunx","bunx skills add marvinli001\u002Fwevir --skill imagegen",{"tool":46,"command":47},"pnpm","pnpm dlx skills add marvinli001\u002Fwevir --skill imagegen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fskills\u002Fimagegen\u002FSKILL.md",true,[51,57,62,66,70],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"agents\u002Fopenai.yaml","REFERENCE","参考文档",164,"https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fskills\u002Fimagegen\u002Fagents\u002Fopenai.yaml",{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":16},"LICENSE.txt","LICENSE","许可证",10776,{"path":63,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fimage-api.md",4103,"https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fskills\u002Fimagegen\u002Freferences\u002Fimage-api.md",{"path":67,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fprompting.md",8407,"https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fskills\u002Fimagegen\u002Freferences\u002Fprompting.md",{"path":71,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fsample-prompts.md",17349,"https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fskills\u002Fimagegen\u002Freferences\u002Fsample-prompts.md",[75,83,91,98,105,112],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":20},"01M7EMB9X7AZARTYA03TZK96BK","skill-creator","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, turn a workflow from the conversation into a skill, edit or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fskills\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":20},"01M7EMAYP1TTQ01QQHAPYSKTRZ","in-app-browser","控制 Wevir 的内置浏览器：打开、导航、查看页面结构与可见状态、点击、输入、截图，以及测试本地的 Web 应用（localhost、127.0.0.1、::1、file:\u002F\u002F）和显示在 Wevir 里的网页。内置浏览器有自己独立的登录状态。要对链接指向的资源做语义操作（例如读写某个服务的数据）时，有专用的插件、API 或 CLI 就优先用它们。","MIT","https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fplugins\u002Fin-app-browser\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M7EMAVCN4Y8AK2FZC03ENY4K","computer-use","通过读屏和界面操作控制用户电脑上的桌面应用：点击、输入、滚动、拖拽、按键、设值。用于必须读取或操作应用界面的任务。有专用的插件、API 或 CLI 时优先用它们；网页任务优先用浏览器插件。","https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fplugins\u002Fcomputer-use\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M7EMAQS49XZHJTXH1VGH7QY0","chrome","控制用户自己的 Chrome 浏览器，用于依赖 Chrome 现有状态的任务：已打开的标签页、已登录的网站、cookie 或扩展；用户提到 @chrome 时使用。有专用的插件、API 或 CLI 时优先用它们。","https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fprompts\u002Fplugins\u002Fchrome\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":20},"01M7EMAN6EZAKEXQ850A82A8AH","package-canary","package-canary skill description","https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fpackages\u002Fhost\u002Fsrc\u002Ftest-fixtures\u002Fwevir-plugin\u002Fskills\u002Fpackage-canary\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":20},"01M7EMAKV9J84HDYKAWAXA2GSD","codex-canary","codex-canary skill description","https:\u002F\u002Fgithub.com\u002Fmarvinli001\u002Fwevir\u002Fblob\u002Fmaster\u002Fpackages\u002Fhost\u002Fsrc\u002Ftest-fixtures\u002Fcodex-plugin\u002Fskills\u002Fcodex-canary\u002FSKILL.md",[],[]]