agentleFS
kevin-burnskevin-burns/claude-skills/transcribe-summarize/SKILL.md

transcribe-summarize

Skill7 starsChanged 4 months agoMITView on GitHub

Transcribe audio or video locally and optionally write it up as meeting notes: "transcribe this", "what was said on the call", "write up this meeting", subtitles or an .srt, a voice memo, interview, lecture or podcast. Runs on-device with Whisper by default; cloud services only when named, after saying what will be sent and what it costs. Also produces factual meeting notes and a PDF. Not for summarising text you already have.

  • Reads credentials
  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the library is missing, the error prints the exact command.

    line 40
  2. Distinctive:

    Use the absolute path. A relative one only resolves if the cwd happens to be the skill directory.

    line 64
  3. Very specific:

    Before anything is sent, the tool prints provider, endpoint, file size, duration and estimated cost, then waits.

    line 91
  4. Distinctive:

    Never accept one as a flag, never echo one, never write one into a file.

    line 96
  5. Distinctive:

    WHICH LANGUAGE THE TRANSCRIPT COMES OUT IN: Always the one that was spoken.

    line 192
  6. Very specific:

    If the user asks why a stretch of transcript is missing, read the .json: the answer is there with the numbers that caused it.

    line 214
  7. Distinctive:

    It is a format conversion and nothing more: No words are changed, no filler removed, no grammar fixed.

    line 237
  8. Very specific:

    If someone passes a .vtt to transcribe.py it stops and points here rather than trying to decode it.

    line 248
  9. Distinctive:

    Never present a transcript or a set of notes as verified.

    line 284
  10. Distinctive:

    Run the checker again after any edit.

    line 297
  11. Distinctive:

    When the user wants meeting notes rather than a transcript, you write them — read the transcript and produce the document yourself.

    line 302
  12. Very specific:

    Almost no backend here identifies speakers: Every Whisper engine and Parakeet return no speaker field at all.

    line 309
  13. Distinctive:

    Before writing notes, ask for:

    line 319
  14. Distinctive:

    Ask for all three in one message, not one at a time, and offer today's date as the default so the user only has to correct it.

    line 330

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

transcribe-summarize

Audio in, a transcript out, and optionally a set of meeting notes. The default path runs entirely on the user's machine.

Two things make this different from calling Whisper yourself, and both came out of a day of measurement rather than design:

  1. Whisper invents speech over silence, and a bigger model does not help. On a real call with 40 s of joining silence, large-v3 produced an 18-second segment of one word repeated 55 times. This skill filters those out and keeps them, with the metrics that rejected them, in a sidecar so the decision is auditable.
  2. Cleaning the audio beats choosing a model. Normalising and silence-trimming took invented segments from 2 to 0 and fixed a word both large-v3 and turbo had wrong. It is on by default.

Setup

ffmpeg and ffprobe must be on PATH — macOS brew install ffmpeg, Windows winget install Gyan.FFmpeg, Linux apt install ffmpeg.

Everything else is stdlib. The backend brings its own library, and only the one selected, so pick it with uv run --with:

backendplatform--with spec
mlx-whisper — default on Apple SiliconmacOS arm64 only'mlx-whisper>=0.4.2'
faster-whisper — default elsewheremac / Windows / Linux'faster-whisper>=1.2'
parakeet — opt-inApple Silicon verified'parakeet-mlx'
groq, openai, elevenlabs, gemini — opt-in, networkanynothing to install

If the library is missing, the error prints the exact command. Don't guess it.

Run it

Declare the helper at the top of every command block — shell state does not persist between tool calls:

ts() {
  UV="$(command -v uv || ls "$HOME/.local/bin/uv" "$HOME/.cargo/bin/uv" \
        /opt/homebrew/bin/uv /usr/local/bin/uv 2>/dev/null | head -1)"
  "$UV" run --with "$1" --script "$HOME/.claude/skills/transcribe-summarize/scripts/transcribe.py" "${@:2}"
}

# Apple Silicon
ts 'mlx-whisper>=0.4.2' meeting.m4a

# Windows / Linux
ts 'faster-whisper>=1.2' meeting.m4a --backend faster-whisper

# Bias the decoder toward known jargon, and fix a name it always gets wrong
ts 'mlx-whisper>=0.4.2' meeting.m4a --prompt 'Terragrunt, EKS' --replace 'north wind=Northwind'

