Communitygithub.com

geniusdapeng-collab/WorkLoom-video-edit

镜头理解官方套件(v2):在确定性信号层之上做逐镜多模态语义结构化,产出带证据帧与置信度的 shot_record,供高光挖掘、剪辑设计与字幕文案消费。含可直接投喂的多模态提示词全文与自检清单,替换旧版"一次性全文理解 + 秒级时间码"的做法。

WorkLoom-video-edit 是什么?

WorkLoom-video-edit is a Claude Code agent skill that 镜头理解官方套件(v2):在确定性信号层之上做逐镜多模态语义结构化,产出带证据帧与置信度的 shot_record,供高光挖掘、剪辑设计与字幕文案消费。含可直接投喂的多模态提示词全文与自检清单,替换旧版"一次性全文理解 + 秒级时间码"的做法。.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/geniusdapeng-collab/WorkLoom-video-edit/tree/HEAD/bundles/video-edit/skills/shot-understanding

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Shot Understanding (shot-understanding v2)

1. Positioning & Boundaries

  • After what: The probe stage (ffprobe/scene detection/ASR/beat) has already produced deterministic cut points and word-level timestamps.
  • Before what: highlight (highlights & keyframes) and edit-script (edit script) depend on the fields produced by this skill.
  • Only does: Turns each shot into structured text fields (visual content/characters/actions/entities/dialogue/on-screen text/shot size/camera movement/lighting/emotion/usability).
  • Does not do: Does not detect cut points (that's the signal layer's job), does not select or order shots (that's the editing direction's job), does not provide aesthetic scores (that's the review chain's job).
  • Discipline: This stage invokes the model per shot; it is forbidden to "understand the entire video in one call". The old pipeline's failure mode of dumping all video JSON in one call: field collapse in the middle/late sections of long videos, timecode drift, and shot boundaries not matching the visuals.

2. Input / Output Contract

InputSourcePurpose
probe.shotBoundaries[]signal-analystShot intervals (frame-level in/out) — sole authoritative cut points
probe.speech.words[]ASRDialogue and cut point verification (prefer pauses at sentence end)
probe.technical.perShot[]ffmpeg metricsQuality fields (sharpness/exposure/stability/noise)
Keyframes (3–6 per shot)Frame extractorVisual input for multimodal models

Output: shot_record[], per-field following schemas/footage-analysis.schema.json.

Each shot must include: shotId, index, frame-level inTimecode/outTimecode, durationSeconds, sceneType, content (visual description/dialogue/on-screen text/entities/actions), tech (shot size/camera movement/lighting/stability), evidence[] (≥1 frame), confidence.

3. Execution SOP

  1. Cut point alignment: Use the signal layer cut points as the skeleton; if the model believes a cut point is problematic, it can only "suggest" (write into editing.cutInReason/cutOutReason notes), it must not modify the timecodes itself.
  2. Frame extraction: Evenly extract 3 frames within the shot + motion peak frame + first and last frames (for long shots, add 1 frame every 2 seconds).
  3. Per-shot invocation (concurrency ≤4, single shot timeout 90s, enter skippedShots after 1 retry failure, do not silently skip):
    • Input: shot start/end timecodes, extracted frames, ASR word sequence within the shot, per-shot technical metrics.
    • Output: Strict JSON (the prompt below provides a template).
  4. Consistency check: Speech text is compared to the ASR word for word (allow punctuation differences, prohibit content tampering); technical metrics defer to the signal layer (the model can only add semantic context).
  5. Persist: Write an understand. event + shot_record artifact (with model name and promptVersion).

4. Prompt Body (Directly Feedable, v2)

Usage: {{ }} denotes injection points; require the model to output only JSON. Invoke per shot, do not pass the entire video.

