Skip to content
AI & Agents
Skill

/doc-parse

将 PDF/PPT/Excel/Word 等多格式文档解析为结构化 Markdown,并输出元数据与解析置信度,作为 RAG 与四色卡片的数据底座。

BOOST
From plugin
anbeime-skill
7.4k78 skills
Install
$ npx -y skills add anbeime/skill --skill doc-parse --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/doc-parse

Context preview

The summary Claude sees to decide when to auto-load this skill.

将 PDF/PPT/Excel/Word 等多格式文档解析为结构化 Markdown,并输出元数据与解析置信度,作为 RAG 与四色卡片的数据底座。

SKILL.md

doc-parse.SKILL.md
name: doc-parse
description: 将 PDF/PPT/Excel/Word 等多格式文档解析为结构化 Markdown,并输出元数据与解析置信度,作为 RAG 与四色卡片的数据底座。
assign_when: 该 Worker 负责把任意格式的原始文档转成机器可读的结构化文本,是下游信息抽取与检索的通用解析入口。

多格式文档解析 Skill(密卷房)

使用方式

  • 由密卷房 Worker 在收到已通过安全扫描的文件时调用。
  • 三级 fallback 依次尝试,输出最终结构化结果与置信度。

输入(Input)

  • `file_path`:已通过 security-scan 的本地文件路径
  • `formats`:(可选)期望支持的格式白名单,默认全格式

输出(Output)

  • `markdown`:结构化 Markdown 正文
  • `metadata`:标题、页数、表格数、作者等元数据
  • `confidence`:0–1 解析置信度
  • `fallback_used`:最终生效的解析器名称

依赖(Dependencies)

  • MinerU(首选,强排版还原)
  • PyMuPDF(次选,PDF 快速解析)
  • pdfplumber(兜底,表格/文本抽取)
  • `python-magic`(类型探测)

失败处理(Failure Handling)

  • 主解析器失败 → 自动降级到下一档,直到全部尝试。
  • 三级全部失败 → 标记 `人工介入`,不输出残缺结果,回传 BLOCKED 给军机处。
  • 单页超大文件 → 分块解析后拼接,避免内存溢出;块级失败仅标记该块低置信度。

复用价值(Reuse Value)

  • 通用解析底座:RAG 索引、企业知识库、合同结构化均可直接复用。
  • 置信度透明:下游(通政司四色卡片)可据此决定是否需要人工复核,降低幻觉风险。

复赛代码包执行(runnable package)

  • 真实入口:`scripts/run_doc_parse.py`
  • 执行等价于 `core.runtime.AgentSession.run_stage("doc-parse")`,调用 `archive.mijuanfang.MiJuanFangAgent`(三级解析 fallback,纯 Python 可离线)。
  • 运行:`python skills/doc-parse/scripts/run_doc_parse.py`
  • 产物:`examples/snse_survey/skill_outputs/doc_parse.json`(解析结果 + 置信度 + fallback 信息)。
Ships withanbeime-skill

收录最全、更新最快的AI Agent技能库,涵盖文档处理、内容创作、编程开发、机器学习、自动化工作流等多个领域的精选技能包。 🧠 知易智能基座 :20+模型自由切换,知识永远留在你手里 —一个对话框调度所有模型,240+技能即插即用,四色卡片让AI真正记住你。 👉 申请体验

Get the whole plugin

Other skills on anbeime-skill.

agent-team
Skill

agent-team

产品经理与项目管理专家在应对复杂项目时,使用此技能可动态组建包含“执行、指挥、评审”的专属AI团队。实时查看多智能体辩论与决策全过程,共享统一上下文记忆,一键完成从会议决策到系统构建的全流…

agentkit-multimedia-shopping
Skill

agentkit-multimedia-sh…

电商运营与内容创作者在需要制作带货短视频时,用此技能一键生成9:16竖屏数字人成片。自动编排AI绘画、语音合成与视频生成,快速产出“小省导购员”专属形象与专业配音,让多模态视频制作省时省力…

antinet-doc-parse
Skill

antinet-doc-parse

软件开发工程师与数据科学家在构建RAG系统时,当需处理PDF/Word/Excel等多格式复杂文档,用此技能可自动触发三级解析降级,一键输出高置信度结构化Markdown与元数据,免去繁琐…