Use the absolute path. A relative one only resolves if the cwd happens to be the skill directory.

Output contract

<outdir>/
  <stem>.md                    the transcript, with [hh:mm:ss] anchors
  <stem>-artifacts/
      <stem>.srt               subtitles
      <stem>.json              every segment, including the suppressed ones
      <stem>.run.json          backend, model, trim offsets, guard tally

--json prints those paths to stdout as JSON. Report absolute paths to the user; a file they have to hunt for is not a deliverable.

Timestamps are on the original recording's clock. Trimming shortens the audio during decoding, and the offsets are mapped back before anything is written, so the .srt lines up with the user's own file.

The network rule — state it, then obey it

A network backend is reachable only when the user asks for it in that invocation. Never as a fallback, never after a local backend fails, never because it would be faster. --backend auto cannot reach one; there is no code path.

Before anything is sent, the tool prints provider, endpoint, file size, duration and estimated cost, then waits. Use --dry-run to show the user that block before committing. In a non-interactive session an unconfirmed upload is refused.

Keys come from the environment, one variable per backend, and nowhere else. Never accept one as a flag, never echo one, never write one into a file.

backendkeymodel$/hourdiarizes
groqGROQ_API_KEYwhisper-large-v3-turbo0.04no
groqGROQ_API_KEYwhisper-large-v3 (default)0.111no
elevenlabsELEVENLABS_API_KEYscribe_v20.22up to 32
geminiGEMINI_API_KEYgemini-3.5-transcribe0.306up to 8
openaiOPENAI_API_KEYwhisper-10.36no

--backend gemini — the two things to say before running it

ts '' /path/to/audio.m4a --backend gemini --dry-run     # show the block, send nothing
ts '' /path/to/audio.m4a --backend gemini               # then run it

Nothing to install — it is stdlib http.client, so the --with argument is empty. Two facts belong in the sentence you say to the user before running it, because neither is visible from the command line:

  • The audio is uploaded twice over. Gemini has no single-shot endpoint: the file goes to Google's Files API first, and the transcription request then carries only the URI that came back. Google keeps that upload for 48 hours. The disclosure block prints this; do not skip past it.
  • 30 minutes is the ceiling, not the hour Google's own page leads with. The hour applies only without word timestamps or diarization, and this backend always requests both — without word offsets there is no clock to map back onto the user's file. A longer recording is refused before the upload starts.

Do not offer Gemini's smart mode. It is not wired up, on purpose. If the user asks for it — it is the model's headline feature, and it does remove filler words and rewrite spoken self-corrections — the answer is that Google's API refuses word timestamps and speaker labels alongside it, so it would produce no .srt and no speakers, and it changes the words. Filler removal happens at the notes step instead, where it is labelled a summary and checked. See references/backends.md.

Audio preparation — on by default, and it matters more than the model

The audio is normalised and silence-trimmed before decoding, and timestamps are mapped back to the original clock afterwards. This is the single largest quality lever in the tool: cleaning the audio beat reaching for a bigger model.

flagwhat it does
--no-normaliseskip the loudnorm pass
--no-trimskip silence removal; keep the original timeline exactly
--silence-threshold DBwhat counts as silence, default −40 dB
--min-silence SECONDShow long a quiet span must be before it is cut, default 1.0
--keep-intermediatekeep the prepared wav next to the outputs, to listen to

Reach for --no-trim when the user cares about the original timeline more than the bill, and for --keep-intermediate when a transcript looks wrong and you need to hear what the decoder actually got.

Another language, and more than one of them

English out: --task translate. Whisper's second task is X -> English and there is no other target, so this is a task, not a target-language flag.

ts 'mlx-whisper>=0.4.2' /abs/path/call.m4a --backend mlx-whisper \
    --model large-v3 --task translate --lang auto

--model large-v3 is required. turbo is a distillation that dropped the translate task and does not error -- measured 2026-09-06, it returned the German verbatim when asked for English. Since turbo is the default, the tool refuses --task translate without an explicit --model large-v3. Do not work around that; there is no turbo build that translates.

parakeet, elevenlabs and gemini cannot translate at all and refuse. groq and openai can, through a separate /audio/translations route, English only.

