MAGI-2 was trained on long, structured captions. A short line underuses it. Sand.ai says so in its own repo, and ships an enhancer to fix it. This skill is that enhancer, tuned for Sloosh. Every MAGI-2 prompt goes through it.
When to use
- Any prompt headed to
magi-2on Sloosh. Web app Enhance, MCP, spaces, all of it. - "Enhance this for Magi." "Make this better." "Why did Magi do that?"
- A MAGI-2 output came back with drift, mush, wrong audio, or a missed cut.
- A brief needs splitting into a 4 to 30 second shot plan.
Skip it only when the user pastes a finished director caption and says "run as is". Then still run the linter (step 7).
What you need
- The raw prompt. Any language, any quality.
- The settings: duration (4 to 30 s), aspect ratio, sound on or off.
- Any attached files and what each one is for.
- The brand's memory, when the work is for a brand.
If a setting is missing, use the defaults in step 2. Do not stop to ask.
The one-minute version
- Find the mode. Text, start frame, start plus end frame, or references.
- Lock the settings. Duration decides how many shots fit.
- Pull out the hard asks. Names, lines, text, order, ending, style.
- Plan beats. One action per shot. One camera move per shot.
- Write the director caption. Same section order every time.
- Add the sound line. Name sources. Quote every spoken word.
- Lint it.
python scripts/lint_magi2_prompt.py prompt.txt - Quote it on Sloosh with
enhancePrompt: false. Never enhance twice.
The rest of this file is the long version.
Step 1. Find the mode
MAGI-2 has three input modes on Sloosh. They do not mix.
| Mode | What goes in | What the prompt does |
|---|---|---|
| T2V text to video | Prompt only | Describes everything: who, where, look, motion, camera, sound. |
| I2V start frame | One image as start_frame |
Describes the image briefly, then only the future: motion, camera, sound. |
| I2V start + end | start_frame and end_frame |
Describes what happens between the two frames, and how. |
| R2V references | Up to 10 images, 5 videos, 5 audio clips | Gives every file a job, then describes the scene and action. |
Sloosh rules from list_models (checked 26 Nov 2026):
- Frames and references are exclusive.
framesExcludesReferenceImages: true. - An end frame needs a start frame.
endNeedsStart: true. - Prompt limit is 15,000 characters. Aim for 600 to 4,000.
- 1080p only. Six ratios: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16.
- Sound is optional, on by default. Seed is supported.
Decision points:
- User gave a product photo and wants "make it move"? I2V start frame.
- User gave a face sheet and a location? R2V. Not I2V.
- User wants a face and an exact first frame? Make the first frame first (image model, with the face as reference). Then I2V.
- User gave a clip and said "move the camera like this"? R2V, video ref for camera only.
- User gave a voice note? R2V, audio ref as that character's voice.
Step 2. Lock the settings
Defaults when the user says nothing:
| Setting | Default | Change it when |
|---|---|---|
| Duration | 10 s | Dialogue needs more air. A story has 3+ beats. A long take is asked for. |
| Aspect | 9:16 for social, 16:9 for film or YouTube | The user names one. Match the start frame's ratio in I2V. |
| Sound | On | The user plans their own music or voiceover. Then write Audio: silent. anyway. |
| Seed | Random first run. Fixed while iterating. | You are comparing two prompt changes. |
Duration decides capacity. Use references/timing.md. The short form:
| Duration | Shots | Beats | Spoken words (total) | Camera |
|---|---|---|---|---|
| 4 to 6 s | 1 | 1 gesture | 0 to 10 | Static or one gentle move |
| 7 to 10 s | 1 to 3 | 1 to 3 | 8 to 20 | One move per shot |
| 11 to 15 s | 2 to 3 | 2 to 3 | 15 to 32 | One move per shot |
| 16 to 22 s | 3 to 4 | 3 to 4 | 25 to 45 | One move per shot |
| 23 to 30 s | 3 to 6 | 3 to 6 | 35 to 65 | One tracking path, or cuts |
Shot counts are comfortable ranges. Montages can cut faster: keep each shot 1.5 s or longer and say montage in STRUCTURE.
Speech budget: about 2.2 words per second of speaking time. Leave half a second of air before the first word and after the last.
Step 3. Pull out the hard asks
Split the raw prompt into two piles. This comes straight from Sand.ai's own compiler.
Hard asks. Keep every one, word for word.
- Named people, products, objects.
- Events and their order. The ending.
- Exact dialogue and exact on-screen text.
- A named style or medium.
- Any camera, lens, light, colour, ratio, weather, time or pacing instruction.
Soft choices. Pick the calmest option.
- Extra gestures, background action, extra props, transitions, palette details.
When a hard ask is risky (fast motion, many people, hands, small text), keep it. Make everything around it calmer: static camera, deep focus, quiet background, one light.
Step 4. Plan beats
A beat is one readable thing: an action, a reaction, a reveal, a location change.
- List the beats in order.
- Count them against the duration table. Too many? Merge or cut repeats. Keep the setup, the turn and the ending.
- One beat per shot. A setup and its payoff may share a shot.
- Every shot ends on a settled result. Cuts land after an action finishes.
- Each later shot starts with the earlier result already true. Spilled stays spilled. Open stays open.
Continuous take or cuts?
- One place, one action, one camera path: continuous take.
- New place, new time, or a story that needs coverage: hard cuts, stated by the second.
- Sand.ai reports its timeline test hit all 16 cut points it asked for in a 28 s clip. Timing works. Still, written times are a guide. Testers saw cuts land within about half a second.
Step 5. Write the director caption
This layout mirrors the caption Sand.ai trains on: a global caption, a reference bank, a shot timeline, an audio timeline, continuity rules, then requirements. Keep the order. Keep the labels. Full template and field rules: references/caption-format.md.
MAGI-2 · {T2V|I2V|R2V} · {N}s · {ratio} · sound {on|off}
SCENE: One sentence. Who, where, what happens, how it ends.
LOOK: Medium or style. Light source, direction, colour temperature. Contrast. Palette. Lens feel. Texture.
REFERENCES: (R2V only) @Image1 = <job>: <what it shows>. @Video1 = camera path only. @Audio1 = voice of MAYA.
CAST: MAYA, <2 to 4 permanent anchors: age, hair, outfit, one mark>.
PROPS: <OBJECT>, <shape, colour, material, markings>.
STRUCTURE: One continuous take. | 3 shots, hard cuts at 4.0s and 9.0s.
SHOTS:
[0.0–4.0s] Medium shot, 50mm feel, eye level. Camera: slow push-in. MAYA lifts the cup from the counter and takes one sip. Ends with the cup lowered, steam rising.
[4.0–9.0s] Close-up on MAYA. Camera: static. She looks up and says: "Best coffee on the street." Ends on a small smile.
[9.0–12.0s] ...
AUDIO: Ambience: <near and far sources>. Music: <instruments and mood> | No music. Dialogue: English, MAYA only.
SOUND EVENTS: 1.2s ceramic tap as the cup leaves the saucer; 2.0s soft sip.
CONTINUITY: MAYA keeps the same face, hair and green apron in every shot. Window light stays camera left. The cup keeps its white glaze and blue rim.
KEEP OUT: extra people, on-screen captions, music.
Writing rules that matter most. The full list lives in references/caption-format.md.
- Nouns, not adjectives. "Warm tungsten practical, camera right, 3200K" beats "moody, cinematic, epic".
- One camera move per shot. Two moves in one shot cause blur, stretch and identity drift. Every source agrees on this one.
- One principal action per shot. Start state, process, end state.
- Describe what is there, in the positive. "Clear sky" beats "no clouds". Exclusions go in one short KEEP OUT line at the end. Sound exclusions like "No music." are fine and work.
- Same words for the same thing. Write MAYA's anchors once in CAST, then call her MAYA. Never "the woman", then "the girl", then "she" across shots.
- Quote every spoken word.
MAYA says: "..."Paraphrased speech comes out mumbled or invented. - Tie sound to action. If a door slams in SHOTS, the slam is in SOUND EVENTS at the same second.
- No weights or keyword soup. No
::2, no(word:1.3), no "8k, masterpiece, trending". MAGI-2 reads sentences. - Write in English. Keep dialogue, signs and lyrics in their original language, in quotes.
- Text on screen: short and big. Three words or fewer per sign. Hold it still for 1 s or more. Long or small text breaks. For exact packaging, use a real start frame.
Step 6. The sound line
MAGI-2 makes picture and sound in one pass, on one backbone. A missing sound line means the model guesses. It guesses music, usually.
- Name sources, not moods. "Rain on a tin roof, distant foghorn" beats "atmospheric".
- Set distance. One near sound, one far sound.
- Pick music on purpose. Instruments plus mood ("solo upright bass, slow"), or
No music. - Dialogue: language, speaker, exact words in quotes, delivery in two to four words.
- Silent clip: write
Audio: silent.Never leave it blank. - Busy soundscapes are a known weak spot. Sand.ai says so. Keep three to four layers at most.
Step 7. Lint it
Run the linter before anything costs credits.
python scripts/lint_magi2_prompt.py prompt.txt
python scripts/lint_magi2_prompt.py prompt.txt --json
It checks: header settings, timecodes cover 0 to N with no gaps, shots fit the duration budget, one camera move per shot, speech fits the time, reference counts and roles, mood-word stacking, weight syntax, negation outside KEEP OUT, long on-screen text, a sound line when sound is on, and the 15,000 character limit.
- Any ERROR: fix and re-run. Never send.
- WARN: fix unless the user asked for it on purpose.
- Score 90+ is ready. 75 to 89 is fine for a draft. Under 75, rewrite.
No Python handy? Walk the same checks by hand from references/caption-format.md, "Pre-flight checklist".
Step 8. Send it on Sloosh
MCP:
list_modelswithmode: video_gen. Confirmmagi-2limits. They move.- Upload or import assets. Set each role:
start_frame,end_frameorreference. quote_generationwithmodelName: "magi-2", the duration, ratio,generateAudio, andenhancePrompt: false. The prompt is already enhanced. Enhancing twice blurs it.- Show the user the caption and the credits. On 26 Nov 2026 a 10 s 1080p clip with sound quoted 12 credits. Seedance 2.5 quoted about 85 for the same.
generate. Poll every 15 s. MAGI-2 takes about a minute per second of video. A 15 s clip took one tester 18 minutes.
Web app: paste the caption. Turn the Enhance toggle off for this run.
Backend (Adarsh): the Enhance writer for magi-2 should run references/sloosh-system-prompt.md as its system prompt.
Step 9. Review and fix
Watch the result twice. Once for story, once for detail. Check faces and text after the 20 s mark, and small faces anywhere. Sand.ai flags both.
Then use references/failure-modes.md. Find the symptom. Apply the one fix. Re-run on the same seed. Change one thing per run.
The top five fixes:
| You see | Do this |
|---|---|
| Face or outfit drifts | Repeat the exact CAST anchors. Add a clear reference image per angle. Drop the second camera move. |
| Mush in fast action | Slow the action. Static or side-tracking camera. Wider shot. Deep focus. One subject. |
| Wrong or mumbled words | Quote the line exactly. Name the speaker. Cut words to fit 2.2 per second. |
| Random music | Write Music: none. or name the instruments. |
| Cuts land in the wrong place | State cuts by the second. End each shot on a finished action. Fewer shots. |
Mode B. Self-hosted MAGI-2 Preview
Running the open 114B Preview yourself? It only makes 10 s clips. It was trained on Sand.ai's JSON captions.
- Use
references/official/t2v-caption-compiler.md(text only) ori2v-caption-compiler.md(with an image) as the system prompt. Put the user prompt where it says{user_input_text}. - Ask the LLM for JSON with the official schema.
- Render it with
scripts/pe_markdown.py. Pass that Markdown to--prompt-file.
That is exactly what Sand.ai's enhancer.py does. Their example client uses gemini-3.1-pro-preview.
Every state this covers
references/examples.md has a before and after for each. Find the closest one and adapt it.
- Input quality: one word, vague vibe, keyword soup, overstuffed epic, contradictory, non-English, script with no visuals, ad brief, a pasted reference link.
- Modes: T2V, I2V start, I2V start + end, R2V images, R2V + video for camera, R2V + audio for voice, R2V 10-image world tour.
- Lengths: 4 s sting, 10 s hero, 15 s ad, 30 s long take, 30 s multi-shot.
- Content: product hero, food, fashion lookbook, UGC talking head, two-person dialogue, singing, sports, animals, landscape, architecture, vehicles, sci-fi, fantasy, horror, comedy skit, micro-drama, ASMR macro, explainer graphics, logo and text.
- Styles: photoreal, documentary, 2D anime, claymation, 3D animation, painterly style transfer, retro film, phone footage.
Safety and rights
- No real public figure's face or voice without rights. No cloned voices of people who did not agree.
- No copyrighted characters, logos or brand marks the user does not own.
- Brand work: only the brand's own assets. Packshots from a real photo, not a model's guess.
- Label AI-made scenes in ads.
Output
- The director caption, ready to paste, plus the settings line.
- The lint report, with its score.
- One line on what you changed and why. Plain words.
- When there were real trade-offs, a second variant that changes one thing.
Quality bar
- Lint score 90 or higher, zero errors
- Every hard ask from the raw prompt survives, word for word where it should
- One camera move and one principal action per shot
- Sound line present, with music on purpose or
No music. - Every reference file has one job, named in REFERENCES
- Sent with
enhancePrompt: false - The decision tree file was updated
Handoffs
- Needs reference files first?
magi-2-reference-scout. - Big multi-shot film?
storyboard-firstfor keyframes, then this skill per shot. - Want a winner reused? Save the caption into a Sloosh space with
space-builder. - Sand.ai changed something?
magi-2-knowledge-refreshupdates this skill.
References
All live inside this skill folder, so the skill still works when copied alone.
references/specs.md— limits, modes, prices, Preview vs full, known weak spots. Dated.references/caption-format.md— the full template, field rules, and the pre-flight checklist.references/timing.md— duration budgets, shot lengths, speech pacing, cut grammar.references/vocabulary.md— camera, lens, light, motion, materials, sound. Words MAGI-2 responds to.references/content-profiles.md— 26 content types with camera, light, motion and sound defaults.references/sample-runs.md— ten real Sloosh runs, what landed, what missed, and the fix for each.references/failure-modes.md— symptom, cause, fix. Thirty-plus rows.references/examples.md— before and after for every state above.references/sloosh-system-prompt.md— the drop-in system prompt for the Sloosh Enhance writer.references/sources.md— every guide, page and video this skill learned from, with dates.references/official/— Sand.ai's own enhancer prompts and sample captions. Apache 2.0.scripts/lint_magi2_prompt.py— the pre-flight linter.scripts/pe_markdown.py— Sand.ai's JSON-to-Markdown renderer for Mode B.
Rules
- No client-confidential data, contracts or financials in this file.
- Brand work happens inside that brand's project.
- If a step is wrong, propose a fix. See CONTRIBUTING.md.
Changelog
- 1.0.2 (2026-11-29): synced from the shopos-skill-tree repo.
failure-modes.mdnow has the newer rows (blank packs, patches, loose food, glossy clay, camera position). The duplicatefailure-modes (v1.0.1).mdis gone. - 1.0.0 (2026-11-26): first full version. Built from Sand.ai's official t2v and i2v compilers, the two MAGI-2 guides Sai shared, Atlas Cloud, Imagera, Seeddance and Apiyi guides, 36Kr hands-on tests, Sand.ai's launch notes, and YouTube tests. Sloosh limits and credits checked live.