Main channel description (self-collection by multimodal model): On-screen text (OCR) and voice transcription (ASR) are directly produced by the multimodal model during the understanding stage — The model simultaneously receives "keyframes" and "audio (if the model supports the audio modality)", reads the text and transcribes the speech itself, without calling external OCR/ASR tools. The tool channel (native Vision / native ASR engine) serves only as a fallback when the model lacks the capability, and must mark channel=fallback in the receipt. It is not allowed to present fallback results as the model's own conclusions. Outputs from both channels are written into the same set of contract fields (content.onScreenText / content.speechText / probe.speech), with the difference only in the truthful annotation of coverage.asr.channel / coverage.ocr.channel.

4.1 Mandatory Tasks for the Model (On-Screen Text + Voice + Ambient Sound)

For each shot, the model must complete these three tasks; failing any one means the shot is considered incomplete:

  1. Full transcription of on-screen text: Read all visible text frame by frame — signs, door headers, packages, banners, street signs, screen UI, subtitles, watermarks; If the same text repeats, record it only once, but provide the evidence frame; mark unreadable text as [模糊], do not imagine it into a coherent phrase. Write into content.onScreenText (separate multiple entries with /) and point out in evidence[] which frame it was seen on.
  2. Voice transcription: Write content.speechText sentence by sentence (preserve colloquialisms, do not polish, do not complete sentences), and provide sentence-level timestamps in probe.speech.sentences[]; When the model has an audio modality, transcribe directly (channel=model); only mark the fallback channel truthfully when used. Write [听不清] for unclear parts, do not guess.
  3. Ambient sound description: Write the shot's ambient sounds into audio.ambience (wind noise + leaves / kitchen spatula / market crowd / traffic / firecrackers / quiet), and annotate its utility for editing (can be left as is / can be used as underscore / needs noise reduction / conflicts with BGM).

These three tasks are the factual source for editing and post-production: on-screen text determines location/shop/product, voice determines script and subtitles, ambient sound determines sound design and underscore.

You are a "Shot Understanding Specialist". Task: Transform a shot (already cut by deterministic tools) into structured fields.

[Footage Context]
- Video domain: {{ content_domain }} (knowledge/travel/review/narrative/teaching/life_record/other)
- Footage source type (video-level): {{ source_kind }} (live_action / AI_generated / screen_record / archive)
- Creator profile: {{ creator_profile }}
- User requirement: {{ user_requirement }}

[Input for This Shot]
- Shot number: {{ shot_index }}
- Timecode (frame-level, authoritative, must not be modified): {{ in_timecode }} - {{ out_timecode }} (duration {{ duration_seconds }}s, framerate {{ fps }})
- Extracted frames: {{ frames }} (in chronological order; includes first frame, last frame, motion peak frame)
- Speech transcription within the shot (word-level, authoritative): {{ asr_words }}
- Technical metrics (authoritative): sharpness {{ sharpness }} / exposure {{ exposure }} / stability {{ stability }} / noise {{ noise }}

[Hard Rules]
1. Only describe content that can be proven from the extracted frames and speech transcription; write null or empty arrays for anything not visible, strictly prohibit fabricating people, locations, brands, or data.
2. Do not infer internal thoughts: do not write "he/she thinks/felt"-type unverifiable content, only describe visible expressions, poses, actions, and environment.
3. Speech text must match ASR word for word (punctuation can be removed), do not polish or complete sentences.
4. Each semantic conclusion must be accompanied by evidence (frame number or second point + reason), confidence is a real number 0–1.
5. Output must be valid JSON, no additional explanation, no content outside of Markdown code blocks.

[Scene Classification (single choice of sceneType, affects post-production strategy)]
- live_stream: Live stream clip (studio UI / interaction / compressed quality / needs noise reduction)
- on_location: Live-action shooting (handheld or gimbal / natural or ambient light / ambient sound)
- studio_talking: Studio stand-up or interview (clean background / clear audio / professional lighting)
- b_roll_insert: B-roll and supporting shots (environmental showcase / detail close-up / no speech)
- archive_footage: Archive footage (not shot during this session / historical clips / online material)
- screen_recording: Screen recording (software operation / PPT / game footage)

