Metadata-Version: 2.5
Name: meeting-minute
Version: 0.1.0
Summary: Transcribe meetings locally with faster-whisper/whisper.cpp, then extract structured info via Claude/Cursor skills.
Author-email: longnv <hiendv@kaopiz.com>
License-Expression: MIT
License-File: LICENSE
Keywords: claude,cli,cursor,meeting-minutes,transcription,vtt,whisper
Requires-Python: >=3.10
Requires-Dist: faster-whisper>=1.0.0
Requires-Dist: rich>=13.7.0
Requires-Dist: typer>=0.12.0
Provides-Extra: whispercpp
Requires-Dist: pywhispercpp>=1.2.0; extra == 'whispercpp'
Description-Content-Type: text/markdown

# meeting-minute

Two parts:

1. **`mm transcribe`** — converts video/audio to a `.vtt` transcript locally.
   Extracts audio with `ffmpeg`, splits it into resumable chunks, and
   transcribes with `faster-whisper` by default (or `whisper.cpp` on Mac, opt-in).
2. **`mm skill init`** — injects extraction skills/rules into a project so Claude Code
   or Cursor can turn a `.vtt` transcript into structured meeting minutes (summary,
   action items, decisions, Q&A, or your own custom template).

See [DESIGN.md](DESIGN.md) for the full architecture.

## Setup

Requires [uv](https://docs.astral.sh/uv/) and `ffmpeg` on PATH
(`brew install ffmpeg` / `winget install ffmpeg` / your distro's package manager).

```bash
uv tool install .          # exposes the `mm` binary
# or, for development:
uv sync
uv run mm --help
```

## Transcribe

```bash
mm transcribe recording.mp4
mm transcribe call.mp3 --model small.en --language en -o transcript.vtt
mm transcribe long-call.mp4 --backend whisper-cpp   # Mac Metal, opt-in (needs the whispercpp extra)
```

Long/large files are split into chunks (default 10 min) and transcribed one at
a time with progress shown; if interrupted, re-running the same command picks
up from the last completed chunk. Use `--fresh` to force a full re-transcription.

## Extract, via Claude/Cursor

```bash
mm skill init --target claude   # writes .claude/skills/<template>/SKILL.md
mm skill init --target cursor   # writes .cursor/rules/<template>.mdc
mm skill init --target both     # both (default)
```

Then in Claude Code or Cursor, point it at your `.vtt` file and ask it to run the
skill you want (e.g. "extract action items from call.vtt").

### Custom templates

```bash
mm skill list
mm skill add my-template     # scaffolds .meeting-minute/templates/my-template/template.md
mm skill init --template my-template --target claude
```

A template is just a Markdown file with frontmatter:

```md
---
name: my-template
description: what this extracts
outputFile: my-template.md
---

Instructions for what to extract and how to format the output.
```

## Tests

```bash
uv run pytest tests/unit          # fast, no external deps
uv run pytest tests/integration   # needs ffmpeg on PATH; skips cleanly if missing
uv run pytest                     # both
```

## Config

- Global defaults: `~/.config/meeting-minute/config.json`
- Per-project overrides: `.meeting-minute/config.json`

```json
{
  "model": "small.en",
  "language": "auto",
  "backend": "faster-whisper",
  "chunkMinutes": 10,
  "batchSize": 16,
  "templates": ["summary", "action-items"]
}
```
