Skip to content

digitalsamba/claude-code-video-toolkit / .claude/skills/qwen-edit

qwen-edit

Verified

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.

FileKindSize
SKILL.mdskill md7.0 KB
examples.mdmarkdown6.6 KB
parameters.mdmarkdown4.4 KB
prompting.mdmarkdown2.9 KB

prompting.md

View on GitHub
# 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) |
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall