/dotfiles:transcribe-recording [recording file] [folder of related documents]from Kevin's dotfiles skills
Transcribes speech recordings (meetings, calls, podcasts, interviews) locally on Mac using five open-weight models for word-by-word voting, pyannote for speaker diarization, and outputs Markdown, SRT, and VTT with doubtful words table.
Ships in Kevin's dotfiles skills. 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.
None: SKILL.md is the whole skill.
The process runs on this Mac only:
For one hour of speech, the five models take about 30 minutes, and the speaker turns about 5 more. references/benchmark.md gives the measurements behind the choice of models, made on French speech.
{date} - {title}, transcription.Keep the recording and its text on this Mac. Do not send them to a hosted API.
Each script that reads or writes words takes --language {code}. The page of the language says what changes with it: the words that the comparison leaves out, the labels of the transcript and the rules of the listening check.
| Language | Code | Page |
|---|---|---|
| English | en | references/languages/en.md |
| French | fr | references/languages/fr.md |
To add a language, add its entry to scripts/languages.py and its page to references/languages/, on the pattern of the others.
| Placeholder | Value |
|---|---|
{nativ python} | /Applications/Nativ.app/Contents/Frameworks/NativServerKit.framework/Versions/A/Resources/mlx-vlm-server/python/bin/python3.12 |
{skill} | The base directory of this skill. |
{work} | A folder in the session scratchpad, like {scratchpad}/transcription. |
uv shebang runs with uv run --script. A script without one imports mlx-audio and runs with {nativ python}.{nativ python} command with the Bash sandbox off: MLX fails inside it with No Metal device available, and the Hugging Face cache (~/.cache/huggingface/hub) is not writable there.ffmpeg and ffprobe must be on the path.The models:
| Run name | Family | Repository | Role |
|---|---|---|---|
whisper_large_v3 | whisper | mlx-community/whisper-large-v3-asr-fp16 | Pivot: the written text, the word times, the hints |
moss | moss | OpenMOSS-Team/MOSS-Transcribe-Diarize | Voter, and fallback speaker turns |
canary_1b_v2 | canary | CogniSoftOrg/canary-1b-v2-mlx-bf16 | Voter |
cohere_transcribe | cohere | CohereLabs/cohere-transcribe-03-2026 | Voter, gated |
parakeet_v3 | parakeet | mlx-community/parakeet-tdt-0.6b-v3 | Voter, and second pivot of the agreement check |
Three helpers: mlx-community/Qwen3-ForcedAligner-0.6B-bf16 for align_words.py, mlx-community/Nemotron-3-Diarization for diarize.py, and mlx-community/silero-vad for run_model.py --vad. run_model.py also keeps the granite_nar and qwen3 families, which scored lower, for a new test.
The speaker turns come from pyannote/speaker-diarization-community-1, through diarize_pyannote.py and its own PyTorch environment. The model is gated: accept its conditions on its Hugging Face page, then run hf auth login once. The token that Nativ keeps in the Keychain does not reach it.
Download what the cache lacks:
$ {nativ python} {skill}/scripts/download_models.py {repository} {repository}
Cohere Transcribe is gated: accept its licence on Hugging Face first. The token is in Nativ (in the Keychain), not in the shell, so the script then asks Nativ's server to download the weights: Nativ must be open. Quit Nativ before the long runs, because its server can keep a model in memory.
$ uv run --script {skill}/scripts/check_recording.py {recording} --json {work}/recording.json --cut {work}/audio.wav
The table shows, for each 5-minute window, the packets that fail to decode, the seconds decoded and the level. A recording recovered from a damaged file can keep its length while its end holds silence or bad data, and a model fed that end invents text. --cut writes a mono 16 kHz WAV that stops 1 second after the end of speech. All the models read this WAV, and all times count from its start.
$ uv run --script {skill}/scripts/build_dictionary.py --root {documents} --language {code} --out {work}/dictionary
Read {work}/dictionary/candidates.json: acronyms, proper names, Firstname LASTNAME pairs and rare words, each with its count and number of documents. --skip {folder name} leaves out a folder, like copies or generated notes. Then write {work}/dictionary/dictionary.tsv with four tab-separated columns, after a header line:
| Column | Content |
|---|---|
term | The written form, like Lyon or Marie Curie. |
category | person, place, company, project, acronym or term. |
hotword | yes for a term likely said aloud in the recording. |
note | Free text, like a role or the full form of an acronym. |
Without related documents, write the dictionary from what is known: the names of the speakers and the topics. The yes terms go to the models that take hints: Whisper and MOSS in their prompts, Qwen3-ASR as hotwords. Whisper reads at most 224 tokens of prompt: the script keeps all the person names and the first 30 other terms, so put the most important terms first.
Run one model at a time: two large models at once push a 32 GiB Mac into swap. Keep the run names of the table, because the later steps use them.
$ HF_HUB_OFFLINE=1 {nativ python} {skill}/scripts/run_model.py --family whisper --model mlx-community/whisper-large-v3-asr-fp16 --name whisper_large_v3 --audio {work}/audio.wav --language {code} --dictionary {work}/dictionary/dictionary.tsv --context '{one sentence about the recording}' --out {work}/runs
For the other models, change --family, --model and --name. Give --dictionary to MOSS too: the other families take no hints. The times on an M1 Pro, for one hour of speech: Whisper 14 minutes, MOSS 9, Canary 5, Cohere 2, Parakeet 2.
After each run:
$ PYTORCH_ENABLE_MPS_FALLBACK=1 uv run --script {skill}/scripts/diarize_pyannote.py --audio {work}/audio.wav --out {work}/turns/pyannote.json
Run it with the Bash sandbox off. pyannote clusters the voices over the whole recording, so one voice keeps one tag, like S03, from start to end: it runs at about 14 times real time. Keep its output out of {work}/runs, because the vote reads every file there.
Without a Hugging Face token, fall back to the turns of MOSS. Their tags restart in each 10-minute window, so one person carries several labels. MOSS can also return a window with times but no speaker labels, and the run log names that window. Rerun the window alone, without hints. Its start and end are in the windows list of the MOSS run, and {window} is its tag, like W03:
$ ffmpeg -ss {start} -to {end} -i {work}/audio.wav {work}/turns/{window}.wav
$ HF_HUB_OFFLINE=1 {nativ python} {skill}/scripts/run_model.py --family moss --model OpenMOSS-Team/MOSS-Transcribe-Diarize --name moss_{window} --audio {work}/turns/{window}.wav --language {code} --no-hints --offset {start} --tag {window} --out {work}/turns
When the rerun has no labels either, find the turns with Nemotron. It has 8 speaker slots and mixes people over a long stretch, so use it on one window only:
$ {nativ python} {skill}/scripts/diarize.py --audio {work}/turns/{window}.wav --offset {start} --tag {window} --out {work}/turns/{window}_nemotron.json
$ uv run --script {skill}/scripts/wordvote.py agreement --runs {work}/runs --language {code} --recording {work}/recording.json
The script scores each model against the vote of the others. This measures agreement with the majority, not truth, but it covers the whole recording. Look for:
Leave a faulty model out of the vote. --vad feeds Canary and Cohere speech only, which stops their loops but costs about 3 points of word error rate.
$ uv run --script {skill}/scripts/wordvote.py vote --runs {work}/runs --language {code} --pivot whisper_large_v3 --voters canary_1b_v2,cohere_transcribe,parakeet_v3,moss --dictionary {work}/dictionary/dictionary.tsv --replacements {work}/replacements.json --out {work}/voted.json
The pivot gives the time line and the written form. Where most models agree with the pivot, its word stays as written. Elsewhere the word comes from the vote. Each word records its votes and what each model had in its place.
replacements.json maps a frequent misspelling, in lowercase, to its written form, like {"curry": "Curie"}. Find such words in the doubtful words of a first build, then vote again.--voters '' keeps the pivot alone, with no doubtful words.{nativ python} {skill}/scripts/align_words.py --run {run JSON} --audio {work}/audio.wav --language {code}.Some sources show who speaks, like the video of a call. A script reads these cues into {work}/cues.json, in the format of references/cues.md. Follow the page of the source:
| Source | Page | Script |
|---|---|---|
| Video of a Microsoft Teams call | references/sources/teams.md | scripts/sources/teams.py |
Skip this step for a source without such cues, like a podcast. Its voices keep anonymous labels, like Speaker 1, until the user names them in step 8. To add a source, follow references/cues.md.
Then check the speaker turns against the cues:
$ uv run --script {skill}/scripts/check_speakers.py --speakers {work}/turns/pyannote.json --cues {work}/cues.json
Each speaker should fall under one tag. The second table spreads the seconds of each tag over what the cues show: a tag split between two columns may mix two voices.
Fill assets/transcript-header.md into {work}/header.md, in the language of the recording. Add the header lines of the source page, and delete each line that does not apply.
$ uv run --script {skill}/scripts/build_transcript.py --words {work}/voted.json --speakers {work}/turns/pyannote.json --cues {work}/cues.json --language {code} --header {work}/header.md --out {work}/final/{stem}
Leave out --cues for a recording without cues. With the turns of MOSS instead, give --speakers {work}/runs/moss.json, then each rerun file: a later --speakers file replaces the turns of the earlier files over its own span. The labels and the file names come from the page of the language. The script writes:
| File | Content |
|---|---|
{stem}.md | The transcript: one paragraph per speaker turn, the doubtful words in italics. |
{stem}.srt, {stem}.vtt | Subtitles of at most 20 seconds each. |
{stem}, {doubtful words}.md | Each doubtful stretch, with what each model heard. |
{stem}, {voices to name}.md | Each anonymous voice, with times to listen to. |
A word is doubtful when 2 or fewer of the models voted for it (--doubt). The voices table gives times to listen to for each anonymous voice, so that the user can name it. A probable name rests on an owner cue only: cut a few clips of that voice under other owners and in open discussion, and ask the user to confirm it by ear. When the user recognizes a voice or confirms a name, write the old and new labels to a JSON file, like {"Speaker 1": "{name}", "{name} (probable)": "{name}"}, and build again with --rename {file}.
Read the start of the transcript and the voices table before the delivery.
--out {destination}/{stem}. A destination under ProtonDrive needs the Bash sandbox off.Do this for a new model, for a new kind of recording (a phone call, another language), or to check the choice of models. The person corrects about 6 minutes of audio.
$ uv run --script {skill}/scripts/review.py prepare --audio {work}/audio.wav --runs {work}/runs --language {code} --samples 0:20:00+120 1:00:00+120 1:40:00+120 --out {work}/review
Pick one clip of 2 minutes per listening condition, like each microphone, room or speaker that the recording holds. The README.md in the folder tells the person how to correct the drafts, with the rules of the language. Then:
$ uv run --script {skill}/scripts/review.py score --runs {work}/runs --language {code} --pivot parakeet_v3 --samples-dir {work}/review
$ uv run --script {skill}/scripts/review.py votes --runs {work}/runs --language {code} --samples-dir {work}/review --group canary_1b_v2,cohere_transcribe --group canary_1b_v2,cohere_transcribe,parakeet_v3,moss
A draft starts from a vote, so a draft error that the person misses counts in favour of the models of that vote: their scores are optimistic. --voters picks the models of the draft: draft a second set of clips from another mix, so that no vote keeps that advantage. On about 900 words, a gap under 2 points is noise.
When the person keeps a draft as it is, its clips measure the distance to that draft: the vote of the draft scores 0, and its pivot comes first. Do not rank the models on such clips.
A restart of the Mac empties the scratchpad, with the corrected drafts in it. Ask the user whether to keep a copy of them and of samples.json in another folder.
To test a new model without a run on the whole recording, run it on the WAV clips, with one run folder per clip. Run the current models on the clips too, to compare like with like. Without runs on the whole recording, prepare cuts the clips only, and draft writes the drafts from the clip runs:
$ HF_HUB_OFFLINE=1 {nativ python} {skill}/scripts/run_model.py --family {family} --model {repository} --name {run name} --audio {work}/review/{clip}.wav --language {code} --out {work}/review/clip_runs/{clip}
$ uv run --script {skill}/scripts/review.py draft --runs {work}/review/clip_runs --language {code} --samples-dir {work}/review --pivot parakeet_v3 --voters canary_1b_v2,cohere_transcribe,moss
$ uv run --script {skill}/scripts/review.py clips --runs {work}/review/clip_runs --language {code} --samples-dir {work}/review --group canary_1b_v2,cohere_transcribe,parakeet_v3,moss
Each model hears the same 2 minutes without the audio around them, so the rates run higher than with score. references/benchmark.md lists the candidates tested this way.
Runs with Nativ 0.4.0 (mlx-audio 0.5.8) found these traps. A reading of the source of Nativ 0.4.5 (mlx-audio 0.6.4) confirms the traps of the strict=False loader, the snapshot path, MOSS, the Qwen3-ASR token budget, Cohere's vad=True, Voxtral and pyannote. The other traps need a run, and still date from 0.4.0: the early stop of 20-minute Qwen3-ASR chunks, the Silero buffer limit, VibeVoice-ASR, the Whisper apostrophe and the Nativ blobs. Check them again after a Nativ update.
strict=False by default. run_model.py tries strict=True first. Read the first lines of output. The mlx-community conversion of Cohere Transcribe is for another library: use the CohereLabs weights.hotwords argument drops the speaker labels, so run_model.py appends the hints to the default prompt. The bundled parser also writes [S01] into the text, which the script removes.max_tokens bounds the whole file, and chunks of 20 minutes stop early. run_model.py uses 5-minute chunks and about 500 tokens per minute.run_model.py --vad runs it on 5-minute pieces. Cohere's own vad=True path fails on an mx.array.wordvote.py joins such a piece to the word before it.diarize_pyannote.py brings its own environment through uv.~/.cache/huggingface/hub/blobs/. A file there whose .refs sidecar lists no existing path is an orphan: move it and its sidecar to the Trash.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kdeldycke/dotfiles --plugin dotfiles10 skills in this plugin
/agent-config-self-tuneAudit and tune the configuration of coding agents across Claude Code and pi - settings files (settings.json, settings.local.json), permission rules, instruction files (CLAUDE.md, AGENTS.md), skill bodies and agent definitions. Use when an instruction file, a skill or an agent definition gets bloated or too big, or when asked to slim down, spread, deduplicate, relocate or compress it. Reads each source once, drops what another layer states, moves each rule beside the code, test or docs page it governs, then re-encodes what stays in a dense register to cut token count and context bloat. Also compresses system prompts and tool descriptions, percolates recurring local patterns into the global config, and reviews past session transcripts for tool calls denied by the sandbox or allow/deny rules to propose allowlist refinements./audit-repo-issuesAnalyze a GitHub repository's issues and PRs to find unaddressed feature requests, dismissed ideas, maintenance signals, and opportunities relevant to the current project. Use when you want to scout a related or competing repo for gaps your project could fill./fill-web-formFill a web form using data extracted from local documents (PDFs, images, spreadsheets). Uses Claude Desktop (Cowork) with Chrome integration to read source documents and navigate/fill browser forms. Use when the user wants to automate filling an online form from document data./memory-reviewReview, prune and repair the persistent memory of Claude Code (~/.claude/projects/*/memory). Verify every memory against the code, the docs, the skills and the upstream state, fix or delete the stale ones, merge duplicates, and keep each MEMORY.md index in step with its folder. Use when a memory misled a session, when memories look stale or bloated, when asked to clean up, prune, audit or consolidate memories, or every few months./pr-triageAudit open PRs across multiple repos for duplicates, stale drafts, Renovate noise, and conflicts. Produces a unified priority report./rename-with-datesRename documents and files (PDFs, images, screenshots, etc.) by reading their content to extract the effective/publication date, then renaming them with a "YYYY-MM-DD - Clear descriptive title.ext" format. Use when the user wants to organize files with date prefixes based on document content.Other plugins' skills for the same job