Long Doc Processor — Documentation skill for Claude Code
长文档处理 Claude Code Skill:讲座/课程/录音/多份 .docx → 净化 → 合并 → 可独立打开的 HTML 讲义.
How to install Long Doc Processor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open kizemo/long-doc-processor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Long Doc Processor does
长文档处理 Claude Code Skill:讲座/课程/录音/多份 .docx → 净化 → 合并 → 可独立打开的 HTML 讲义。30 条可机检规约 + 531 项测试通过。MIT
Alternatives in Documentation
- Docx — Create, edit, and analyze Word documents with tracked changes, comments, and formatting 94.1k ★
- Ars Format Convert — ARS academic-paper format-convert mode — convert to LaTeX / DOCX / PDF / Markdown 4.5k ★
- Docs Serve — Build the HTML documentation and then serve it locally so it can be viewed in a browser 1.1k ★
README
long-doc-processor
**v4.22** · Claude Code Skill · 长文档(讲座/课程/录音/多份 .docx) → 净化 → 合并 → HTML 交付
[](https://github.com/kizemo/long-doc-processor) []() []() []() []() [](.github/workflows/ci.yml)
**作者**: Duanyi · **位置**: `F:/soft/00selfmade/long-doc-processor/`(开发) / `~/.claude/skills/long-doc-processor/`(runtime)
📖 项目介绍
**long-doc-processor** 是一个 Claude Code Skill,把"音视频 / 多份文档 / XMind"等异构输入,转成"可独立打开的 HTML 讲义"。核心方法:
- 每条规则都可机检** — 30 条规约 →
verify_all.py(输入)+verify_html.py(输出)双重校验 - LLM 调用容错 — 7 种 status 分流(ok / empty / error / timeout / rate_limited / no_api_key / no_sdk),默认 fail-soft +
--strict切 fail-loud - 跨项目踩坑沉淀 — 13 条 M-XX 模式(基于 14 份 F:/resourse_study/ 历史 handoff)
项目目标
| 输入 | 处理 | 输出 |
|---|---|---|
| 课程讲义 (PDF/PPT) | 文字提取 + 净化 + 结构化 | Markdown 笔记 |
| 讲座视频 (mp4/m4a) | ASR 转录 + 章节切分 + 净化 | Markdown + HTML |
| 多份 .docx | 合并 + 标题降级 + 规约校验 | Word / HTML 讲义 |
| 多份 .md | 跨文档合并 + 编号统一 | 合并后 Markdown + HTML |
| XMind 大纲 | XML 解析 + 层级重构 | Markdown 大纲 |
| OCR 配图 | RapidOCR + LLM 视觉理解 | 关键帧 + 说明 |
🎯 快速开始(5 分钟)
安装
# 1. 克隆仓库
git clone https://github.com/kizemo/long-doc-processor.git
cd long-doc-processor
# 2. 安装 Python 依赖
# (Python 3.12+,系统包)
pip install pytest
# 3. (可选)安装 LLM SDK(only needed for real LLM calls)
pip install anthropic
# 4. 验证安装(531 tests,无 API key 也可跑)
python -m pytest tests/ -v
# 期望: 531 passed, 6 warnings in ~17s
# 5. (可选)同步到 Claude Code skill 目录
# Windows:
cp -r scripts/ references/ SKILL.md ~/.claude/skills/long-doc-processor/
5 分钟体验(无 LLM)
# 1. 试跑 — 步骤 1(转录)用
Related Skills
Doc Check Skill
Document check skill for Claude Code: extract docx content, semantic rules check, HTML report
Doc2screen
Screen-adaptive reading editions from PDF, DOCX, EPUB, HTML, and Markdown — self-contained HTML, EPUB3, and de
Book To Course Skill
Claude skill that turns a book (EPUB, PDF, HTML, DOCX, Markdown) into an interactive beginner-friendly course:
Create Doc
Generate a professional Word document (.docx) using Python and python-docx.
Summarize Doc
Summarize a document (PDF, DOCX, or other file) into key points and actionable insights. Use when given a file
Microsoft Word
Agent skill for Microsoft Word for Claude Code, Cursor, Codex and other SKILL.md agents: inspect, edit, replac
Related Agents
Doc Processor
Generate and parse office documents — PDF, DOCX, XLSX, PPTX, CSV. Pure format utility for creating reports, ex
Python Document Processor
Production-grade Python document processor for PDF/DOCX/Markdown/TXT extraction with robust error handling, te
Funnelfox Tokenization
FunnelFox tokenization specialist: PAN, payment tokens, network tokens, processor tokens, stored credentials,