imagine

Generates and edits images and videos using modality-specific Imagine tools with sandbox file paths.

Updated Sep 17, 2026
One-click install
npx skills add https://github.com/scomofo/midi-stage2 --skill imagine-scomofo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: imagine
Source: https://github.com/scomofo/midi-stage2/tree/main/.grok/skills/imagine
Command: npx skills add https://github.com/scomofo/midi-stage2 --skill imagine-scomofo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing the wrong image or video generation tool, inventing file paths, or trusting image models with exact text and data leads to broken or inaccurate visual output. This Skill defines the correct tool-selection rules, prompt-craft practices, and verification loops for the split Imagine computer stack. ## Core Features & Use Cases - Tool Selection Matrix: Maps each situation to the right call — text_to_image, image_to_image, reference_to_image, text_to_video, image_to_video, or reference_to_video — based on how many reference images exist. - Accuracy-First Workflow: Directs exact-text, data, and diagram requests to code-built HTML/CSS assets instead of image models, with a read_file verification loop. - Reference-First Real People Handling: Requires web search grounding and a real reference path before generating or animating any named person. - Use Case: When asked to create a cinematic portrait of a public figure, search the web to verify identity, obtain a reference image, then call imagine_image_to_image with that path and show the result via render_file. ## Quick Start Generate a 16:9 image of a neon-lit city street at dusk using the imagine text-to-image tool, then show it to me in chat.

Frequently Asked Questions about imagine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between text-to-image, image-to-image, and reference-to-image?▼

Choose based on reference count: no source image means text_to_image, one existing image to edit means image_to_image, and two or more references to combine means reference_to_image. The same rule applies to video tools with text_to_video, image_to_video, and reference_to_video.

How do I generate an image of a real person with AI?▼

Search the web first to verify identity and details, obtain a real reference image as a sandbox path, then call imagine_image_to_image with that path. Never use pure text-to-image for a named real person, and never produce non-consensual or sexualized likenesses.

When should I build a visual with code instead of an image generator?▼

Use code, preferably HTML and CSS, whenever the output needs exact text, real numbers, charts from data, labeled diagrams, or precise structure. Image models frequently garble words and invent numbers, so they suit photos, illustrations, and decorative art instead.

Can I pass multiple images to image-to-image editing?▼

No, imagine_image_to_image accepts only a single source path. To combine two or more reference images into one composition, use imagine_reference_to_image with the list of sandbox paths.

Why did my image generation get blocked and what should I do?▼

A moderation or safety block means the prompt violated content policy. Do not retry or paraphrase to evade the filter; inform the user it was blocked and offer a different creative direction instead.

How do I show a generated image or video to the user?▼

Call render_file with the sandbox file_path returned by the generation tool so the media appears in chat. Do not invent filesystem paths or use ad-hoc markdown image links.