Select takes

From theSamPadilla/montaj · View interactive version

Select takes is an AI agent skill from the GitHub repository theSamPadilla/montaj. Agent-authored workflow task: analyze transcripts across all clips, pick ONE best take per script section, discard all others. Load this when you hit montaj/select_takes in a workflow.

How to use this skill

Skill file

Select Takes

montaj/select_takes is an agent-authored task: no CLI step, no API call. You reason across every clip and make editorial decisions.

Between a cut plan and its apply

Right after cut plans, before the apply. This section is the whole job; the steps further down are for a project already cut.

The cut's transcripts are made per voiced run and are trustworthy. Never transcribe a window, render one, or re-measure the audio, and never rebuild the cut with any other step (speech_text, speech_edit, mix_timeline) before the apply: each changes the project, and the apply is then refused as stale.

  1. Read the plan: the cut's answer carries it as text (else read_file cut-plan.md). Silences and fillers are already gone. Every saying is a row of ## Cut, in recording order, and nothing else is removed. A tag ending in ? is a label, never a cut:
  1. Map the script: its sections in narrative order. For each, keep one take: complete over cut off, no restart inside it, fewer fillers, the last when they are equal. Delete the other takes' rows.
  2. In each kept take, delete the words a repeat? names, so only the last saying stays, and the word a restart? names. Delete what a noise? names unless it is a real word.
  3. Order: put the kept rows in the order the prompt or script asks for; with neither, keep the recording order. The apply plays ## Cut top to bottom. Read every join between sections: the same fact or beat said on both sides loses one.
  4. Edit only the plan: delete rows or words, move rows; never add or change a word. write_file it back, then run cut with plan. An untagged plan applies as it is.
  5. Check the result in the apply's answer, not with other steps: seams lists every join where words were skipped, as <time> <3 words before> | <3 words after>, ending (cuts a word) when a join falls inside a word; notes says what a kept tag does. The project is cut now, so an edited plan is refused as stale. Fix a bad seam on the cut project: speech_text, edit it (move a line back from ## Unused, or delete words), then speech_edit (see "On a project already cut"). To start over from before the cut, ask the person to restore the version from before the cut in Versions; never rebuild the project yourself.

On a project already cut

Not for a cut plan: the section above is the whole job there.

Here the decisions are text: the speech track is read with speech_text, edited, and applied with speech_edit (format and rules: skill speech-edit).

Order: cut has already been applied, so the speech track's items are its keeps and the words you read match that cut. If tracks[0] still holds whole clips, the project is not cut: run cut (plan, then apply) first.

Core Purpose

Pick one. Kill the rest.

Every repeated take of the same line is wasted runtime. Find every section of the script, find all takes of it across all clips, keep the single best delivery, delete the rest. If a clip is entirely a worse take of content covered better elsewhere, drop the clip.

This is the only step with full cross-clip awareness. Use it.

Process

1. Read the whole track

Run speech_text with unused: lines. Read all of it before deciding: the best take of a section may be in a different clip than you expect. Source lines outside the cut sit under ## Unused; they are candidates too.

2. Map the script

Lay out every distinct section in narrative order. A section is a unit of content: a sentence, a thought, a beat. Name each one.

A. Hook: "this is insane, the source code got leaked"
B. What happened: "at 3am someone posted, 33M views"
C. What was found: "tamagotchi, Kyros mode, dreaming"
D. Fallout: "copyright claims, repos taken down"
E. Resolution: "people rewrote in different languages, Boris said human error"
F. CTA: "go check it out, follow me"

Then map each section to the line numbers (A12, B3, ...) that cover it.

3. Find all takes of each section

Any line group covering the section's content: same words, same idea, same intent.

| Kind | Example |

|---|---|

| Complete take | full delivery |

| False start | stops mid-sentence |

| Repeated attempt | full delivery, not the best |

4. Pick the best take

One per section. Criteria in order:

| # | Criterion |

|---|---|

| 1 | Complete over truncated: finishes the thought |

| 2 | No mid-sentence restarts: no self-correcting repeats |

| 3 | Clean delivery: fewer fillers, less dead air |

| 4 | Last attempt wins ties |

Do not hedge. If two takes are indistinguishable, pick the last.

5. Check each selected take for within-take repetition

Look for the same phrase (3+ words) twice inside the selected lines: a restarted clause with no pause long enough to split it into its own take. Keep only the final occurrence and delete the words before it.

Example: and always on mode, and always on mode called Kyros that basically lets and always on mode called Kyros keeps only the last and always on mode called Kyros.

Required, not optional. Fillers are only um/uh/hmm; nothing automated catches every repeated phrase.

6. Edit the file

  1. Delete the rows of every losing take.
  2. Order the remaining rows into the narrative. Reordering is moving rows.
  3. Check every seam (step 7).
  4. Apply with speech_edit, preview first, then for real (see speech-edit).

7. Check every seam

Read the last line of section N and the first line of section N+1 for every adjacent pair. Flag a pair where:

Fix by deleting the redundant words: usually the opening of N+1, or the close of N. Do not accept an overlap because both takes were independently the best.

Required before applying. No automated step catches cross-section redundancy.

Voiceover on an audio track

For flows whose speech is not on a visual track (B-roll's voiceover), speech_text does not read it (visual tracks only). There, crop the exact spec that was transcribed with crop_spec, and write each result to <original>_selected.json.

The .srt is in the time of the spec you transcribed, which the words JSON's montaj.spec names. Crop that same spec with those times and pass them to crop_spec without conversion. The words JSON offsets and timestamps are source (original-file) time; to use them with crop_spec, convert with virtual_to_original --inverse. Never crop a different spec with these times.

Run step crop_spec with {"input": "/path/spec.json", "keeps": [[8.5, 34.1]]}. input must be a spec file on disk (save an inline spec with write_file first); keeps is a native JSON array of [start, end] pairs, null for open-ended. Never encode an intermediate file: cropping keeps src on the original.

What to Log

Before applying, log your decisions by line:

select_takes decisions:
  A. Hook -> A1-A4 (only take, clean delivery)
  B. What happened -> B1-B3 (first clean take; B9-B11 is identical but trails off)
  C. What was found -> B20-B27 (THIRD take: first two cut off before "Kyros")
  D. Fallout -> C1-C6 (only take)
  E. Resolution -> D4-D12 (cleaner pivot take + Boris statement; dropping filler at D13-D15)
  F. CTA -> E5-E7 (FOURTH take: first three are false starts)

  Deleted entirely: B4-B19 (repeated takes of B and C), D13-D18 (trailing filler), E1-E4 (false starts)

Common Mistakes

| Mistake | Fix |

|---|---|

| Too conservative, the most common failure. Keeping a wide span because it "contains the best take" also keeps the rejected takes | Delete the line groups of the losing takes; keep only the chosen one |

| Not reading all clips before deciding | Read the whole track and ## Unused first |

| Keeping false starts ("so the, actually let me start over, the tweet got...") | Delete up to the restart |

| Keeping the outro filler ("so yeah", "anyway") | End at the last meaningful sentence |

| Missing within-take repetition | Re-read every selected line group for repeated clauses; no step catches them |

| Skipping the seam check | Read adjacent boundaries as pairs before applying |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.