Verify coherence
Post-pick gate that re-reads each picked span's transcript and either keeps it as-is or tightens its [t0,t1] to cover only the dominant topic. Prevents shorts that feel like two unrelated clips spliced together.From its SKILL.md
npx -y skills add jperrello/C0BALT_CUT --skill verify-coherenceAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.6 KB, 359 tokens by cl100k_base, as published. Nobody here has run it
verify-coherence
Belt-and-suspenders coherence check that runs AFTER pick-segments. Claude
re-reads each span's own transcript slice and verdicts keep or tighten. On
tighten, the span's [t0, t1] is replaced with a trimmed range covering only
the dominant topic; if the trimmed range falls below dmin, the span is
dropped silently.
Invoke
.claude/skills/verify-coherence/verify-coherence.sh <segments.json> <transcript.json> <out.json> [dmin=20]
segments: output ofpick-segmentstranscript: full-source transcript JSONout: validated segments.json (same shape as input, possibly with tightened or dropped spans)dmin: minimum surviving span duration; spans tightened shorter are dropped
Output
Same schema as pick-segments output, with two possible per-span additions:
coherence_verdict:keep|tightenedcoherence_note: short reason
Dropped spans are simply absent from the output shorts[].
How
For each span, build a span-local transcript (lines whose midpoint falls in
[t0, t1]) and ask Claude:
Does this span cover ONE topic, or does it pivot to a second unrelated topic partway through? If it pivots, return the trimmed
[t0', t1']that contains only the dominant (longer / hookier) topic. Otherwise returnkeep.
A single claude -p call handles all spans in one batch to keep latency low.
What ships with it: 3 files
5.0 KB alongside SKILL.md, 3 of them executable
- build_prompt.pyruns1.6 KB
- parse_reply.pyruns1.7 KB
- verify-coherence.shruns1.7 KB