digitalsamba/claude-code-video-toolkit

qwen-edit

AI image editing prompting patterns for Qwen-Image (Qwen-Image-Edit-2511 by default, Qwen-Image-2.1 as a non-commercial Modal opt-in).

Ver código-fonte

Como usar

  1. Copie o comando e verifique o pacote antes de instalar no seu ambiente de agente.
  2. Consulte no original as ferramentas, credenciais e ambientes necessários.
  3. Descreva os dados de entrada e a entrega esperada; confira a saída com as fontes.
npx skills add https://github.com/digitalsamba/claude-code-video-toolkit --skill qwen-edit

Antes de começar

  • A instalação não inclui assinatura de modelo, franquia API ou acesso aos seus arquivos.
  • Estrelas e instalações indicam atividade, não um teste independente de qualidade ou segurança.
Documento original do Skill

Renderizado do repositório de origem, preservando títulos, exemplos, código, tabelas, links e imagens.

Qwen-Image-Edit Skill

AI-powered image editing via tools/image_edit.py. The model depends on the deployment:

DeploymentModelLicenseDefaultsMax inputs
--cloud modal (default)Qwen-Image-Edit-2511Apache-2.0, commercial OK8 steps, guidance 1.03 images
--cloud modal, app deployed with IMAGE_EDIT_MODEL=qwen-image-2.1Qwen-Image-2.1 (2026-09, unified gen+edit, 7B DiT, RGBA)Qwen Research License -- non-commercial ("research or evaluation purposes only")40 steps, guidance 1.0 (no CFG)10 images
--cloud runpodQwen-Image-Edit-2511 + Lightning LoRAApache-2.0, commercial OK8 steps, guidance 1.03 images

The tool prints Model: and Steps: after each edit, so you can tell which model the Modal app runs and how many steps it took. Without --steps, each model runs its own default above. Opt in with IMAGE_EDIT_MODEL=qwen-image-2.1 uv run modal deploy docker/modal-image-edit/app.py; deploy again without it to switch back.

Status: Evolving - learnings being captured as we experiment. The prompt patterns and parameter findings in examples.md / parameters.md were measured on 2511; re-check them on 2.1 before relying on the exact numbers.

Qwen-Image-2.1 specifics (Modal opt-in)

  • Not step-distilled -- 40 steps is the model card default. The old 8-step

default was tuned for 2511's Lightning LoRA, which 2.1 doesn't have here, so expect low step counts to cost quality (untested).

  • Sampled without guidance. --guidance 1.0 (default) is how the model is meant

to run. >1 switches on true CFG (blank negative prompt if you pass none) and doubles the cost of every step.

  • Multi-image: the first --input is the image being edited ("image 1"); the

rest are references in order ("image 2", ...). Up to 10. Output size follows the first image's aspect ratio at ~1MP.

  • Local edits: draw a circle or paint an annotation on the image, or pass a

separate mask as an extra --input, and say what to change there (e.g. "Remove the watch inside the red circle").

  • RGBA: transparent PNG inputs keep their alpha. For a cut-out, prompt

"This is an RGBA image with transparency. <subject>. The image has alpha channel and the background is transparent." -- the result comes back as an RGBA PNG only when the model actually produced transparency.

When to Use This Skill

Use when the user wants to:

  • Edit/transform photos while preserving identity
  • Reframe cropped images (fix cut-off heads, etc.)
  • Change clothing, add accessories
  • Change pose (arm positions, hand placement)
  • Apply style transfers (cyberpunk, anime, oil painting)
  • Adjust lighting/color grading
  • Add/remove objects
  • Character transformations (Bond, Neo, etc.)

When NOT to Use

  • Background replacement (single image) - creates cut-out artifacts, halos
  • Face swapping - cannot preserve identity from reference
  • Outpainting - can't extend canvas reliably

Use With Care

  • Identity keep-clauses - naming features to keep ("keep his glasses and beard") ADDS them to people who lack

them. Use "Keep exactly the same person with an identical face and identical hair, do not add or remove glasses, beard or stubble, photorealistic photograph" (costuming colleagues, 2026-11; .claude/skills/parody-short/people.md). For someone who does wear glasses, name them ("keeps wearing her round glasses"), or a new setting can drop them

  • Multi-image compositing - CAN work with explicit identity anchors (see examples.md for prompt patterns). Requires describing distinctive features (hair texture/color, ethnicity, outfit) and using guidance ~2.0
  • Camera angle changes - Inconsistent results. Vertical angles (low/high) work better than rotational (three-quarter view)