A mixed-language recording: DO NOT USE mlx-whisper. This is the important one, because mlx-whisper is the default on Apple Silicon and it fails silently. Whisper decides the language once, from the first 30 seconds. Measured 2026-09-06 on 29.5 s of English followed by German: mlx-whisper returned the German half translated into English, and rendered "Ich schicke die Aufstellung heute Nachmittag herum" -- "I'll circulate the breakdown this afternoon" -- as "I'm going to send the show today to the next day". Not gibberish: Nachmittag (afternoon) became a day rather than a time of day, so the commitment moved by up to a day, and Aufstellung (a breakdown) became "the show". Fluent, confident, wrong, and nothing in the output said so. Warn the user about the CONTENT, not just the language -- a mistranslation this smooth is not something they will spot by reading.

faster-whisper, parakeet and gemini all returned the German as German. Pick one of those when the user says the call has more than one language in it. The tool prints the caveat at run time on backends that cannot do better, but do not rely on the user reading it.

--multilingual re-detects per segment, on faster-whisper only; gemini does it unconditionally. Note that faster-whisper was already correct WITHOUT the flag on both clips tested, so it is not the thing that saves you -- the backend choice is.

WHICH LANGUAGE THE TRANSCRIPT COMES OUT IN. Always the one that was spoken. There is no default to English and no setting that changes it. --task translate produces English and only English -- there is no way to ask any backend here for a German transcript of English speech.

So a request like "give my colleague the transcript in German" is a NOTES job, not a transcript job. Take the transcript verbatim in whatever was said, then write the notes document in German. You can write notes in any language; the transcript is a record and stays in the language of the room.

The quality guard

On by default. Suppressed segments stay in the .json with the reason and the metrics; they are dropped from the .md and .srt. --guard mark keeps them inline flagged, --guard off disables it.

It does not transfer to every backend. The strong rules read Whisper decoder metrics. faster-whisper, Groq and OpenAI return all three, so the guard is the same code. Parakeet, ElevenLabs and Gemini return none of them and fall back to the backend-independent rules only — the tool says so at run time. See references/backends.md.

If the user asks why a stretch of transcript is missing, read the .json: the answer is there with the numbers that caused it.

Starting from a transcript you already have

Most meetings are already transcribed by the platform, and there is often no audio at all. Teams and Zoom hand out a .vtt (sometimes .srt), and it is unreadable as prose: a cue every few seconds, sentences chopped across cues, the speaker's name repeated on every line, timecodes throughout.

That is a supported entry point. Nothing is re-transcribed — the audio path is skipped entirely:

"$HOME/.claude/skills/transcribe-summarize/scripts/normalise_transcript.py" meeting.vtt
# -> meeting.md, cues rejoined into paragraphs, speakers attributed, one anchor per paragraph

Then carry on exactly as if the transcript had been decoded here: read it, ask for the meeting facts, and write the notes under references/notes-register.md.

--no-speakers drops attribution if the source labels are wrong or unwanted.

It is a format conversion and nothing more. No words are changed, no filler removed, no grammar fixed. Deciding what was said is the summarising step and it has its own rules. If a user hands you a messy transcript and asks for it "tidied up", normalise the format here and do the judgement in the notes — do not quietly rewrite someone's words in a document that is supposed to record them.

Speakers are kept in the transcript and forbidden in the notes, which is not a contradiction: a transcript is a working artefact and may carry provenance; the notes are a record and may not. notes_check.py will still reject a raw Speaker 2 label in the notes.

If someone passes a .vtt to transcribe.py it stops and points here rather than trying to decode it.

Video files

.mp4 is what a Teams or Zoom download actually is, and it works directly — no need to extract the audio first. Verified working: .mp4, .mov, .mkv, .webm, plus every audio container (.m4a, .mp3, .wav, .flac, .opus). ffmpeg pulls the audio track out; the video is ignored and never uploaded.

A file with no audio track — a muted screen recording — is refused up front, before any network backend is offered it. That check runs before the egress gate specifically so a silent video is never uploaded and billed.

Review is a step, not an optional extra

Transcription output is a draft. Say so, and make the user check it.

Machine transcription is confidently wrong in ways no threshold catches. Measured on real audio in this project: large-v3 silently dropped a speaker's spoken correction of a figure, seven of eight backends heard "board pack" as "board packs up", and parakeet dropped the passage containing it altogether. Both read perfectly fluently. The quality guard catches inventions over silence; it cannot catch a plausible mis-hearing, and neither can you by reading the output.