[Edit-Friendliness Judgments (written into editing)]
- cutInReason / cutOutReason: Where this shot should be entered and exited (action landing / speech breath / visual hard cut / emotional peak / information node)
- transitionSuggestion: Suggested transition to adjacent shots (hard cut / dissolve / match cut / whip pan / jump cut)
- usage: Main narrative / emotional point / reaction shot / transition bridge / background filler / informational emphasis / cover candidate

[On-Screen Text / Voice / Ambient Sound (directly produced by the model, must not be skipped)]
- On-screen text: Read all visible text frame by frame (signs / door headers / packages / banners / street signs / screen / subtitles / watermarks), record repeats only once, mark unclear text as [模糊];
  Write into content.onScreenText, and point out "which frame it was seen on" in evidence.
- Voice: Transcribe content.speechText sentence by sentence (preserve colloquialisms, do not polish, do not complete sentences), mark unclear parts as [听不清];
  If you (the model) can directly process audio, use your own transcription; only mark the fallback channel truthfully when used.
- Ambient sound: Write audio.ambience (wind noise / kitchen / market / traffic / music / quiet…) + utility for editing (underscore / fill / needs noise reduction / conflicts with BGM).

[Output JSON Template]
{
  "shotId": "{{ shot_id }}",
  "index": {{ shot_index }},
  "inTimecode": "{{ in_timecode }}",
  "outTimecode": "{{ out_timecode }}",
  "durationSeconds": {{ duration_seconds }},
  "sceneType": "on_location",
  "content": {
    "visualDesc": "Visual content (characters / actions / key objects / environment / visual focus)",
    "speechText": "Corresponding dialogue (null if none)",
    "onScreenText": "Text appearing in the frame (signs / packaging / subtitles, null if none)",
    "keyEntities": ["people / product / concept / location / data point"],
    "actions": [{ "who": "who", "what": "did what", "start": 0.0, "end": 0.0 }],
    "setting": "Environment (indoor / outdoor / weather / time of day)"
  },
  "tech": {
    "shotSize": "extreme_wide|wide|medium|close_up|extreme_close_up|unknown",
    "cameraMove": "static|pan|tilt|push_in|pull_out|tracking|handheld|aerial|unknown",
    "lighting": "Natural light / indoor light / professional lighting / backlight / low light",
    "stability": "stable|slight_shake|heavy_motion|unknown",
    "composition": { "subjectPosition": "", "headroom": "", "leadRoom": "" }
  },
  "audio": { "speechClarity": 0.0, "ambience": "", "music": true, "clipping": false },
  "emotion": { "dominant": "", "intensity": 0.0, "valence": 0.0 },
  "quality": { "score": 0.0, "usable": true },
  "editing": { "cutInReason": "", "cutOutReason": "", "transitionSuggestion": "", "usage": [] },
  "evidence": [{ "t": 0.0, "frame": 0, "why": "Conclusion basis" }],
  "confidence": 0.0
}

5. Self-Check List (Verify Each Item Before Output)

  • Timecodes exactly match the input (no ±0.5s "rounding" drift)
  • evidence has at least 1 item, and each item explains a specific conclusion
  • Speech text matches ASR word for word; shots without dialogue have speechText as null
  • No people, objects, or locations that are not visible in the extracted frames
  • Emotion fields are based only on observable evidence (expressions/poses/environment), no internal thoughts
  • Conclusions with confidence < 0.6 are marked for re-review in editing or notes
  • JSON is valid (no comments, no trailing commas, no Markdown wrapping)

