/agent-edite-davinci-resolve:highlightfrom agent-edite-davinci-resolve
Entry point for finding the interesting moments in long livestream/VOD files (2-3 h mp4, Thai audio) and turning them into one Resolve timeline per clip. Use when the user runs /highlight, gives a footage folder and asks to find highlights, "หาช่วงน่าสนใจ", "ตัดไฮไลต์", or asks to resume a highlight job. Works the same in Claude Code, Codex and Hermes.
Ships in agent-edite-davinci-resolve. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
footage folder (read-only) work/highlight/<channel>/<job>/
─────────────────────────── ──────────────────────────────
inventory ─► features ─► shortlist ──────────────────────────┐ cheap: loudness, every second
│ │
└► fulltext ─► readpacks ─► READERS ─► proposals whole stream read by subagents
(30 min) (1/pack) (quote-checked, quiet tagged)
│
sheets ─► packets+briefs ─► REVIEWERS ◄───┘ one per video, picks final clips
│
schema gate ─► build_timelines ─► APPROVAL ─► Resolve MCP ─► verify_timelines
Every stage caches to files, so the job can stop and resume in any agent. python pipeline.py status says what is done and prints the ONE next command.
Also do the AGENTS.md start checklist: read house-style and docs/OPERATING-NOTES.md, read the channel profile in docs/channels/, and probe the MCP. The Resolve probe can wait until step 7.
WORK_DIR below means the folder that holds job.json, which is work/highlight/<channel>/<job>/.
cd scripts/highlight
export HIGHLIGHT_JOB="C:/Users/<you>/Desktop/agent-edite-davinci_resolve/work/highlight/<channel>/<job>/job.json" # absolute, forward slashes; every command needs it
export PYTHONIOENCODING=utf-8 # Thai file names on Windows
python pipeline.py status
No job.json yet: follow skills/new-channel-job-setup/SKILL.md (ask the user's open questions ONCE), copy the spec below, then python pipeline.py inventory.
GPU: run python tools/gpu_smoke.py once before fulltext (CUDA DLLs on Windows: gpu_env.setup()).
python pipeline.py status [ids]. Do what NEXT says, then run it again after each step. Never redo a stage whose files exist unless its inputs changed. fulltext, readpacks, readbriefs, proposals, packets and status accept video ids, so you can work on one video (fulltext v01).
review/<id>.json (status prints a NOTE): ask the user first. Archive the file as review/<id>.v1.json before the reviewer writes a new one. Its timelines already exist, so new clips need new names or the _bak replacement pattern from long-video-highlight-clipping.features, fulltext) run in the background:
run_in_background.notify.nohup <cmd> > <WORK_DIR>/<stage>.log 2>&1 &, then read the log.features, then shortlist (loudness windows). Footage on G:/My Drive: set DEMUX_WORKERS 1-2 first.fulltext (background; about 34x realtime on the 8 GB RTX, so a 3 h stream takes about 5 min). If repo .venv lacks faster-whisper or CUDA DLLs, run with base system Python (e.g. Python313) where CUDA libraries are installed. Cloud drive reads add latency (~45 min for 14 streams). It writes transcripts/<id>.fulltext.txt: [H:MM:SS] text [ends s].readpacks then readbriefs. If docs/channels/<channel>-games.md exists, read the game glossary first and pass it into briefs.run_readers(..., hint=...) (or append to the brief context) so readers catch garbled game nouns. Assign packs explicitly per subagent/member before @everyone calls so packs are not duplicated or skipped. Spawn one subagent per pack with the prompt Read <WORK_DIR>/review/<pack>.brief.md and follow it exactly. Run up to 8 at a time. Then proposals; it prints rejected items (quote not in the pack, bad order/length) and missing packs.sheets, packets, briefs <channel hint> (rebuild packets after fulltext, so they show [ends]; include key game terms from docs/channels/<channel>-games.md in <channel hint>). Check that each contact sheet's burned-in tile timestamps match the window filename before delegating, and inspect opening tiles to avoid champion-select/loadout screens or chat/Discord openings unless requested. Spawn one subagent per video: Read <WORK_DIR>/review/<id>.brief.md and follow it exactly. It reads <id>.proposals.md first and writes review/<id>.json.python -m pytest -q ../../tests/highlight -k review_files_match_schema. Check the files, not the subagents' summaries.media_pool probe_media_pool result to a file, then run python resolve_clips.py <file> to get resolve_clips.json. Then python build_timelines.py writes candidates.json and timeline_plan.json. Show the clip list to the user and stop if APPROVAL is ask.long-video-highlight-clipping section "Building the timelines": one media_pool create_timeline_from_clips per clip (if_exists: "fail"). Note: CreateTimelineFromClips expects endFrame to be exclusive ([startFrame, endFrame)); passing end - 1 cuts the timeline 1 frame short. Then project_manager save, and verify all timelines with python scripts/highlight/verify_timelines.py (confirm 100% pass, e.g. 56/56).quiet picks, low-confidence clips, and what nobody has watched yet.skills/highlight/references/qc-retro-per-game.md: diff the live project against timeline_plan.json (match on source + start frame, not name), pass rate and failure mode per game, Thai SUMMARY.md, then user-feedback-capture.Subagents per agent:
| Agent | How to delegate |
|---|---|
| Claude Code | Agent with type general-purpose (sonnet is enough), prompt as above. |
| Codex | Use a sub-task or run the briefs one by one yourself. |
| Hermes | delegate_task with the brief text as context. |
When you do it yourself, write exactly the JSON file the brief names, and nothing else.
job.json){
"INPUT_DIR": "G:/My Drive/Projects/<Channel>/<YYYY-MM>", "CHANNEL": "<Channel>", "JOB": "<YYYY-MM>",
"CLIP_MIN_S": 30, "CLIP_MAX_S": 180, "CATEGORIES": ["gameplay", "fun", "meme"], "CLIPS_PER_VIDEO": "3-4",
"ASPECT": "16:9", "LANGUAGE": "th", "APPROVAL": "ask",
"GAME_OVERRIDES": {"<file-name substring>": "<game name>"},
"DEMUX_WORKERS": 2, "SHORTLIST_PER_HOUR": 10,
"READ_WHOLE_STREAM": true, "FULL_ASR_MODEL": "large-v3-turbo", "FULL_ASR_BEAM": 5
}
READ_WHOLE_STREAM: false skips steps 3-4 and uses the loudness shortlist only. That is cheaper, but it misses quiet moments.
[ends] of the reaction, never on the payoff itself. Snap with snap.py <id> in:<t> out:<t>.{ชื่อคลิป}-{ชื่อเกม}-vdo, with the game taken from the picture or from the user, never from the file name alone.review/<id>.json files are the user's decisions, so do not overwrite them without asking.Details and traps for each stage are in long-video-highlight-clipping. Load it before step 8, or when a stage fails.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pong34811/agent-edite-davinci_resolve --plugin agent-edite-davinci-resolve98 skills in this plugin
/agent-edite-skills-catalogInventory, read, and route this repo's project skills./agent-skill-repo-releaseVersion, tag, push, and publish skill-repo releases./davinci-resolve-apiComprehensive guide for scripting DaVinci Resolve Studio via its Python API. Covers environment setup, connection, project management, media pool operations, timeline building, clip placement, color management, rendering, and export. Requires DaVinci Resolve Studio (free version does not include scripting API).