kizemo

Long Doc Processor — Documentation skill for Claude Code

Documentation community

长文档处理 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 交付

[![GitHub](https://img.shields.io/badge/GitHub-kizemo%2Flong--doc--processor-blue?logo=github)](https://github.com/kizemo/long-doc-processor) [![Version](https://img.shields.io/badge/version-v4.22-green)]() [![Tests](https://img.shields.io/badge/tests-531%20passed-brightgreen)]() [![Python](https://img.shields.io/badge/python-3.12%2B-blue)]() [![License](https://img.shields.io/badge/license-MIT-blue)]() [![CI](https://img.shields.io/badge/CI-passing-brightgreen?logo=github-actions)](.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(转录)用