Skip to content
FunCoding

Search

Search docs, Skills and MCP

doc-parse

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

文档与办公7.7kantinet-agentteams/skills/doc-parse/SKILL.md

Install

Send this to Claude Code, Codex or Cursor. The agent checks the Skill for safety first and installs it only after you confirm.

读取 https://funcoding.ai/skills/anbeime/skill/doc-parse/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

多格式文档解析 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 信息)。

Similar Skills

theme-factory
anthropics/skills180k

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

Docs & office

canvas-design
anthropics/skills180k

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

Docs & office

doc-coauthoring
anthropics/skills180k

doc-coauthoring

Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.

Docs & office

docx
anthropics/skills180k

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

Docs & office

pdf
anthropics/skills180k

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

Docs & office

discernment-nudge
anthropics/skills180k

discernment-nudge

After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.

Docs & office