wan-reference-video

wan-reference-video is a skill for Claude Code, Codex from XiaoLuoLYG/GOD. It costs 48 tokens per session (820 once invoked), scanned A, original, Apache-2.0.

A prompt-writing guide for Alibaba Wan reference-to-video generation. It explains how to describe characters, actions, dialogue, scenes, and reference-image order so the generated clip uses the intended subjects and setting.

In plain words
What is it for?
It helps write scene prompts, label character and environment images, attach references consistently, and keep dialogue and motion instructions within the stated limits.
Why use it?
It reduces identity, placement, and scene drift caused by ambiguous prompts or references attached in the wrong order.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps write scene prompts, label character and environment images, attach references consistently, and keep dialogue and motion instructions within the stated limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaoluolyg/god/wan-reference-video
About the project

GOD is a control room for observing and directing societies of language-model agents running in simulated worlds. It lets researchers inspect replays, question individual agents, alter future events, reset simulations, and export experiments for reuse. The catalogue entries are skills and agents for operating and investigating these simulations.

XiaoLuoLYG/GOD · 1,294 stars · on GitHub · xiaoluolyg.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add XiaoLuoLYG/GOD --skill wan-reference-video
Clone the repo
git clone --depth 1 https://github.com/XiaoLuoLYG/GOD

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wan-reference-video

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoluolyg/god/wan-reference-video/github.svg)](https://agentmods.dev/skills/xiaoluolyg/god/wan-reference-video)
Your own site
<a href="https://agentmods.dev/skills/xiaoluolyg/god/wan-reference-video"><img src="https://agentmods.dev/badge/skills/xiaoluolyg/god/wan-reference-video/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wan-reference-video

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoluolyg/god/wan-reference-video"><img src="https://agentmods.dev/badge/skills/xiaoluolyg/god/wan-reference-video.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 820 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00820
Opus 5.5 $0.00019 $0.00328
Sonnet 5.5 $0.00010 $0.00164
Haiku 4.5 $0.00005 $0.00082

Measured 18d ago against content hash 41aa14792bc9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wan-reference-video scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

jiuwenclaw/jiuwenswarm/server/runtime/designer/skills/wan-reference-video/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Wan reference-to-video (R2V) skill

Domain-agnostic. Applies to every scene and posture — not dinner/church/etc. hardcodes.

Official prompt formula (Alibaba Model Studio)

Character (character1 / character2 …)
+ Action
+ Lines (optional, exact speech_line only)
+ Scene (environment / Scene N)
  • Label subjects character1… in the same order as attached character_specs reference images.
  • Environment = last attached reference (Scene N scene_specs) — architecture/light/props only, no cast.
  • Prefer English Image 1 / character1 style identifiers matching attach order.
  • Each character reference should contain one subject (single-subject character_specs plate).
  • Total refs are limited (typically ≤5) — prefer: optional continuity last-frames + on-screen character_specs + one scene_specs.
  • Keep the full motion prompt ≤4000 characters (self-limit; pipeline sends full text).

Attach order (Design clip unit)

  1. Optional same-scene prior-clip last-frames (newest first) — blocking / localization only.
  2. On-screen character_specs → character1, character2, …
  3. Scene N scene_specs LAST — empty of people.

Authority:

  • Identity / wardrobe → character_specs (character_consistency)
  • Geography / light → scene_specs (scene_consistency)
  • Start blocking → newest prior last-frame (if any); else storyboard contact pose (shot_consistency across the clip chain)

Hard placement rules (all scenes)

When placing people from studio character_specs into an empty scene_specs environment:

  • CONTACT / ANTI-PENETRATION: bodies never intersect solid furniture, walls, props, or each other.
  • Seated / kneeling / reclining / leaning → visible weight on the support surface — on, not through, not floating.
  • Character_specs are often standing portraits — repose for this clip; do not paste standing legs into chairs/desks/floors as if fused.
  • Hands grasp prop exteriors; limbs are not buried inside objects.
  • Depth order matches storyboard (in front of / behind props) — never merged into prop volume.

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago First seen · 72 lines · 48 tokens per session scan A 41aa14792bc9

Subscribe to this mod's changes

wan-reference-video is a skill published in the GitHub repository XiaoLuoLYG/GOD (1,294 stars, last pushed 6d ago), licensed Apache-2.0. It adds 48 tokens to every session and 820 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

wan-reference-video compared with skills from other repositories

wan-reference-video next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wan-reference-videoXiaoLuoLYG/GODSkill1.3k6d agoApache-2.0A48Claude Code, Codex
canopykruslim/canopySkill14mo agononeA0Claude Code, Codex
create-tech-designhumanlayer/humanlayerSkill13k8d agoApache-2.0A16Claude Code, Codex
iterate-tech-designhumanlayer/humanlayerSkill13k8d agoApache-2.0A16Claude Code, Codex
iterate-implementationhumanlayer/humanlayerSkill13k8d agoApache-2.0A16Claude Code, Codex
agent-in-the-loopsamugit83/redamonSkill3.6k2d agoMITA150Claude Code, Codex
tencent-ima-wikizj-unicom-ai/UniEmployeeSkill88710d agoMITA127Claude Code, Codex