Decision Principles (Including Thresholds and Fail-Closed)

  1. Timecodes are authoritative from the signal layer: The model may only "suggest" cut points, it must not rewrite the input timecodes; deviations greater than 1 frame from the signal layer result in rollback and realignment according to the signal layer.
  2. No evidence, no persistence: Each semantic conclusion must carry an evidence[] array (≥1 frame); conclusions with confidence < 0.6 must not enter the downstream shot selection pool, they can only go to "pending review".
  3. Speech is authoritative from ASR: If the word-for-word match rate between speech text and the ASR word-level transcription is <98%, the speech text is rejected and must be rewritten; no polishing or sentence completion.
  4. Fail-closed: Unseen fields are written as null/empty arrays, do not fill with "speculative" values; better to lack a field than to produce a hallucination.
  5. Per-shot isolation: A single shot that fails is retried ≤2 times, then enters skippedShots; do not rerun the entire video because of one shot (cost and reproducibility).

Tactics Library (Scenario → Action Sequence → Criterion)

  • Main: Per-shot standard analysis: Frame extraction (first/last/motion peak + 3 uniform frames) → Single shot invocation → Consistency check → Persist (criterion: field completeness ≥95%, evidence coverage 100%).
  • Branch: Long shot (>8s): Add 1 extra frame every 2 seconds, split into "semantic sub-segments" (describe within the same shotId in sections) (criterion: action/information nodes not missed).
  • Branch: Multi-person dialogue: Annotate actions[].who based on speaker attribution, align with ASR speaker changes (criterion: speaker attribution accuracy ≥90%).
  • Branch: Low confidence review: Re-extract frames for shots with confidence < 0.6 and re-run (criterion: confidence difference between two runs ≤0.2, otherwise require human review).

SOP (Each Step with Trigger/Receipt/Failure Path)

  1. Trigger (probe completed) → Concurrent per-shot analysis (concurrency ≤4) → Receipt: shot_record batch + model name + promptVersion; Failure: Retry single shot on timeout/parsing error once, if still fails log into skippedShots with reason, do not silently skip.
  2. Trigger (batch analysis completed) → Consistency check (ASR word-for-word, technical metrics authoritative from signal layer) → Receipt: Review list (conflicts and resolutions); Failure: Rollback conflicting shots and retain the old version (only add, never modify).
  3. Trigger (review passed) → Persist and write understand. pentadic event → Receipt: Event ID + artifact sha256; Failure: If database write fails, suspend the entire batch and alert, do not treat "partial persist" as complete.

Key Metrics (Including Baselines and Guardrails)

MetricDefinitionBaseline/ThresholdTypeSource
Field completeness rateShots passing required validation / Total shots≥95%QualityContract Validator
Evidence coverage rateConclusions with evidence[] / All conclusions100%GuardrailPre-persistence Validation
Speech match rateShots with word-for-word ASR match / Shots with speech≥98%QualityConsistency Check
Hallucination rateConclusions determined by manual random check as "not present in footage" / Sampled conclusions0 (rollback on detection)Guardrail10% manual random check
Single shot rerun rateShots triggering a retry / Total shots≤5%CostBatch Receipt

Failure Modes (Symptom → Detector → Resolution)

SymptomDetectorResolution
Mid/late shot descriptions become empty/copiesCheck if it degraded into a full-video single callRevert to per-shot invocation; batch with concurrency, independent per-shot retries
Timecodes don't match visualsCheck if model self-reported timecodes were usedTimecodes always taken from signal layer input, model output ignores timecode modifications
Speech text completely mismatchedFrame extraction and speech misalignedUse ASR word-level intervals to re-verify shot assignment, realign before re-running
Brands/locations not present in footage appearModel hallucinationDelete the conclusion; strengthen "write null for unseen"; increase extraction density
Large differences between two runs of the same shotTemperature or extraction differencesFix temperature and extraction strategy; if confidence difference >0.3, suspend for review

6. Differences from the Old Pipeline (Upgrade Log)

DimensionOld Version (2026-02 backup)v2
Invocation granularityOne call understands entire videoPer-shot invocation (long videos no longer collapse)
Timecodesmm:ss second-levelFrame-level HH:MM:SS.mmm + frame number
Cut point sourceModel "guesses from visuals"Signal layer authoritative cut points (content-aware detection + speech breath)
EvidenceNoneEach conclusion carries evidence frame and confidence
SpeechModel transcription (error-prone)ASR word-level timestamps as authoritative; model only adds semantic context
Quality4–5 subjective scoringSignal layer quantitative metrics + separate semantic usability judgment
Output objectSingle large file_id JSONshot_record[] (incremental, single-shot rerunable, versionable)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

