Index of every page on this site: llms.txt
All skills
Run it yourself

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). Use when editing photos while preserving identity, reframing cropped images, changing clothing or accessories, adjusting poses, applying style transfers, or character transformations. Provides prompt patterns, parameter tuning, and examples.

Use this Skill: https://skilld.dev/gh/digitalsamba/claude-code-video-toolkit/qwen-edit

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

prompting.md

≈732 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Qwen-Edit Prompting Guide

Prompt Structure

Optimal length: 50-200 characters (short and specific beats long and detailed)

Formula: [Action], [details], [constraints]

Always Include Constraints

Preservation constraints significantly improve results:

  • "Keep face unchanged"
  • "Maintain original pose"
  • "Preserve facial features"
  • "Keep expression the same"
  • "Preserve the person's identity"

Prompt Patterns

Reframing (Fix Cropped Images)

When head/body is cropped out of frame:

Reframe this photo as a portrait composition with the woman's full head visible, positioned in the lower portion of the frame with sky above

Critical: Pair with negative prompt to avoid artifacts:

--negative "blur, blurry, ghostly, distortion, abstract, haze, fog, out of focus"

What doesn't work for cropped images:

  • "Zoom out" - adds letterboxing/black borders
  • "Viewpoint change" - destroys identity, creates silhouettes
  • "Extend the image" - not an outpainting model

Character Transformations

"{Character name}, wearing {costume details}, {pose/action}, {background}, {lighting style}, {aesthetic keywords}"

Examples:

  • "James Bond 007, wearing a tuxedo with bow tie, holding a martini glass, casino background, suave and sophisticated, cinematic lighting, spy thriller aesthetic"
  • "Neo from The Matrix, wearing long black leather trench coat, dark sunglasses, green digital rain code background, cyberpunk aesthetic"

Style Transfer

"Apply {style} style" or "Restyle as {style}"

Examples:

  • "Apply Monet impressionist style, like Water Lilies"
  • "Restyle as cyberpunk with neon lighting"
  • "Make it look like a vintage 1970s photograph"

Clothing/Accessory Changes

"Change {item} to {new item}, maintain pose"

Examples:

  • "Change blue t-shirt to red hoodie, maintain pose"
  • "Add sunglasses and a warm smile"
  • "Replace jacket with leather bomber jacket"

Lighting/Color

"{Lighting effect}, {mood keywords}"

Examples:

  • "Add warm sunset tones, golden hour lighting"
  • "Cinematic dramatic lighting with shadows"
  • "Enhance lighting, studio portrait quality"

What Makes Prompts Fail

Problem Why
Too vague "Make it better" - no specific direction
Too long 350+ chars - model gets confused
Background replacement "Place in X" creates halos/artifacts
Extreme changes Fundamentally altering the scene
Dark scenes Identity gets lost in shadows

Negative Prompts

Always consider what to avoid:

Use Case Negative Prompt
Reframing blur, blurry, ghostly, distortion, abstract, haze, fog, out of focus
Zoom out black borders, letterbox, vignette, dark edges, frames, cropped
Portraits deformed, disfigured, bad anatomy, extra limbs
Style transfer photo-realistic (if you want artistic)

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings2d5 checks · Risk SAFE
  • Gen Agent Trust Hub2d

    This skill provides documentation and prompt engineering patterns for using the Qwen-Image-Edit model. It includes guides for reframing images, style transfers, and identity-preserving composites, as well as deployment instructions for Modal and RunPod. No security issues were detected.

  • Socket2d

    No alerts

  • Snyk2d

    Risk: MEDIUM · 1 issue

  • Runlayer9mo

    4/4 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at b3437fc. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 22 minutes ago.

Activeupdated 4 days ago

README badge

README badge for digitalsamba/claude-code-video-toolkit/qwen-edit