Tighten retake + mistake detection (new Step 2.5)#1
Open
louisedesadeleer wants to merge 1 commit into
Open
Conversation
The previous SKILL.md mentioned "mistakes" in the frontmatter and had a
single one-liner for "obvious false starts and immediate repetitions",
which doesn't catch the dominant failure mode of raw recordings:
full-sentence retakes ("Now that Claude can edit your videos..." × 3)
and mid-sentence "wait, sorry, let me try that" restarts.
Adds:
- Step 2.5a: explicit retract-marker list for mistake-and-restart sentences
- Step 2.5b: n-gram similarity (Jaccard ≥ 0.75 or 3/4 content words) over
sentence-initial 4-grams within a 45s window, keeping the LATER take
- Step 2.5c: strict / default / loose strictness toggle scaling the
search window and similarity threshold
- Step 2.5d: surface every dropped retake in the plan summary so the
user can spot a wrong-take-kept before rendering
- Two new pitfalls covering the above
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SKILL.md previously listed "mistakes" in the frontmatter and had a single one-liner for "obvious false starts and immediate repetitions" — but operationally there was no rule for the dominant failure mode of raw recordings: full-sentence retakes ("Now that Claude can edit your videos..." attempted 3 times before the clean take) and mid-sentence corrections ("wait, sorry, let me try that again").
The gap heuristic in Step 2 can't catch these — retakes have real content and small gaps.
What's new — Step 2.5
wait,/sorry,/actually,/let me try that again/no —/scratch that/ etc.). When a sentence ends in one of these, drop back to the prior sentence boundary.strict/default/looseinput that scales the search window (90s / 45s / 20s) and similarity threshold.strictalso catches inlinei mean,/or rather,.looseskips the mistake-marker rule entirely.Two new pitfalls also added to lock in the lessons.
Test plan
strictness=looseon an already-tight recording and verify no retakes are droppedstrictness=stricton an unscripted explainer and verifyi mean,/or rather,self-corrections get caughtplayful/sentimental/documentarytone behavior is unchanged (orthogonal to strictness)🤖 Generated with Claude Code