engine-clip-spec
Skill2 starsChanged 7 months agoApache-2.0View on GitHub
Engine-agnostic clip spec (IR): defines one cut's references, start/end frame, camera, motion, duration (<=15s), and audio in neutral JSON for Runway/Seedance/Kling adapters to render.
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
- 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
- reference-binderSkill
- runway-promptSkill
- seedance-promptSkill
- series-closerSkill
- series-variationSkill
- storyboard-sheetSkill
- visual-bibleSkill
- wardrobe-sheetSkill
- workflow-curatorSkill
The file
Files
Engine Clip Spec
한 컷(cut)의 생성 의도를 엔진 중립 JSON(IR, intermediate representation) 으로 정의하는 스킬. 한 번 IR로 써두면 Runway·Seedance·Kling 어느 엔진으로도 출력할 수 있도록, 어댑터(runway-prompt / seedance-prompt / model-adapter)가 각 엔진 문법으로 번역해 렌더합니다.
핵심 사상: "어떤 컷을 만들지(WHAT)"는 IR이 결정하고, "어떤 엔진 문법으로 쓸지(HOW)"는 어댑터가 결정한다. IR은 실촬영이 아니라 생성용 레퍼런스 슬롯·이미지 프롬프트의 명세다 — 카메라도 배우도 없고, 오직 생성 모델에 줄 지시만 있다.
When to use
- shot-designer가 한 컷을 확정한 뒤, 실제 생성 호출 직전 — 컷의 의도를 엔진 중립으로 고정할 때
- 같은 컷을 여러 엔진으로 A/B 생성해 비교하려 할 때 (IR 하나 → 어댑터 N개)
- clip-segmentation이 긴 영상을 클립들로 쪼갠 뒤, 각 clip_id를 생성 명세로 구체화할 때
- 엔진을 바꿔야 할 때 (Runway 기본 → 특정 컷만 Seedance/Kling) — IR은 그대로, engine_targets만 교체
- 외주·후속 작업자에게 "이 컷이 무엇인지"를 엔진 의존성 없이 인계할 때
단일 엔진으로 단발 생성만 할 거면 과잉일 수 있음. 그래도 재생성·엔진 전환·시리즈 일관성이 조금이라도 예상되면 IR로 쓰는 게 안전하다.
Inputs
- 컷 의도 (shot-designer의 한 행: size, angle, lens, lighting, look + clip_id)
- 레퍼런스 바인딩 (reference-binder가 슬롯에 매핑한 source들 — 캐릭터/로케이션/스타일)
- 카메라 명세 (camera-sheet의 move/lens/speed)
- 클립 경계 (clip-segmentation의 first_frame / last_frame, duration_s)
- 모션 의도 (motion-director / facs-expression — 얼굴 노출 컷일 때만)
- 오디오 의도 (narrative-weaver의 비트별 audio anchor)
Inputs/Outputs 스키마
engine_clip_spec: # 하나의 컷 = 하나의 IR
clip_id: "CLIP-3" # clip-segmentation의 clip_id와 1:1
intent: "주인공이 창가로 천천히 다가가 밖을 응시" # 1줄 의도 요약
duration_s: 8.0 # <=15. 단, 엔진별 실제 최소/최대는 version-dependent
duration_policy: "soft" # soft=어댑터가 엔진 한계에 맞춰 조정 가능 / hard=초과 시 분할
prompt_char_budget: 3500 # 어댑터 렌더 결과 프롬프트의 공백 포함 문자 수 상한 (기본 3500, 엔진 무관)
references: # reference-binder가 채우는 슬롯 (개수는 엔진별로 다름)
- role: "first_frame" # 이 컷의 시작 프레임 레퍼런스
source: "ref://CHAR_A/keyframe_window" # reference-binder의 resolved source
- role: "character"
source: "ref://CHAR_A/face_lock"
- role: "style"
source: "ref://LOOK/grade_plate"
start_frame: "주인공 실내 중앙, 창문은 프레임 우측, 역광 림라이트"
end_frame: "주인공 창가, 옆얼굴 실루엣, 손은 창틀에" # 다음 클립 연결점
camera: # camera-sheet에서 가져옴 (엔진 중립 어휘)
move: "dolly_in"
lens_mm: 35
speed: "slow"
handheld: false
motion_action: "걸어가 멈춘 뒤 고개를 살짝 든다" # 피사체 동작 (자연어 + AU 가능)
audio_intent: # 의도만. 실제 트랙은 editor/music-generator가 처리
diegetic: "발걸음, 옷 스침"
score: "low strings swell"
sfx: null
negative: ["얼굴 왜곡", "추가 인물", "로고", "텍스트 자막"] # 회피 항목
engine_targets: # 우선순위 목록. 첫 항목이 기본
- engine: "runway" # v0.7 기본 엔진
priority: 1
- engine: "seedance"
priority: 2
- engine: "kling"
priority: 3
adapter_notes: # 어댑터별 힌트 (엔진 능력 차이 흡수용)
runway: "Gen 카메라 컨트롤로 dolly_in 직접 지시"
seedance: "@image1 = first_frame, 시간 마커로 동작 분할"
kling: "start/end frame 양쪽 바인딩으로 보간"
continuity: # 클립 간 일관성 (clip-segmentation 연동)
prev_clip: "CLIP-2"
next_clip: "CLIP-4"
carry_seed: 42 # 캐릭터 일관성 (엔진별 효과는 version-dependent)
match_on: "end_frame of CLIP-2 == start_frame of CLIP-3"핵심 룰
- IR은 엔진 어휘를 쓰지 않는다.
@image1,gen-3,kling 3.0 같은 엔진 특정 토큰은 IR에 넣지 말고adapter_notes`로 미룬다. IR은 어휘 중립. - duration_s <= 15 는 IR 레벨의 상한. 그러나 엔진별 실제 최소/최대 초·레퍼런스 슬롯 개수·키프레임 지원 여부는 버전마다 다르다(version-dependent) — IR에 확정 수치를 박지 말고, 런타임 확인은 어댑터에 위임한다(아래 표 참고).
- 레퍼런스는 슬롯(role)으로 추상화. 실제 source 경로 해석·슬롯 개수 적합성 검사는 reference-binder가 담당. IR은 "어떤 역할의 레퍼런스가 필요한지"만 선언.
- start_frame / end_frame은 항상 명시. 단일 프롬프트 엔진이라 end_frame을 못 쓰더라도, 어댑터가 무시하면 그만 — IR에는 연결 의도를 남겨야 clip-segmentation·editor가 컷을 이어붙인다.
- engine_targets는 우선순위 목록. v0.7 기본은
runwaypriority 1. 컷별로 더 잘 맞는 엔진이 있으면 우선순위를 바꾸되, 한 IR은 같은 컷을 표현한다(엔진을 바꿔도 intent는 불변). - negative는 엔진 무관 회피 의도. 엔진 문법 변환은 어댑터가, 권리/안전 회피(로고·실존 인물·감독명)는 model-adapter / guardrail-check가 최종 차단.
프롬프트 길이 제한 (3500자)
각 씬/클립 프롬프트는 3500자(공백 포함 문자 수) 를 넘지 않는다. 이 상한은 엔진 무관(Runway / Seedance / Kling 공통)이며, 어댑터가 렌더한 최종 프롬프트 텍스트에 적용된다.
초과 시 다음 순서로 줄인다.
- 불필요한 수식어 압축 — 중복·장식적 형용사, 동의 반복, 과잉 분위기 묘사를 먼저 쳐낸다.
- 레퍼런스를 reference_binder로 위임해 텍스트 축약 — 길게 풀어 쓴 캐릭터·로케이션·스타일 묘사를
references[]슬롯(ref://...)으로 옮겨 프롬프트 본문에서는 슬롯 참조만 남긴다. - 그래도 길면 clip-segmentation으로 클립 분할 — 한 컷이 단일 프롬프트로 3500자 안에 안 들어가면 의도가 과적된 것이므로 clip-segmentation으로 되돌려 클립을 쪼갠다.
이 스킬은 위 규칙의 정본(canonical)이다. 다른 프롬프트/엔진 스킬(runway-prompt / seedance-prompt / model-adapter / prompt-engineer 등)은 이 절을 단일 진실로 참조한다.
- IR 스키마에
prompt_char_budget(기본3500)을 둔다. 컷별로 더 낮은 상한이 필요하면 이 값을 낮춰 선언할 수 있으나, 상향은 금지(3500이 공통 천장). - validation 규칙: 어댑터가 렌더한 프롬프트의 공백 포함 문자 수(
char_count)가prompt_char_budget(max 3500) 이하여야 한다. 초과하면 IR을 통과시키지 말고 위 1→2→3 순서를 적용한다. - 어댑터 준수 의무: runway-prompt / seedance-prompt / model-adapter는 자신이 렌더한 최종 프롬프트의
char_count를 계산해validation.rendered_prompt_char_count에 엔진별로 기록하고,prompt_within_char_budget를 셋한다. 엔진별 토큰화 차이와 무관하게 기준은 공백 포함 문자 수다.
엔진 능력 차이 표 (값은 version-dependent)
IR이 흡수해야 하는 능력 차이. 확정 수치는 절대 IR에 박지 말 것 — 런타임에 engine-clip-spec → 어댑터가 실제 엔진 스펙으로 검증한다.
| 능력 | Runway (기본) | Seedance | Kling | IR 처리 |
| 레퍼런스 슬롯 개수 | 이미지 생성 referenceImages 최대 3개. 비디오(seedance2) references는 1개+ 가능하나 상한 version-dependent | version-dependent | version-dependent | references[] 길이로 선언, 적합성은 reference-binder |
| start/end 키프레임 | seedance2 i2v 전용 (promptImage:[{uri,position:"first"},{uri,position:"last"}], references와 상호배타). gen4_turbo 등 타 모델 미지원 | first-frame 중심 | start+end 보간 강점 | start_frame/end_frame 항상 작성, 미지원 시 어댑터가 drop |
| 카메라 컨트롤 | 구조화된 camera control 파라미터 없음 — promptText 자연어로만 지시(예: "Camera slowly zooms out") | 프롬프트 기술 | 프롬프트 기술 | camera 중립 어휘 → 어댑터가 번역 |
| 오디오 생성 | version-dependent | version-dependent | version-dependent | audio_intent는 의도만, 실제 트랙은 editor/music-generator |
| 클립 최대 길이 | seedance2 2–15s / gen4_turbo 5·10s / veo3 8s / veo3.1·veo3.1_fast 4·6·8s. gen4.5·gen4_aleph·act_two는 version-dependent | version-dependent | version-dependent | duration_s<=15 IR 상한, 엔진 한계는 어댑터가 확인 |
| 최소 길이 | seedance2 2s (모델별 enum 내 최솟값). 그 외 모델은 위 enum 최솟값 / version-dependent | version-dependent | version-dependent | 미달 컷은 어댑터가 패딩 생성 후 editor가 트림 |
⚠️ Runway 셀의 확정값은 v0.8 SSOT(
docs/runway-capabilities.md) 기준 실값이다. seedance2 ratio는 12종 enum이 확정돼 있으나(1280:720/720:1280/960:960/1112:834/834:1112/1470:630/992:432/864:496/752:560/640:640/560:752/496:864), veo3·veo3.1·gen4.5의 ratio enum은 레포 미확인이라 어댑터에 위임한다. version-dependent로 남은 셀(Seedance/Kling, gen4.5·aleph·act_two duration, 비디오 reference 상한)은 엔진 버전 갱신 시 변할 수 있다. "런타임 진실 소스"는 IR이 아니라 어댑터(runway-prompt / seedance-prompt / model-adapter)다.
"한 번 IR, 어느 엔진으로도" 패턴
shot-designer 컷 1행
│
▼
engine-clip-spec (IR JSON) ──── 엔진 중립, 단일 진실
│
├──▶ runway-prompt (priority 1, v0.7 기본)
├──▶ seedance-prompt (priority 2)
└──▶ model-adapter → kling (priority 3)- 엔진 전환: IR은 손대지 않고
engine_targets우선순위만 재정렬 → 어댑터 재호출. - A/B 생성: 동일 IR을 runway-prompt와 seedance-prompt에 동시 투입 → qa-review가 비교.
- 장애 우회: priority 1 엔진이 컷 요구(예: end_frame 보간)를 못 받으면 어댑터가 다음 priority로 폴백.
Output Format
{
"skill_version": "engine-clip-spec v0.7",
"project_id": "...",
"clip_id": "CLIP-3",
"intent": "주인공이 창가로 천천히 다가가 밖을 응시",
"duration_s": 8.0,
"duration_policy": "soft",
"prompt_char_budget": 3500,
"references": [
{ "role": "first_frame", "source": "ref://CHAR_A/keyframe_window" },
{ "role": "character", "source": "ref://CHAR_A/face_lock" },
{ "role": "style", "source": "ref://LOOK/grade_plate" }
],
"start_frame": "주인공 실내 중앙, 창문 우측, 역광 림라이트",
"end_frame": "주인공 창가, 옆얼굴 실루엣, 손은 창틀에",
"camera": { "move": "dolly_in", "lens_mm": 35, "speed": "slow", "handheld": false },
"motion_action": "걸어가 멈춘 뒤 고개를 살짝 든다",
"audio_intent": { "diegetic": "발걸음, 옷 스침", "score": "low strings swell", "sfx": null },
"negative": ["얼굴 왜곡", "추가 인물", "로고", "텍스트 자막"],
"engine_targets": [
{ "engine": "runway", "priority": 1 },
{ "engine": "seedance", "priority": 2 },
{ "engine": "kling", "priority": 3 }
],
"adapter_notes": {
"runway": "카메라 컨트롤로 dolly_in 직접 지시",
"seedance": "first_frame를 소스 바인딩, 시간 마커로 동작 분할",
"kling": "start/end frame 양쪽 바인딩으로 보간"
},
"continuity": {
"prev_clip": "CLIP-2",
"next_clip": "CLIP-4",
"carry_seed": 42,
"match_on": "end_frame(CLIP-2) == start_frame(CLIP-3)"
},
"validation": {
"duration_under_15s": true,
"primary_engine_set": true,
"references_have_roles": true,
"start_and_end_frame_present": true,
"runtime_limits_deferred_to_adapter": true,
"prompt_char_budget": 3500,
"rendered_prompt_char_count": { "runway": 2840, "seedance": 3120, "kling": 2675 },
"prompt_within_char_budget": true
}
}휴리스틱
- IR에 엔진 토큰을 쓰고 싶어지면 멈춰라 — 그건 어댑터의 일이다. IR은 "무엇을"만.
- 확정 초·슬롯 수를 외우지 말 것 — 모두 version-dependent. 못 쓴 게 아니라 어댑터에 위임한 것.
- end_frame은 못 쓰는 엔진이라도 적어둔다 — 컷 연결 의도는 editor가 쓴다. 어댑터가 무시할 뿐.
- carry_seed는 보장이 아니라 힌트 — 캐릭터 일관성의 1차 수단은 references의 character 슬롯(reference-binder).
- 하나의 IR = 하나의 컷. 컷 안에서 시점·장소가 바뀌면 IR을 쪼개라(= clip-segmentation으로 되돌림).
- duration_policy: hard 인데 엔진 최대를 초과하면 IR을 생성하지 말고 clip-segmentation으로 분할을 먼저 요청.
- 프롬프트가 3500자를 넘으면 수식어 압축 → reference_binder 위임 → clip-segmentation 분할 순으로 줄인다 (위 "프롬프트 길이 제한" 절이 정본).
시스템 호출
- 상위(입력 제공):
shot-designer— 컷 1행(size/angle/lens/lighting/look)을 IR로 승격clip-segmentation— 각 clip_id의 경계(first/last frame, duration)를 IR continuity에 주입reference-binder—references[].source를 슬롯에 해석/바인딩, 슬롯 개수 적합성 검증camera-sheet—camera블록(move/lens/speed)을 중립 어휘로 제공motion-director/facs-expression— 얼굴 노출 컷일 때motion_action보강
- 하위(IR 소비):
runway-prompt— v0.7 기본 어댑터(priority 1). IR → Runway 문법seedance-prompt— IR → Seedance 멀티모달 문법(소스 바인딩·시간 마커)model-adapter— IR → Kling 등 기타 엔진, 권리/안전 토큰 차단editor— 생성된 클립을 IR의 continuity(prev/next, match_on)대로 이어붙임
- 검증:
guardrail-check가 negative/권리 항목을,qa-review가 멀티엔진 A/B 결과를 비교 - 순서: shot-designer · clip-segmentation 다음 → engine-clip-spec → (runway/seedance/model) 어댑터 → editor
오픈크랩 컨텍스트
movie_seedance_pack(7b76f28b-53c5-4d77-be5b-e2e3cd1e69d3) — Seedance 클립 생성 OS 워크플로우, 어댑터 입력 명세 참조AI Video Seedance Creative Production OS Workflow(7f035d92-dc8a-4642-bf05-84482a66e4c3) — IR → 생성 파이프라인 단계 정렬Seedance 2.0 프롬프팅 가이드(2f7fabb8-5396-4872-9607-0ef919cb9816) — seedance-prompt 어댑터의 소스 바인딩·시간 마커 근거AI로 단편영화 만들기 가이드(4c93ab10-d73a-42ce-920d-780487ac3b9b) — 컷 단위 연결·continuity 설계 참조시네마틱 이미지 생성 가이드(4a5975a9-583d-49a6-a2cb-edeac9c85f35) — start/end frame 레퍼런스 프롬프트 작성 근거
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.