geniusdapeng-collab/WorkLoom-video-edit

配乐交付规范官方套件:原节目默认来源、显式独立分轨授权、单次实际混音、曲目许可与字节证据,完整平台/电平/选段工艺参数和用户返修归因。成功源镜不经声音品质复检,不按余量/可闻度/卡点分数自动重试或降级;绑定 G-BGM0..G-BGM5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

曲库与许可合规官方套件(随 bundles/ai-video 分发):无版权曲库怎么接、许可白名单与商用红线、TASL 署名怎么出、AI 生成音乐的许可陷阱(MusicGen 权重 CC-BY-NC)、自算作曲为什么是默认路径。安装后被 BGM 配乐师调用;绑定围栏 G-BGM0..G-BGM5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

配乐定调官方套件(随 bundles/ai-video 分发):题材×场景×情绪→调式/调性/BPM/和弦/配器/结构的选型法,含 32 个题材配方(16 既有 + T-15 新增 16)、速度决策(配方 BPM vs 剪辑点反推)、禁忌清单与"允许不配"。安装后被 BGM 配乐师调用;绑定围栏 G-BGM0..G-BGM5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

人声分离纪律官方套件(随 bundles/ai-video 分发):什么时候真需要分轨、两档引擎链(demucs/audio-separator → ffmpeg 中心声道近似)、质量等级与诚实标注、单声道与失败处理、与 UVR/Spleeter 的关系。安装后被 BGM 配乐师调用;绑定围栏 G-BGM0..G-BGM5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

SRT/ASS、字体解析、实际烧录与文字扩展轨的完整执行纪律;默认一次处理、原片原声保持,核对时间轴和真实产物,不抽帧评审可现度或循环选优;遵守 G-SUB 围栏的原片、字体、权限和执行回执约束。

geniusdapeng-collab/WorkLoom-video-edit

摄影知识库调用技能(随 bundles/ai-video 分发):19 篇九章式摄影知识(光学/景别/运镜/光线/色彩/材质/天气/风格/情绪),每篇第六章是「意图→提示词」核心调用区。用于写镜头提示词前定光圈/焦距/景别/光位/色调/材质,把参数意图翻译成画面语言。绑定制片与摄影指导岗位及围栏 G-KB0–G-KB4;卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

调色交付规范官方套件:Rec.709 本地加工、平台派生、滤镜和来源证据、真实产物哈希、版本回滚与用户反馈归因。成功渲染素材默认接受,保留完整参数与工艺参考,未测画面品质如实为空,实际缺件、授权或加工失败保持阻断;绑定 G-COL0..G-COL4,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

调色执行纪律官方套件(随 bundles/ai-video 分发):规格读取、明确校正与风格配方、单次请求加工、多镜参考匹配、来源和输出字节留痕,保留目标值与 profile 工艺知识。成功源镜默认接受,独立诊断不接入品质否决或自动重做;绑定 G-COL0..G-COL4,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

题材、场景、情绪与平台到单次调色配方的选型方法;保留题材表、参数建议、操作流程与失败诊断,成功渲染素材默认进入后期,不以画面评分复核或重做。

geniusdapeng-collab/WorkLoom-video-edit

多镜色彩一致性官方套件:指定参考镜、逐镜派生曝光和色度校正、完整批次结果、原片只读与当前字节证据。保留参考选择与诊断残差的工艺知识,成功源镜默认接受,成片不以残差、肤色或主观跳变自动拒绝重做;绑定 G-COL0..G-COL4,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

评论三级分流 SOP 官方套件(随 bundles/ai-video 分发,F8.1 官方套件级):评论采集→意图分类→三级分流(夸赞 auto/咨询 review/负面 review+告警/敏感 block)、投诉维权关键词必审+告警、外发回执落账。安装后被评论区运营调用;绑定围栏 G10,卸载即撤销(F8.2/L8.3)。

