/notes:clean-transcriptfrom notes
Strips timestamps and noise markers from raw transcripts, merges fragmented lines, and inserts paragraph breaks and chapter headings while guaranteeing verbatim output.
Ships in notes. 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; scripts run unread.
Raw transcripts arrive as timestamped fragments — auto-captions split sentences across timed segments and sprinkle [Music] markers through them. This skill merges them into readable prose without changing a single word.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/clean-transcript/scripts/clean.py" \
RAW.txt OUT.md [META.json] [--speakers "David Puell,Yassine Elmandjra"]
| Argument | Meaning |
|---|---|
RAW.txt | raw transcript text — the transcript field from fetch:youtube-download, written to a file |
OUT.md | where the cleaned Markdown goes |
META.json (optional) | JSON with a chapters array; each entry needs start_time (or seconds) and title |
--speakers (optional) | comma-separated names whose already-present labels get bolded |
It prints segments:, chapters inserted:, chars out: and any corruption warnings to stderr, then OUTPUT_FILE:<path> as the final stdout line. Chain on that line.
Why a script and not instructions: verbatim is a property you can either guarantee or merely request. This script only deletes timestamps and noise markers and inserts whitespace, headings and bold markers — so the output is provably the input's token stream minus deliberate deletions, and tests/test_clean.py::test_verbatim_invariant checks exactly that over a 50k-character fixture. An LLM asked to "clean but stay verbatim" silently fixes grammar, drops filler, and tightens sentences. That has produced bad captures before.
Deletes: leading timestamps (mm:ss and hh:mm:ss), and the noise markers [Music] [Applause] [Laughter] [Snorts] [Inaudible] [Silence] [Crosstalk] [Side conversation], case-insensitively.
Inserts: paragraph breaks (at ≥700 characters and a sentence terminator — both required, so a long unpunctuated run stays whole rather than being cut mid-sentence), ## Chapter Title headings, and **Name:** bolding for labels already in the text.
Never: rephrases, fixes grammar, adds or removes punctuation, drops filler words (um, like, you know, ठीक है), invents a speaker label, translates, or summarises. A 90-minute video yields a proportionally long transcript.
caption_warnings from fetch:youtube-download detects figures the caption omitted. It cannot see one it mangled — $und00 where the speaker said $1,050, or a,50 for 1,050. This script scans the cleaned text for those signatures and reports them on stderr:
% whose nearest preceding non-space character is not a digitAny flagged figure that a summary will quote — a price target, a threshold, a headline number — must be re-transcribed from audio before you trust it. Use the caption-verification procedure in fetch:youtube-download. A mangled figure reads as authoritative, which is what makes it dangerous: one such corruption (a,50 for $1,050) once carried an entire gold price target.
The scan is heuristic. It flags candidates; it does not prove corruption, and it will not catch every case.
Clean in the original language. Do not translate unless the user asks. If they do, put the translation below a --- separator with the same chapter structure — never in place of the original.
uv run --group dev pytest plugins/notes/skills/clean-transcript/tests/ -v
29 tests. If you change clean.py, mutation-test the change: break the behaviour deliberately and confirm a test fails. A suite that has never failed proves nothing — the noise-only-segment guard was already once covered by an assertion too lenient to catch its removal.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub mayank-io/mstack --plugin notes4 skills in this plugin
/clipCapture a URL into the notes vault — route it to the right fetcher and note-writer for that source. Use when the user says "clip <url>", "clip this link", or shares a URL and wants it saved as a note. Handles X/Twitter, YouTube, LinkedIn, Notion sites, Tabroom judges' scores and feedback, PDFs and general web pages. For a file already on disk, use notes:save-local-file instead./createWrite a note into the current Obsidian vault. Use when content is already in hand and needs saving as a note — including when another skill (such as notes:clip) has fetched content and needs it filed. Handles frontmatter, folder placement, filename sanitising, and collision avoidance./save-local-fileFile a local file — PDF, image, or document already on disk — into the current Obsidian vault as a clipping with the file attached. Use when the user gives a file path and wants it saved to their vault, or when notes:clip has fetched a file and needs it filed. For URLs, use notes:clip instead.