So the workflow is transcribe → the user checks → then notes:

  1. The transcript .md ends with a "Worth checking" section — ranked timestamps where a listen-back is most likely to pay off (least-confident segments, anything containing figures). Point the user at it explicitly.
  2. Names, figures and dates are what to verify. They are the first thing to degrade and the most expensive to get wrong in a record.
  3. Fixes go into the .md, by hand or with --replace on a re-run. Then regenerate anything built from it.

Never present a transcript or a set of notes as verified. You did not hear the audio; the user did. Say what was decoded, say where it is least certain, and let them confirm.

Editing and regenerating

The .md is the source. Edit it, then rebuild the PDF — no re-transcription:

"$HOME/.claude/skills/transcribe-summarize/scripts/notes_check.py" notes.md
"$HOME/.claude/skills/transcribe-summarize/scripts/render_pdf.py"  notes.md

Run the checker again after any edit. Hand-editing is exactly when a provenance leak or an inferred "next steps" line gets introduced.

Writing the notes

When the user wants meeting notes rather than a transcript, you write them — read the transcript and produce the document yourself. There is a scripts/summarize.py fallback that calls a network model, but it is for running this pipeline outside a Claude Code session; inside one it is a pointless upload.

Ask first — three things the audio cannot tell you

Almost no backend here identifies speakers. Every Whisper engine and Parakeet return no speaker field at all. Two exceptions: --backend elevenlabs (Scribe) diarizes up to 32 speakers, and --backend gemini up to 8. Both return positional labels rather than names — speaker_0 and spk:0 respectively, the formats measured from live responses on 2026-09-04 and 2026-09-06 — and the register forbids a raw label in a notes document, in either format. So they tell you how many people spoke and which lines belong together; they still cannot tell you who. Attribution comes from the user either way; diarization just makes the mapping possible from the transcript instead of from memory.

Before writing notes, ask for:

  1. Who was present. Without names, write the notes with no attribution at all — impersonal, "it was stated that…". Never invent a name, a role, or a positional label. If the transcript makes it obvious who spoke (someone is addressed by name), you may attribute that; ambiguity means no name.
  2. The date of the meeting. Today's date is a default, not a fact. Audio is often written up days after the conversation, and a wrong date on a factual record is worse than no date. Confirm it.
  3. What the meeting was — a title in the participants' own terms.

Ask for all three in one message, not one at a time, and offer today's date as the default so the user only has to correct it. If the user declines to supply attendees, proceed unattributed and say that is what you did.

Before writing a single line, read references/notes-register.md. It is short and it is the whole specification. It is not style advice; the rules in it were learned by having sections deleted by hand from a real document, and the reasons are legal rather than aesthetic.

The two rules it turns on:

  • Factual summary only. What was said. No analysis, no implications, no "next steps", no "what wasn't covered", no filling a gap.
  • It reads as a protocol write-up by someone who was there. It never mentions a recording, a transcript, audio, a model, or any decoder artefact — no timecodes, no Speaker 2 labels.

Then check it, every time — the register is not self-enforcing and a model asked to summarise will add analysis unprompted:

"$HOME/.claude/skills/transcribe-summarize/scripts/notes_check.py" notes.md

Exit 0 is clean; exit 1 lists file:line for every violation. Fix them before handing the document over. Run it on the PDF too — a leak that only exists in the rendered file still counts.

Guidance is welcome, but after the notes and outside the document. Offer your read in conversation, or write it to a separate file. Never append it.

The PDF

"$HOME/.claude/skills/transcribe-summarize/scripts/render_pdf.py" notes.md

Headless Chrome, Chromium or Edge, discovered automatically. If none is installed it writes the HTML, says so, and exits 0 — the HTML is still a deliverable.

Provenance

Local decoding is mlx-whisper (MLX) or faster-whisper (CTranslate2); audio preparation is ffmpeg. The network backends call Groq's and OpenAI's transcription endpoints directly over stdlib urllib — no vendor SDK.

Keeping provenance out of a notes document changes what the document says, not what happened. Recording a call without consent is a criminal offence in some jurisdictions — in Germany, StGB §201 — and a well-registered write-up is not a defence to it. Obtaining consent is the user's responsibility, and if the question comes up, say so plainly rather than implying the framing provides cover.

Tooling

Unit tests in tests/, an offline eval in evals/. Fixtures are generated by fixtures/make_fixtures.py, never committed — this repository is public and audio never belongs in it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.