agentleFS
DojoCodingLabsDojoCodingLabs/remotion-superpowers/skills/generate-image/SKILL.md

generate-image

Skill153 starsChanged 16 days agoMITView on GitHub

Generate AI images for your Remotion project. Describe what you need — backgrounds, thumbnails, characters, abstract art — and get production-ready images via AI generation or Replicate models.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use edit-image, scientific-slides and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SamurAIGPTSkill

    edit-image

    Edits an existing image using natural language instructions via MuAPI. Use when the user wants to modify, change, transform, or retouch an existing image.

    Also in 3 projects that use this

  • ZanderRussSkill

    scientific-slides

    Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.

    Also in 3 projects that use this

  • nicepkgSkill

    team

    根据任务快速组建临时 AI Agent 团队协作。自动从 .claude/agents/ 中选择最合适的成员组队。

    Also in 3 projects that use this

  • AnthropicSkill

    pptx

    Use this skill any time a .pptx or .potx 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 or .potx 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 (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

    Also in 5 projects that use this

  • AnthropicSkill

    pdf

    Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

    Also in 4 projects that use this

  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 5 projects that use this

  • +1 more from anthropics

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask the user (if not already clear):

    line 14
  2. Very specific:

    Write the prompt in full sentences, following Replicate's official prompt-images skill for technique (it's model-agnostic, so it applies to …

    line 22
  3. Very specific:

    Use Replicate when the user wants a specific model (typography, several references, a particular look) or KIE fails.

    line 49
  4. Very specific:

    Add the image with <CanvasImage> from remotion, as the official remotion-markup skill does (<Img> still works.

    line 72
  5. Distinctive:

    If the image isn't right:

    line 103
  6. Distinctive:

    Use exclusions only if the model supports them ("no text, no watermark").

    line 106

“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Generate Image — AI Image Creation

You are helping the user generate custom images for their Remotion video project.

Workflow

1. Understand the Need

Ask the user (if not already clear):

  • What is the image for? — Scene background, thumbnail, character, product shot, abstract art, diagram?
  • Style — Photorealistic, illustration, 3D render, flat design, watercolor, pixel art?
  • Dimensions — Landscape (1920x1080), portrait (1080x1920), square (1080x1080)?
  • Mood/Colors — Bright, dark, warm, cool, neon, pastel?

2. Craft the Prompt

Write the prompt in full sentences, following Replicate's official prompt-images skill for technique (it's model-agnostic, so it applies to KIE too). Cover, in order: subject, style, lighting, camera angle, color palette, background details.

Good prompt examples:

  • "A modern tech startup office seen from above, clean minimalist design with white desks and blue accents, bright natural light from large windows, photorealistic."
  • "An abstract geometric pattern of glowing neon purple and blue lines on a dark background, futuristic 3D render."
  • "A friendly robot mascot waving, cartoon illustration with pastel colors on a clean white background, suitable for a logo."
  • "A downtown skyline silhouetted against a warm orange and pink golden-hour sky, drone aerial shot, cinematic."

For a video, also:

  • Leave negative space where Remotion will place titles or captions, and ask for "no text, no watermark"; Remotion renders the text.
  • Keep scenes consistent: reuse one style block verbatim across every image in the video, and pass the first good image as a reference. See skills/remotion-production/rules/image-generation.md.

3. Generate via remotion-media (default)

Use remotion-media generate_image:
- prompt: [crafted prompt]
- output_name: img-hero
- aspect_ratio: 16:9  # always pass it (default is 1:1); 9:16 for shorts
- resolution: 2K      # default 1K; use 2K+ for 1080p compositions
- image_urls: [optional reference images, up to 8, public URLs only]

The image is saved to public/img-hero.png in the directory your agent was launched from, so start your agent (Claude Code, Codex, Gemini CLI…) from the Remotion project root. Reference images in image_urls must be public URLs KIE can fetch, not files in public/.

4. Generate via Replicate (specific models)

Use Replicate when the user wants a specific model (typography, several references, a particular look) or KIE fails. It needs the local replicate-mcp server with REPLICATE_API_TOKEN. Follow Replicate's official find-models and run-models skills:

  1. Search, then read the schema. search_models with body: "<task>", then get_models (model_owner, model_name) and list_models_examples. Use only inputs that exist in the schema; the aspect-ratio input name varies per model.
  2. Create the prediction. Official models: create_models_predictions with model_owner, model_name and input. Community models: create_predictions with version: "owner/name:<version_id>". Fast image models can take Prefer: "wait" (blocks up to 60 s).
  3. Poll get_predictions with prediction_id until status is succeeded, failed or canceled.
  4. Download the URL in output right away (it expires after 1 hour):
mkdir -p public/images
curl -L -o public/images/img-[descriptive-name].png "<output URL>"

Starting points, as of Oct 2026 (search and read the schema before calling):

  • FLUX.2 Pro / Max (black-forest-labs/flux-2-pro, -max): photoreal, several reference images via input_images
  • Nano Banana Pro (google/nano-banana-pro): image with text, editing
  • GPT Image 2 (openai/gpt-image-2)
  • Ideogram v3 Quality / Turbo (owner ideogram-ai, one ID per tier; search ideogram): typography, logos
  • FLUX Kontext Pro (black-forest-labs/flux-kontext-pro): edit from a single reference (input_image)

See skills/remotion-production/rules/replicate-models.md for the full flow and rules/image-generation.md for provider choice and consistency guidance.

5. Show Usage in Remotion

Add the image with <CanvasImage> from remotion, as the official remotion-markup skill does (<Img> still works; both accept effects). Sizing and animation follow its images.md and timing.md. The path depends on the provider: generate_image saves to public/<output_name>.png, Replicate downloads to public/images/.

import { CanvasImage, Easing, interpolate, staticFile, useCurrentFrame, useVideoConfig } from "remotion";

const frame = useCurrentFrame();
const { fps } = useVideoConfig();

// As a background (remotion-media output)
<CanvasImage
  src={staticFile("img-hero.png")}
  style={{ width: "100%", height: "100%", objectFit: "cover" }}
/>

// As an element that pops in (Replicate download)
<CanvasImage
  src={staticFile("images/img-product.png")}
  style={{
    scale: interpolate(frame, [0, 0.6 * fps], [0, 1], {
      extrapolateLeft: "clamp", extrapolateRight: "clamp",
      easing: Easing.spring({ damping: 200 }),
      output: "perceptual-scale",
    }),
  }}
/>

For a slow Ken Burns move on a still, see skills/remotion-production/rules/image-generation.md.

6. Iterate

If the image isn't right:

  • Adjust the prompt — be more specific about what's wrong (see prompt-images for editing and common pitfalls)
  • Generate multiple variations and let the user pick
  • Use exclusions only if the model supports them ("no text, no watermark"); some models get worse with negative prompts
  • Change one thing at a time so the image still matches the other scenes

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.