Doc Parse logo

Doc Parse

CommunityPopular
anbeime
doc-parse

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

Overview

Publisheranbeime
Repositoryskill
Skill namedoc-parse
Stars
6.9K
Forks
645
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by anbeime on GitHub. Read the source before you install it.

Installation

Install the Doc Parse AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/anbeime/skill.git /tmp/skill
mkdir -p .claude/skills
cp -r /tmp/skill/antinet-agentteams/skills/doc-parse .claude/skills/doc-parse
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Doc Parse in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Doc Parse on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Doc Parse is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Doc Parse AI skill do?

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

Why use Doc Parse on TypingMind?

Because you install it once and use it with any model. Doc Parse is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Doc Parse in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/anbeime/skill/tree/main/antinet-agentteams/skills/doc-parse. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Doc Parse?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Doc Parse?

As many as you like. As long as a model supports skills, you can use Doc Parse with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Doc Parse AI skill free?

It is published on GitHub by anbeime. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