Quick Reference

bash
# Basic edit
uv run tools/image_edit.py --input photo.jpg --prompt "Add sunglasses"

# With negative prompt (recommended)
uv run tools/image_edit.py --input photo.jpg \
  --prompt "Reframe as portrait with full head visible" \
  --negative "blur, distortion, artifacts"

# Style transfer
uv run tools/image_edit.py --input photo.jpg --style cyberpunk

# Background (use cautiously - often fails)
uv run tools/image_edit.py --input photo.jpg --background office

# Higher quality (RunPod / 2511 -- on Modal / 2.1 the 40-step default already is)
uv run tools/image_edit.py --input photo.jpg --prompt "..." --steps 16 --guidance 3.0 --cloud runpod

# Extract the subject onto a transparent background (Modal / 2.1)
uv run tools/image_edit.py --input product.jpg   --prompt "This is an RGBA image with transparency. The product from the photo. The image has alpha channel and the background is transparent."   --output product_cutout.png

# Multi-image composite (identity-preserving) -- settings tuned on RunPod / 2511
uv run tools/image_edit.py --input person.jpg background.jpg \
  --prompt "The [ethnicity] [gender] with [hair description] from first image is now in [scene] from second image. Same [features], [outfit]." \
  --negative "different ethnicity, different hair color, different face shape, generic stock photo" \
  --steps 16 --guidance 2.0 --cloud runpod

# Multi-image composite on Modal / 2.1 -- up to 10 references, defaults usually suffice
uv run tools/image_edit.py --input person.jpg outfit.jpg shoes.jpg background.jpg \
  --prompt "The person from image 1 wearing the outfit from image 2 and the shoes from image 3, standing in the scene from image 4. Same face and hair."

Key Files

  • prompting.md - Prompt patterns and structure
  • examples.md - Good/bad examples from experiments
  • parameters.md - Tuning steps, guidance, negative prompts

Tool Location

tools/image_edit.py - CLI wrapper for the Modal (docker/modal-image-edit/) and RunPod (docker/runpod-qwen-edit/) endpoints

Related Docs

  • docs/qwen-edit-patterns.md - Character transformation patterns
  • .ai_dev/qwen-edit-research.md - Research notes
do mesmo repositório

Mais Skills

Todos os Skills
digitalsamba
Comunidade

video-design

Visual design for videos - colour by act, type scale, chart and layout rules for 16:9 and 9:16 scenes, a design.md handoff that any design skill can fill, and a contact-sheet critique of the render. Use when designing or refining how a video looks (title cards, data scenes, slides, a whole video's palette), when a scene looks generic or busy, when choosing colours for a video, or when /design or /scene-review asks for visual work. Works on its own with a brand, or takes direction from a design s

Instalações / 1h
2
GitHub Stars
2,7 mil
Atualizado
17 de nov.
digitalsamba
Comunidade

acestep

AI music generation with ACE-Step 1.5 — background music, vocal tracks, covers, stem extraction, audio repainting, and continuation for video production. Use when generating music, soundtracks, jingles, or working with audio stems. Triggers include background music, soundtrack, jingle, music generation, stem extraction, cover, style transfer, repaint, continuation, or musical composition tasks.

Instalações / 1h
4
GitHub Stars
2,6 mil
Atualizado
17 de nov.
digitalsamba
Comunidade

blender

3D scenes, character acting and product shots from a shot spec, rendered in Blender, as a finished film, as clips for any other build (moviepy, a video job, an editor), or as elements of a Remotion video (transparent characters over a scene, a Remotion render on a 3D laptop, phone or floating card that the camera pulls back from, an imported 3D model on a studio stage), or a brand's opening and closing ident built from its SVG logo. A rigged cartoon cast described in JSON (build, face, hair, clo

Instalações / 1h
4
GitHub Stars
2,6 mil
Atualizado
17 de nov.
digitalsamba
Comunidade

elevenlabs

Generate AI voiceovers, sound effects, and music using ElevenLabs APIs. Use when creating audio content for videos, podcasts, or games. Triggers include generating voiceovers, narration, dialogue, sound effects from descriptions, background music, soundtrack generation, voice cloning, or any audio synthesis task.

Instalações / 1h
4
GitHub Stars
2,6 mil
Atualizado
17 de nov.