reference-binder
Skill2 starsChanged 7 months agoApache-2.0View on GitHub
Selects which master-sheet reference images bind to each clip's multi-reference slots and start/end frames within per-engine slot limits. Outputs reference_binding.json.
In this repository31 other files it gives its agents.
- blocking-sheetSkill
- camera-sheetSkill
- character-poolSkill
- character-sheetSkill
- cinematic-shotSkill
- clip-segmentationSkill
- copy-tone-checkSkill
- direction-sheetSkill
- engine-clip-specSkill
- facs-expressionSkill
- format-plannerSkill
- guardrail-checkSkill
- image-prompt-foundationsSkill
- intake-routerSkill
- location-sheetSkill
- model-adapterSkill
- music-generatorSkill
- music-rights-checkSkill
- mv-builderSkill
- post-production-specSkill
- production-briefSkill
- props-sheetSkill
- qa-reviewSkill
- runway-promptSkill
- seedance-promptSkill
- series-closerSkill
- series-variationSkill
- storyboard-sheetSkill
- visual-bibleSkill
- wardrobe-sheetSkill
- workflow-curatorSkill
The file
Files
Reference Binder
씬/컷별로 어떤 마스터시트 레퍼런스 이미지를 어떤 슬롯에 묶을지 결정하는 ★핵심 스킬★. "수십 장의 마스터시트 이미지를 한 생성 호출에 다 넣을 수 없다"는 제약을 시스템적으로 푼다. 각 clip_id에 대해 character/wardrobe/props/location/storyboard/camera/blocking 마스터시트의 모든 레퍼런스 슬롯 중, 이 컷의 정체성·연속성을 정의하는 데 꼭 필요한 것만 엔진 슬롯 한도 안에서 선별·역할 매핑한다.
When to use
- clip-segmentation이 클립 목록을 확정한 직후, runway-prompt/seedance-prompt 진입 이전
- 한 컷에 캐릭터·의상·소품·배경 레퍼런스가 동시에 필요해 "슬롯이 모자랄 것 같을" 때
- 직전 클립의 마지막 프레임을 다음 클립의 연속성 레퍼런스로 승계해야 할 때
- 같은 캐릭터/장소가 여러 클립에 걸쳐 등장하는데 어떤 시트를 재사용할지 결정해야 할 때
- engine-clip-spec이 보고한 엔진 슬롯 한도에 바인딩이 맞는지 사전 검증할 때
단발 1컷·레퍼런스 1~2장짜리 작업이면 이 스킬은 과잉. 그 경우 prompt 스킬에 인라인으로 슬롯을 채운다.
핵심 제약
한 생성 호출에 들어가는 레퍼런스는 엔진 슬롯 수만큼이 상한. 마스터시트가 30장이어도, 컷 하나에 묶을 수 있는 건 소수다.
이 룰은 협상 불가능. 엔진 자체 제약이며, 정확한 슬롯 수는 버전 의존(version-dependent) 이라 이 스킬에서 단정하지 않는다. 런타임 한도는 engine-clip-spec이 보고하고, 채워 넣을 때의 태그 문법은 runway-prompt/seedance-prompt가 책임진다.
Inputs
reference_binder_input:
clips: "clip-segmentation의 clips[] (clip_id, contains_shots, ends_on/last_frame, ...)"
master_sheets:
character: "character-sheet / character-pool의 시트 + reference_image_id들"
wardrobe: "wardrobe-sheet의 룩별 이미지"
props: "props-sheet의 소품·인터랙션 이미지"
location: "location-sheet의 배경·establishing 이미지"
storyboard: "storyboard-sheet의 프레임 스케치"
camera: "camera-sheet의 구도 레퍼런스"
blocking: "blocking-sheet의 동선·인물 배치"
engine: "runway | seedance | kling (intake-router/model-adapter에서)"
engine_slot_report: "engine-clip-spec이 보고한 런타임 슬롯 한도 (version-dependent)"
prev_clip_outframe: "직전 클립 마지막 프레임 image_id (연속성 승계용, 있으면)"선별 알고리즘 (반드시 명문화)
각 clip_id에 대해, 후보 레퍼런스를 아래 고정 우선순위로 정렬한 뒤 슬롯 한도까지 채운다.
| 우선순위 | 카테고리 | 묶는 이유 | 대표 source_sheet |
| 1 | 캐릭터 얼굴/정체성 | 인물 일관성의 근간. 빠지면 다른 사람이 됨 | character-sheet (turnaround/face) |
| 2 | 의상 룩 | 같은 인물이라도 룩이 어긋나면 연속성 붕괴 | wardrobe-sheet |
| 3 | 핵심 소품·인터랙션 | 손에 든 물건·동작 대상. 내러티브 앵커 | props-sheet |
| 4 | 장소 배경 | 공간 정합성. 광원·재질 단서 제공 | location-sheet |
| 5 | 스타일/룩 | 그레이드·렌즈감·톤 통일 | storyboard/camera/aesthetic |
컷에 인물이 없으면 1·2가 비고 4·5가 앞으로 당겨진다. ECU 소품 컷이면 3이 사실상 1순위가 된다. 우선순위는 "이 컷의 정체성을 정의하는 데 필수인가"로 판단하며, 단순 분위기용은 항상 후순위.
슬롯 초과 시 전략 (over-budget actions)
후보 수가 슬롯 한도를 넘으면, 아래를 순서대로 적용하고 모든 결정을 over_budget_actions[]에 로그로 남긴다.
| 전략 | 동작 | 적용 시점 |
| merge | 우선순위 낮은 다수를 합성 레퍼런스 이미지 1장으로 머지 (image-generator 위임) | 의상+소품처럼 한 인물에 붙는 요소가 여러 장일 때 |
| representative | 캐릭터 turnaround 여러 각도 → 대표 1장으로 압축 | 같은 시트의 다중 각도가 슬롯을 잡아먹을 때 |
| continuity_carry | 직전 클립 outframe을 연속성 레퍼런스로 승계, 캐릭터 시트 슬롯 1개 절약 | 같은 인물이 직전 컷에서 막 등장했을 때 |
| drop | 비핵심(우선순위 5) 레퍼런스를 떨어뜨림 — 반드시 rationale 로그 | 위 셋으로도 슬롯이 모자랄 때 |
⚠️ drop은 최후수단. 우선순위 1·2(얼굴·의상)는 절대 drop하지 않는다. 머지·승계로 슬롯을 만들어내고도 부족하면 클립을 더 쪼개라고 clip-segmentation에 역질의한다.
엔진 슬롯 모델 (버전 의존, 단정 금지)
| 엔진 | 슬롯 채널 (개념) | 비고 |
| Runway (기본) | t2i: referenceImages:[{uri,tag}] — promptText 내 @Tag 인용(예: @product), 최대 3개, 태그 소문자 3~16자. 비디오(seedance2): references:[{type:"image",uri}] (1개 이상, 상한 version-dependent). first/last frame: promptImage:[{uri,position:"first"|"last"}] — references와 상호배타적인 별도 채널. URI = URL|base64|runway:// | 태그 문법·실값은 runway-prompt가 채움, 런타임 한도는 engine-clip-spec |
| Seedance | 이미지 다수 + 비디오/오디오 채널 | 이미지 채널 수 version-dependent → engine-clip-spec / seedance-prompt |
| Kling | 상응하는 다중 이미지 + start/end frame | 한도·명칭은 model-adapter 확인 후 매핑 |
슬롯 개수를 이 문서에 박지 말 것 (Runway t2i
referenceImages만 최대 3개로 확정, 비디오references상한은 version-dependent). 그 외는 항상engine_slot_report에서 받은 런타임 값으로 한도를 정한다. first/last frame(promptImage:[{uri,position}])은 일반 reference 슬롯과 별도 채널이며 seedance2에서references와 상호배타적이다. 머지·드롭 대상에서 제외한다.
프롬프트 길이 제한 (3500자)
각 씬/클립 프롬프트는 3500자(공백 포함 문자 수) 를 넘지 않는다. 초과 시 아래를 순서대로 적용한다.
- 불필요한 수식어 압축 — 중복·장식성 형용사를 줄여 핵심 묘사만 남긴다.
- 레퍼런스를 reference_binding로 위임 — 텍스트로 길게 쓴 인물·의상·배경 묘사를 reference_binding의 슬롯/
@태그로 대체해 본문 텍스트를 축약한다. - clip-segmentation으로 클립 분할 — 그래도 길면 clip-segmentation에 분할을 역질의해 컷당 프롬프트 분량을 낮춘다.
이 상한은 엔진 무관(Runway/Seedance/Kling 공통).
⚠️ reference-binder 특이사항 — reference-binder의 슬롯 출력(역할·소스·근거 텍스트)이 하위 어댑터 프롬프트의 3500자 예산을 넘기지 않도록, 슬롯 텍스트를 간결화·우선순위화한다(핵심 슬롯 우선, 비핵심 설명은 압축/생략).
Output: reference_binding.json
clip별로 어떤 시트의 어떤 image가 어떤 role로 묶였는지, 초과 처리·연속성 승계·근거를 모두 기록한다.
{
"project_id": "FMGmember_2026Q3_V3",
"skill_version": "reference-binder v0.7",
"engine": "runway",
"engine_slot_report": { "reference_slots_max": "version-dependent (runtime)", "has_first_frame": true, "has_last_frame": true },
"clips": [
{
"clip_id": "CLIP-3",
"engine": "runway",
"slots": [
{ "role": "character_identity", "source_sheet": "character-sheet", "source_image_id": "FMG_CHAR_A_REVIEWER/face_3q", "priority": 1, "ref_tag": "@char_a" },
{ "role": "wardrobe_look", "source_sheet": "wardrobe-sheet", "source_image_id": "FMG_CHAR_A/indoor_navy", "priority": 2, "ref_tag": "@look_a" },
{ "role": "key_prop", "source_sheet": "props-sheet", "source_image_id": "PROP_FOUNTAIN_PEN/in_hand", "priority": 3, "ref_tag": "@pen" }
],
"start_frame": { "source_sheet": "storyboard-sheet", "source_image_id": "BF30-S3/frame_in" },
"end_frame": { "source_sheet": "storyboard-sheet", "source_image_id": "BF30-S3/frame_out" },
"continuity_carry": { "from_clip": "CLIP-2", "source_image_id": "CLIP-2_outframe", "used_for": "start_frame" },
"over_budget_actions": [
{ "action": "drop", "target": "location-sheet/LOC_STUDY/wide", "priority": 4, "reason": "ECU 컷이라 배경 거의 안 보임 — 비핵심 드롭" }
],
"rationale": "인물·의상·펜이 컷 정체성. 배경은 ECU라 드롭, start_frame은 직전 클립 outframe 승계로 일관성 확보."
}
]
}두 번째 예시 — Seedance, 슬롯 초과 → merge 발동
{
"project_id": "MONEV_MV_ep04",
"skill_version": "reference-binder v0.7",
"engine": "seedance",
"engine_slot_report": { "image_channels_max": "version-dependent (runtime)", "has_video_channel": true, "has_audio_channel": true },
"clips": [
{
"clip_id": "CLIP-7",
"engine": "seedance",
"slots": [
{ "role": "character_identity", "source_sheet": "character-sheet", "source_image_id": "MONEV_CHAR_A/face_front", "priority": 1, "channel": "@image1" },
{ "role": "wardrobe_props_merged", "source_sheet": "image-generator", "source_image_id": "GEN_MERGE_CLIP7/look+guitar", "priority": 2, "channel": "@image2",
"merged_from": ["wardrobe-sheet/MONEV_CHAR_A/stage_jacket", "props-sheet/PROP_GUITAR/strap_on"] },
{ "role": "location_bg", "source_sheet": "location-sheet", "source_image_id": "LOC_STAGE/spotlight_wide", "priority": 4, "channel": "@image3" }
],
"start_frame": { "source_sheet": "blocking-sheet", "source_image_id": "EP04-S7/center_stage" },
"end_frame": null,
"continuity_carry": null,
"over_budget_actions": [
{ "action": "merge", "targets": ["wardrobe-sheet/MONEV_CHAR_A/stage_jacket", "props-sheet/PROP_GUITAR/strap_on"],
"into": "GEN_MERGE_CLIP7/look+guitar", "reason": "의상+기타를 한 합성 레퍼런스로 머지해 이미지 채널 1개 절약" }
],
"rationale": "MV 무대 컷. 얼굴·의상+소품 머지·무대 배경 3장으로 슬롯 정리. end_frame은 다음 클립이 컷 전환이라 불필요."
}
]
}Heuristics
- 얼굴·의상은 신성불가침 — 우선순위 1·2는 절대 drop하지 않는다. 슬롯이 모자라면 다른 걸 머지/승계.
- ECU·소품 컷은 배경을 버려라 — 화면에 거의 안 보이는 location 레퍼런스는 1순위 drop 후보.
- 연속성 승계로 슬롯을 벌어라 — 직전 컷에서 막 나온 인물이면 outframe을 start_frame으로 써 캐릭터 시트 슬롯을 아낀다.
- turnaround는 대표 1장 — 정면/측면/후면을 다 넣지 말고 컷 각도에 맞는 1장만. 나머지는 representative로 압축.
- 머지는 같은 인물에 붙는 요소끼리 — 의상+소품처럼 한 몸에 붙는 건 머지가 깔끔. 인물+배경 머지는 정합성 깨짐.
- start/end frame은 reference 슬롯과 별개 채널 — 헷갈려서 슬롯 예산에 합산하지 말 것.
- 슬롯 수를 추측하지 마라 — 항상 engine-clip-spec의 런타임 보고를 신뢰. 버전이 바뀌면 한도도 바뀐다.
- over_budget_actions가 매 컷마다 길어지면 클립이 과부하 — clip-segmentation에 분할을 역제안.
시스템 호출
이 스킬은 다른 스킬과 다음과 같이 협력한다.
- 상위 입력:
clip-segmentation이 클립 목록을 확정하면 → reference-binder가 컷별 바인딩 수행 - 마스터시트 소스:
character-sheet/character-pool,wardrobe-sheet,props-sheet,location-sheet,storyboard-sheet,camera-sheet,blocking-sheet— 모든 시트의 reference_image_id를 후보로 받음 - 슬롯 한도 위임:
engine-clip-spec이 런타임 슬롯/프레임 채널 한도를 보고 → 그 값으로 예산 결정 - 합성 위임: 슬롯 초과 merge 시
image-generator에 합성 레퍼런스 1장 생성을 요청 - 하위 소비: 확정된 reference_binding.json →
runway-prompt/seedance-prompt가@태그·채널에 실제 이미지를 채워 호출 - 모델 매핑:
model-adapter가 엔진별 슬롯 채널 명칭을 정규화 - 순서: clip-segmentation → reference-binder → engine-clip-spec(한도 확인) → runway-prompt/seedance-prompt
청사진 매핑
청사진의 reference_binding claim에 직접 대응. v0.6까지는 slot 선별이 prompt 스킬 안에 암묵적으로 묻혀
"왜 이 레퍼런스가 빠졌는지"가 추적 불가였으나, v0.7에서 전담 스킬로 분리해 rationale·over_budget_actions로 명시화했다.
오픈크랩 컨텍스트
- 멀티모달 레퍼런스 채널·소스 바인딩 절차: AI Video Seedance Creative Production OS Workflow (
7f035d92-dc8a-4642-bf05-84482a66e4c3), Seedance 2.0 프롬프팅 가이드 (2f7fabb8-5396-4872-9607-0ef919cb9816) - 시네마틱 레퍼런스 이미지 슬롯 운용·합성 레퍼런스: 시네마틱 이미지 생성 가이드 (
4a5975a9-583d-49a6-a2cb-edeac9c85f35) - 단편·MV 컷 단위 레퍼런스 관리: AI로 단편영화 만들기 가이드 (
4c93ab10-d73a-42ce-920d-780487ac3b9b), AI로 뮤직비디오 만들기 가이드 (5864f0bc-bbe5-46fd-a37e-135ea90eb8f7) - 슬롯 한도·채널 수치는 팩에 단정 인용하지 말 것 — version-dependent, engine-clip-spec 런타임 확인에 위임
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

