# Transcript Cleaner — Turn Captions into Readable Prose

> Feed it an SRT, a WebVTT, a YouTube transcript paste, or timestamped text; get back clean paragraphs — timestamps stripped, rolling-caption duplication undone, speakers labelled, every spoken word present exactly once.

Transcript Cleaner — Turn Captions into Readable Prose is a paid AI agent skill on Agensi by 程向阳, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [程向阳](https://www.agensi.io/creators/creator-1452)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.1
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/transcript-cleaner-turn-captions-into-readable-prose
- Tags: automation, documentation, node-js, markdown, transcription

## About this skill

Nobody reads raw transcripts. A one-hour talk exports as 2,000 fragments, half of them timestamps, and if the captions came from YouTube's auto-captioner, every line is printed two or three times as the text rolls. The words are all there — they're just unusable.

**Transcript Cleaner** rebuilds the document the recording was always supposed to be:

- **Four formats, auto-detected.** SRT files, WebVTT (including header-less fragments), YouTube "Open transcript" copy-paste text, and plain text with a timestamp on each line. No flags, no conversion step — it recognises what you hand it.
- **Rolling duplication, undone properly.** Auto-captions repeat the previous line and append a few words. The cleaner keeps only the new tail of each cue — string-prefix extensions trimmed, word-level overlaps merged — so every word survives exactly once, in order.
- **Paragraphs from the recording's own signals.** New paragraphs start where the speaker paused longer than `--max-gap` seconds (default 2.0, adjustable), where a sentence actually ended, and where the speaker changed. Not every 40 words, not one giant block — where the talk itself breathes.
- **Speakers kept, if you want them.** `<v Name>` tags in VTT and `Name:` prefixes elsewhere become paragraph labels (`**Name:**` in Markdown). `--no-speakers` drops the labels for a clean single-voice read.
- **A receipt, not just an output.** Alongside `clean.md` and `clean.txt` you get `summary.json`: format detected, lines in → paragraphs out, character and word counts, duration, and the speaker list.

**Fully offline, zero dependencies.** One Node.js program (Node 22+, standard library only). Your transcripts never leave your machine — which matters, because transcripts are usually of things that were never published. Runs in demo mode on the bundled samples (a rolling-caption VTT and an SRT interview); a license key unlocks your own files.

**Honest limits:** paragraph breaks are heuristics — a dramatic mid-sentence pause will split a paragraph, and a speaker who never pauses produces a long one. It removes duplication and scaffolding; it does not fix mis-heard words, invent punctuation, or translate. Timestamps are discarded by design, and your original file is never modified.

## Requires

- Node.js
- transcript
- subtitles
- srt
- vtt
- youtube-captions
- text-cleanup
- podcast
- accessibility
- offline

## Known limitations

Paragraph breaks depend on existing punctuation and silence gaps. Speaker detection uses heuristics on prefixes. Deduplication might rarely merge adjacent non-duplicate cues sharing 2+ words.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Transcript Cleaner — Turn Captions into Readable Prose skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this handle the repetitive 'rolling' text found in YouTube auto-captions?

This skill handles SRT, WebVTT, and raw YouTube copy-pastes, and it is specifically designed to fix 'rolling captions' where text repeats every few seconds—a common issue that standard LLM prompts often fail to solve.

### Which AI agents or environments can I use this skill with?

It is an offline Node.js script (v22+) with zero external dependencies, making it compatible with any local environment or AI agent capable of executing shell commands and scripts.

### Will this tool summarize or change the meaning of my transcript?

The skill uses deterministic logic to ensure every word from the source is preserved; unlike an LLM, it will never hallucinate, skip sentences, or summarize your content unless you tell it to.

### What is included in the purchase?

You receive the full Node.js source code for the skill, a detailed README for configuration, and lifetime access to any future updates or bug fixes released by the developer.

### Does the Transcript Cleaner fix grammar or add missing punctuation?

No, this tool focuses on structural cleaning; it preserves the original text exactly as it appears, meaning it will not add missing periods or fix spelling errors made by the speech-to-text engine.

### Can I customize how the tool decides to start a new paragraph?

Yes, you can use the `--max-gap` parameter to define how many seconds of silence should trigger a new paragraph, allowing you to customize the 'flow' of the output document.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
