360 Secure SkillHub
360 安全技能中心

Paper Parse

该 Skill 通过本地 Python 脚本和 PyMuPDF/pymupdf4llm,把学术 PDF 转为 Markdown 正文、结构化 JSON 元数据与图片截图,输出含首页标题作者区域和 figures 图片目录,适合论文资料整理与后续阅读。

chen-li-17
chen-li-17
热度 83.65
最近更新 2026-05-11 17:30:11
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 研究 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add paper-parse-figures
Metadata
name
paper-parse
description
Parse academic PDF papers into markdown with figure extraction.
metadata
{"openclaw":{"emoji":"📄","requires":{"bins":["uv"]}}}

Paper Parse

Parse academic PDF papers into structured markdown with figure extraction using PyMuPDF.

Usage

uv run {baseDir}/scripts/parse_paper.py --pdf /path/to/paper.pdf [--output-dir ./output]

Output

The tool generates:

  • {paper_name}_content.md - Full paper content in markdown
  • {paper_name}_parsed.json - Structured metadata including:
    • Paper title
    • Number of pages
    • Extracted figures with captions and paths
  • cover_title_authors.png - First-page snapshot focused on title + authors region
  • figures/ - Directory containing high-resolution figure screenshots

Example

uv run scripts/parse_paper.py --pdf ~/papers/my-paper.pdf --output-dir ./parsed

Output structure:

./parsed/
├── my-paper_content.md
├── my-paper_parsed.json
└── figures/
    ├── figure_1.png
    ├── figure_2.png
    └── ...

Dependencies

  • PyMuPDF (fitz) - PDF parsing and rendering
  • pymupdf4llm - Markdown conversion

These are automatically managed by uv via the inline script metadata.