跳到正文
cccskills
免费在 GitHub 公开

doc-parse

Convert PDF, PowerPoint, Excel, and Word documents into structured Markdown for search and information extraction. Outputs include document metadata, a parsing confidence score, and the parser used, with fallback parsers available when earlier attempts fail.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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

集成工具Excel
查看安装方法

适用场景

  • Preparing documents for a searchable knowledge base
  • Structuring contract text for information extraction
  • Checking parsing confidence before manual review
  • Converting files for retrieval-augmented generation

包含的文件(2)

  • SKILL.md2.1 KB
  • scripts/run_doc_parse.py2.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Organize AI agents into execution, management, and review roles for complex projects. Choose preset or custom teams, share project context and decisions, and combine their discussions and work into meeting records, feasibility reports, or implementation outputs.

中文简介正在准备中。当前显示英语简介。

  • Reviewing a technical architecture from several perspectives
  • Discussing product pricing across market and cost considerations
  • Assessing a new product's feasibility
anbeime/skill83162026年10月18日 更新

Generate character images, backgrounds, synthetic speech, and music for product videos featuring 小省导购员, a digital shopping presenter. Coordinate these assets with InfiniteTalk to produce a 25-second vertical video made from five scenes.

中文简介正在准备中。当前显示英语简介。

  • Producing a 25-second vertical product presentation video
  • Generating reference images for the 小省导购员 character
  • Creating business setting backgrounds for a video
anbeime/skill83162026年10月18日 更新

Convert PDF, Word, and Excel documents into structured Markdown for search and knowledge bases. The skill tries three parsers in sequence when needed and returns metadata, a confidence score, and the parser used.

中文简介正在准备中。当前显示英语简介。

  • Prepare documents for retrieval-augmented generation
  • Structure documents for an internal knowledge base
  • Extract structured text from contracts
anbeime/skill83162026年10月18日 更新

Organize parsed documents into four color-coded cards covering facts, explanations, risks, and actions. Preserve source references and generation details so readers can review evidence, identify uncertainty, and consider next steps in research, financial, or legal analysis.

中文简介正在准备中。当前显示英语简介。

  • Separating facts from interpretations in financial reports
  • Organizing evidence and risks in legal documents
  • Turning research documents into evidence-linked analysis cards
anbeime/skill83162026年10月18日 更新

Record operations across multiple AI agents and connect events into a traceable history. Search records by tracking ID, time window, or responsible component to support audits and investigations, with local storage available when the vector database fails.

中文简介正在准备中。当前显示英语简介。

  • Trace task dispatch and execution across agents
  • Search audit records by time or responsible component
  • Keep recording events during vector database failures
anbeime/skill83162026年10月18日 更新

Screen documents and external URLs before they enter a processing workflow. Check blocked domains and document permissions, then produce a pass or reject decision, a risk report, and a tracking ID for later review.

中文简介正在准备中。当前显示英语简介。

  • Screening documents before adding them to a knowledge base
  • Checking external URLs against a domain blocklist
  • Reviewing document permissions before processing
anbeime/skill83162026年10月18日 更新

查看 anbeime 的全部技能

报告此技能的问题