skills/imagine/SKILL.md
How to use the image_gen and image_edit tool calls in Grok Build: when to build a visual with code instead of generating it, prompt-craft, reference-first handling of real people, factual grounding, and asset-consistency. Load this whenever generating or editing an image is on the table, i.e. when an image_gen or image_edit call is being considered or about to be made. Tool-usage-driven, not triggered by a user merely mentioning images.
npx skillsauth add ariffazil/openclaw-workspace imagineInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Guidance for the two image tool calls in Grok Build:
image_gen - generate a new image from a text prompt.image_edit - modify an existing image using a text prompt and source image.Apply this whenever you're considering or about to call either tool.
image_edit pass usually won't fix it. So when a result needs specific text, data, or structure to be correct (charts from real numbers, labeled or technical diagrams, math explainers, tables, screens with real copy), construct the asset with code, where you control the exact content. Prefer HTML and CSS, which give much better layout, typography, and polish than Python plotting. When only the look matters (photos, illustrations, characters, scenes, decorative art), the image tools are the right choice. Which one fits depends on what the output needs to get right, not on how the request is worded.When the output must get specific text, numbers, data, or structure right, don't trust the first result - verify it in a loop:
image_gen for a named real person or group, including face swaps, posters, cartoons, and cinematic or editorial depictions. Use image_edit with a real reference instead, and never produce non-consensual, sexualized, or minor-involving likenesses. See Real People and References for the procedure.image_edit for every variation. Don't re-run image_gen from scratch for a recurring subject.| Situation | Tool |
|-----------|------|
| New image, no source image | image_gen |
| Edit, restyle, recolor, add, remove, or extend an existing image | image_edit |
| Iterate on a previous result while keeping composition | image_edit |
| Named real person or group | image_edit with a real reference after a web search |
| Generic, invented, or non-factual subject from scratch | image_gen |
Rule of thumb: no source image -> image_gen; source image -> image_edit.
image_genGenerates a new image from a text prompt.
Inputs:
prompt (required) - full description of the desired image.aspect_ratio - e.g. 1:1, 16:9, 9:16, 4:3, 3:4, or auto.Use for generic or invented subjects, or to create a base image you'll edit later. Not for named real people; see Reference-first for real people.
To produce multiple variations, make multiple image_gen calls with distinct prompts. The tool does not expose n or count parameters.
image_editTransforms an existing image according to a prompt.
Inputs:
prompt (required) - describe the desired transformation, and note what should stay the same.image (required) - one or more source/reference images as filesystem paths or data:image/...;base64,... URLs. Prefer a single clean reference for reliable results.aspect_ratio - optional; used for multi-image edits. Single-image edits preserve the input image aspect ratio.Use to restyle, recolor, add or remove elements, preserve likeness, transfer style, remix, or iterate on a generated result.
To produce multiple variations, make multiple image_edit calls. The tool does not expose n or count parameters.
Describe, roughly in this order: subject -> action/pose -> setting -> style -> composition -> lighting/mood -> key details.
aspect_ratio to the use case when using image_gen: 9:16 for phone/story, 16:9 for banner/video frame, 1:1 for avatar/icon.image_edit. A user-uploaded photo is best; otherwise use a high-quality found reference and cite the source. image_edit can take more than one reference, but one clean reference is more reliable.The video tools below may not exist - verify they're available before calling them; if they're not, the user cannot do video gen with Imagine.
Video starts from an image - there is no text-to-video tool. Default to image_to_video.
Think in shots. Build video as a planned sequence of short shots, not one long take:
image_gen (or a multi-image image_edit when a shot must combine references), keeping characters and settings consistent (Core Principle 4).image_to_video - the source becomes frame 1.Use reference_to_video only if the user asks for it or a shot genuinely needs multiple references - and even then, prefer composing those references with a multi-image image_edit and animating the result with image_to_video.
Key behaviors:
image_to_video animates from frame 1, so stage the intended first frame with image_gen/image_edit first.image_gen aspect_ratio); don't re-crop an existing video.Assemble shots with FFmpeg using stream copy so there's no quality loss: ffmpeg -f concat ... -c copy - never re-encode. Keep every shot at the same resolution and frame rate so the copy works.
development
Federation-wide gold (XAUUSD) trading capability. Python stack, OANDA broker, backtesting, macro signals, RSI strategy. Every organ has a role.
development
Capital claim state management — tracks claim lifecycle across WEALTH organ.
development
Archived constitutional warga placeholder retained only for audit provenance. Do not use for active work; use the live arifOS governance and constitutional skills instead.
testing
Warga (citizen) agent skills for AAA federation members. See subdirectories for specialized warga skills.