agentleFS
anycap-aianycap-ai/anycap/skills/anycap-gemini-omni-video-edit/SKILL.md

anycap-gemini-omni-video-edit

Skill43 starsChanged 4 months agoMITView on GitHub

Use Gemini Omni Flash Preview through AnyCap for practical short-video editing workflows. Trigger when a user wants to edit or refine an existing video with natural-language instructions, especially product replacement, object removal or replacement, relighting, restyling, preserving a person/scene while changing one element, or using reference images with a source video. Covers model/schema discovery, prompt construction, AnyCap CLI command patterns, scenario-specific templates, video QA, and retry strategy for `gemini-omni-flash-preview` / `edit-video`.

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. About 0 are common, 14 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill to edit short videos with gemini-omni-flash-preview via AnyCap.

    line 12
  2. Very specific:

    Treat the AnyCap live schema as the source of truth for runnable CLI parameters.

    line 32
  3. Distinctive:

    Use Gemini Omni Flash Preview when the task is:

    line 36
  4. Distinctive:

    remove or hide a visible object

    line 41
  5. Distinctive:

    run fast preview iterations before considering a higher-control video model

    line 43
  6. Distinctive:

    Consider another video model or direct provider API when the task requires:

    line 45
  7. Distinctive:

    Check schema: Run the live schema command above and use only supported params.

    line 56
  8. Distinctive:

    Choose references: Prefer one source video. Use reference images for product, subject, style, or material details.

    line 57
  9. Very specific:

    Generate: Use anycap video generate with --mode edit-video and a descriptive -o.

    line 59
  10. Very specific:

    QA the video: Use ffprobe, frame samples, and anycap actions video-read.

    line 60
  11. Distinctive:

    Retry narrowly: If the output drifts, shorten the prompt, isolate the edit, and add only the missing constraint.

    line 61
  12. Very specific:

    Always pass the source video with --param videos=....

    line 81
  13. Distinctive:

    Use JSON array syntax when the schema supports multiple references:

    line 82
  14. Very specific:

    Do not repeat the same --param images= key expecting it to append.

    line 88
  15. Very specific:

    Keep file names versioned: brief-v1.mp4, brief-v2.mp4, brief-final.mp4.

    line 89
  16. Distinctive:

    Use this structure for edits:

    line 94
  17. Distinctive:

    Default to one source video and one product/reference image.

    line 107
  18. Distinctive:

    Use the source video's duration when it fits the live schema.

    line 109
  19. Distinctive:

    Use a stable, descriptive output path in the workspace.

    line 110
  20. Distinctive:

    Ask for the smallest possible edit first.

    line 111
  21. Distinctive:

    If the edit is not good enough, provide a concrete next prompt rather than a vague "try again."

    line 122

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

AnyCap Gemini Omni Video Edit

Use this skill to edit short videos with gemini-omni-flash-preview via AnyCap. It is optimized for practical one-shot video edits where a source video should stay mostly unchanged and one element should change.

For CLI syntax, authentication, model discovery conventions, and delivery options, read the anycap-cli skill when needed.

Evidence To Verify

Gemini Omni Flash Preview is a preview model, so verify the live surface before running:

anycap status
anycap video models gemini-omni-flash-preview
anycap video models gemini-omni-flash-preview schema --operation generate --mode edit-video

Also check official Google docs when model behavior matters:

Treat the AnyCap live schema as the source of truth for runnable CLI parameters. Treat official Google docs as the source of truth for model behavior, limitations, and prompting guidance.

Fit Check

Use Gemini Omni Flash Preview when the task is:

  • edit an existing short video from natural language
  • preserve identity, camera motion, background, hands, lighting, timing, and audio while changing one visual element
  • swap a product or prop using one or more reference images
  • remove or hide a visible object
  • make narrow scene-level edits such as relighting, restyling, or text/sign changes
  • run fast preview iterations before considering a higher-control video model

Consider another video model or direct provider API when the task requires:

  • scene extension, first/last-frame interpolation, or last-frame control
  • precise multi-turn state using Google's previous_interaction_id
  • strict multi-video reasoning
  • long-form generation beyond the live AnyCap schema
  • output quality/resolution not exposed by the live AnyCap schema

Workflow

  1. Inspect inputs. Confirm the source video path or URL, reference images, desired edit, aspect ratio, duration, and output filename.
  2. Check schema. Run the live schema command above and use only supported params.
  3. Choose references. Prefer one source video. Use reference images for product, subject, style, or material details. Avoid multi-video prompting unless the live docs and task strongly justify it.
  4. Write a narrow English prompt. English is the safest default. Make the target edit explicit and tell the model what to preserve.
  5. Generate. Use anycap video generate with --mode edit-video and a descriptive -o.
  6. QA the video. Use ffprobe, frame samples, and anycap actions video-read; then manually review motion, hands, object stability, and unintended changes.
  7. Retry narrowly. If the output drifts, shorten the prompt, isolate the edit, and add only the missing constraint.

Command Pattern

anycap video generate \
  --model gemini-omni-flash-preview \
  --mode edit-video \
  --prompt "<narrow English editing instruction. Keep everything else the same.>" \
  --param videos=./source.mp4 \
  --param images=./reference.png \
  --param aspect_ratio=16:9 \
  --param duration=10 \
  --param resolution=720p \
  --param format=mp4 \
  -o ./edited-output.mp4

Rules:

  • Always pass the source video with --param videos=....
  • Use JSON array syntax when the schema supports multiple references:
--param images='["./product-front.png","./product-side.png"]'
  • Do not repeat the same --param images= key expecting it to append.
  • Keep file names versioned: brief-v1.mp4, brief-v2.mp4, brief-final.mp4.
  • For URLs or local files, let AnyCap upload/resolve references automatically.

Prompt Formula

Use this structure for edits:

<Action only on target>. Use <reference image(s)> as the exact reference for <product/subject/style/material>. Preserve <identity, hands, body, clothing, background, camera motion, lighting, shadows, audio, timing>. Make <physical integration details>. Keep everything else the same. Do not <common failure modes>.

Good edit prompts are short but specific. For targeted editing, include "Keep everything else the same." Put negatives in the regular prompt because model-level negative prompts are not exposed for this workflow.

For scenario templates, read references/scenarios.md. For QA and retry patterns, read references/qa.md.

Practical Defaults

  • Default to one source video and one product/reference image.
  • Match aspect_ratio to the source video unless the user explicitly wants a crop.
  • Use the source video's duration when it fits the live schema; otherwise choose the nearest supported duration and tell the user.
  • Use a stable, descriptive output path in the workspace.
  • Ask for the smallest possible edit first. Big combined edits are more likely to change identity, hands, background, or camera motion.

Output Expectations

Return:

  • the local output video path
  • the exact command used or a concise command summary
  • the QA checks run and what they found
  • any caveats, such as identity drift, hand artifacts, flicker, audio changes, or schema limits

If the edit is not good enough, provide a concrete next prompt rather than a vague "try again."

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.