geniusdapeng-collab/WorkLoom-video-edit

封面设计官方套件:按明确标题、主视觉镜号/时刻、平台与账号字体色板一次本地合成,保留字号、安全区、人物布局和标题工艺知识。成功源镜默认接受,不调用模型选帧或整图质量评审,不做 PSNR/墨迹投票自动重做;实际来源、字体、请求和产物失败明确,绑定 G-MAT1/G-SUB3。

geniusdapeng-collab/WorkLoom-video-edit

封面设计知识库(cover-kb)调用技能。为封面设计师岗位提供「平台规范 / 账号定位 / 题材映射 / 钩子公式 / 构图工艺」的结构化检索与注入纪律(14 篇九章式,确定性检索,无向量库)。绑定围栏 G-SUB2/G-SUB3/G-MAT1;卸载即撤销封面 know-how 注入能力。

geniusdapeng-collab/WorkLoom-video-edit

母版、旁挂字幕、软轨、封面、变体、工程与清单的完整交付纪律;含产物表、变体设计、执行参数、来源哈希与逐层失败 SOP。按声明配方实际执行,保留来源与真实错误,不以差异评分、声音质量或默认增强模型再次拒收素材;绑定 G-DLV0..G-DLV9,供后期交付与封面岗位调用。

geniusdapeng-collab/WorkLoom-video-edit

返修闭环官方套件:反馈归因、层影响分析、基础工程版本/SHA 前置条件、独占版本认领、本地增量重合成与复用证据。保留完整反馈表、并发冲突和存储失败 SOP;成功镜头默认接受,组件或旧品质失败不重新生成,点名新生成保持 G8/G-DLV5,绑定 G-DLV4..G-DLV7。

geniusdapeng-collab/WorkLoom-video-edit

导演评审官方套件(随 bundles/ai-video 分发,F8.1 官方套件级):6 问评审 + 5 维评分 + 硬阻断打回、事实红线一票否决、跨集连贯性校验,含硬阻断优先级/平均分不得掩盖短板/事实红线以 confirmed 字段为准等决策原则、四种评审形态打法、五步 SOP 与失败模式表。安装后被连贯审查官调用;绑定围栏 G6,卸载即撤销(F8.2/L8.3)。

geniusdapeng-collab/WorkLoom-video-edit

字体许可合规官方套件(字幕师专业套件):OFL-1.1/Apache-2.0/厂商免费商用三类白名单判定、OFL 四条义务(可商用/禁单售/改后改名/保留声明)、不做子集化的理由、客户自备商用字体的登记口径、证据留痕与围栏 G-SUB5 对应关系。安装后被字幕师调用;绑定围栏 G-SUB1/G-SUB5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

字体选型官方套件(字幕师专业套件):场景×语言硬过滤、五维加权打分(作品类型/BGM节奏/粗细/艺术气息/气质关键词)、账号视觉锤锁定、中英混排搭配、上位提示词气质命中、否决项与"允许报告无合适字体"。安装后被字幕师调用;绑定围栏 G-SUB0/G-SUB1/G-SUB3/G-SUB5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

情报五站方法论官方套件(随 bundles/ai-video 分发,F8.1 官方套件级):采集/评价/竞品/核验/装订五站流水,含决策原则(无源不入库/置信度三级/域名去重/冲突不仲裁)、实物 8 路与服务 6 路两套打法、五步 SOP(每步带回执与失败路径)、关键指标护栏与失败模式表。安装后被情报科五站与调研员调用;绑定围栏 G1,卸载即撤销(F8.2/L8.3)。

geniusdapeng-collab/WorkLoom-video-edit

原声 program、显式签章分轨与配乐的来源、策略、时间轴和一次混流方法;默认保留原声,不自动分离或测声音品质,真实非法分轨与混流失败明确停止。

相关技能