ai-docs-pipeline
CLAUDE.md1 starsChanged 6 months agoMITView on GitHub
Knowledge pipeline: audio → transcript → analysis → AI-facing docs. Language rule: all files in docs/ are in English. transcript/ and analysis/ are in the source language (audio). Create new files following a single style: - snake_case for file names (e.g. partner_onboarding_checklist.md), no PascalCase and no spaces. - No date in the name — put the date inside the document in the header (> Date: YYYY-MM-DD). Exception — point-in-time snapshot artifacts (review/snapshot for a specific date), where a date in…
- Reads credentials
- Installs packages
In this repositoryOne other file it gives its agents.
- acceptance-criteriaSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Language rule: all files in docs/ are in English.
- Distinctive: line 39
Create new files following a single style:
- Distinctive: line 46
Place the file in the matching subfolder by topic.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md 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.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Purpose
Knowledge pipeline: audio → transcript → analysis → AI-facing docs.
audio → whisper.cpp → transcript/ → [Claude] → analysis/ → [Claude] → docs/Project Structure
audio/
architecture/ # category (arbitrary name)
file.mp3
transcript/
architecture/ # mirrors audio/ structure
file.txt # snake_case, date inside (> Date:), source language
analysis/
architecture/ # mirrors transcript/
file.md # structured analysis, SOURCE LANGUAGE
docs/
architecture/ # mirrors analysis/
file.md # AI documentation, ALWAYS in English
whisper.cpp/ # git submodule — C++ inference engine
transcribe.py # transcription only (whisper)
pipeline.py # full pipeline (transcribe → analyze → docs)
requirements.txt # anthropic SDKLanguage rule: all files in docs/ are in English. transcript/ and analysis/
are in the source language (audio).
Naming Convention (for new files)
Create new files following a single style:
snake_casefor file names (e.g.partner_onboarding_checklist.md), no PascalCase and no spaces.- No date in the name — put the date inside the document in the header
(
> Date: YYYY-MM-DD). Exception — point-in-time snapshot artifacts (review/snapshot for a specific date), where a date in the name is appropriate. - Place the file in the matching subfolder by topic; create a new topic only when needed.
The pipeline (pipeline.py) follows this convention automatically: transcripts,
analysis, and docs get snake_case names without a date, the date is written as a
> Date: line inside each file and carried between stages. The knowledge base index
(docs/README.md) is also generated automatically — do not edit it by hand.
Setup Status
- whisper.cpp — built (
whisper.cpp/build/bin/whisper-cli) - Model —
ggml-medium.bindownloaded (whisper.cpp/models/) - ffmpeg — required for non-WAV files:
brew install ffmpeg - Python deps —
anthropicinstalled in.venv/(pip install -r requirements.txt) - API key —
ANTHROPIC_API_KEYis required for the analyze/docs stages
One-time Setup (for a new machine)
1. Build whisper.cpp:
cd whisper.cpp
cmake -B build && cmake --build build -j --config Release2. Download a model:
cd whisper.cpp
bash models/download-ggml-model.sh medium3. Install ffmpeg:
brew install ffmpeg4. Python deps + API key:
python3 -m venv .venv
./.venv/bin/pip install -r requirements.txt
cp .env.local.example .env.local # then put the key into .env.localpipeline.py automatically reads .env.local (and .env) from the project root;
both are in .gitignore. Alternatively — export ANTHROPIC_API_KEY=... (a real
environment variable takes precedence over the file).
5. Create the pipeline folders:
./.venv/bin/python pipeline.py --init # creates audio/ transcript/ analysis/ docs/--init scaffolds the base folders and exits. It is idempotent — existing folders
are left untouched. Any normal pipeline run also ensures these folders exist, so
this step is optional convenience: run it to drop audio in before the first run.
Inside audio/, create a category subfolder per topic (e.g. audio/architecture/)
and place your audio there.
Usage
Scaffold the folders (optional, idempotent):
./.venv/bin/python pipeline.py --init # create audio/ transcript/ analysis/ docs/Full pipeline (audio → transcript → analysis → docs):
./.venv/bin/python pipeline.py audio/ # all audio, all stages
./.venv/bin/python pipeline.py audio/meeting.m4a # a single file
./.venv/bin/python pipeline.py --from analyze # restart from existing transcripts
./.venv/bin/python pipeline.py --from docs --force # regenerate docs only
./.venv/bin/python pipeline.py audio/ --to analyze # stop after analysisTranscription only (without Claude):
python3 transcribe.py audio/ -m medium -l ruEach stage is idempotent: an existing output file is skipped (unless --force).
Architecture
transcribe.py — whisper only:
- Accepts files or directories; filters by known audio extensions.
- Converts non-WAV files to 16kHz mono WAV via
ffmpeg, then deletes the temp file. - Calls
whisper.cpp/build/bin/whisper-cli; parses the.txtsidecar it writes. - Writes
transcript/<cat>/YYYY-MM-DD_<stem>.txt, mirroringaudio/.
pipeline.py — orchestrates 3 stages, reuses transcribe.py:
- Stages:
transcribe→analyze→docs; boundaries set via--from/--to. analyze/docscall Claude (claude-sonnet-4-6, adaptive thinking, streaming).- Analysis — in the source language; docs — in English (system prompts in
pipeline.py). - Paths are mirrored:
transcript/→analysis/→docs/preserving category and name.
Models
| Model | Size | Speed | Notes |
| base | 142MB | fast | good for clear recordings |
| small | 466MB | med | better accuracy |
| medium | 1.5GB | slow | recommended for mixed-lang |
| large | 3GB | slow | best quality |
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
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.

