qinghonglin/paperdoctor/prepare-paper

Claude Code and agent skill by qinghonglin/paperdoctor

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Organize a paper PDF and its codebase into clean reading artifacts. Use this before any other read-* skills.

Install

npx vskill@latest install qinghonglin/paperdoctor/prepare-paper

SKILL.md

The same SKILL.md was published earlier as qinghonglin/paperdoctor/prepare-paper.

Prepare Paper

Use this workflow to organize a paper PDF and code into clean reading artifacts.

Overall Flow

text
+---------------------------+ +---------------------------+ +---------------------------+
| Step 1: Parse PDF | | Step 2: Render Pages | | Step 3: Index Codebase |
| api_mathpix.py | | render page PNGs | | build code index |
+---------------------------+ +---------------------------+ +---------------------------+
\ | /
\ | /
\_________________________|_________________________/
|
v
+---------------------------+
| Step 4: Organize Paper |
| full.md / refs / sections|
+---------------------------+

Parallel rule:

  • Step 1, Step 2, and Step 3 run in parallel.
  • Step 4 runs only after all three parallel steps finish.
  • Treat Step 4 as the synchronization point after the parallel phase.

Four Steps

Step 1: Parse the PDF with Mathpix

Prefer `api_mathpix.py` (Mathpix API) first — it produces high-quality markdown with LaTeX math and downloads images locally.

Primary command (try first):

bash
python tools/api_mathpix.py papers/<paper_dir>/<paper_file>.pdf

This uploads the PDF, waits for processing, downloads markdown + images to papers/<paper_dir>/metadata/<arxiv_id>/mathpix/.

Fallback (only if Mathpix API fails — account disabled, network error, etc.):

bash
python tools/api_mineru.py -p papers/<paper_dir>/<paper_file>.pdf -o papers/<paper_dir>/metadata
Step 2: Render page images

Command:

bash
python tools/pdf_render.py papers/<paper_dir>/<paper_file>.pdf
Step 3: Index the codebase

Command:

bash
python tools/code_analyzer.py papers/<paper_dir>/<repo_dir> --output papers/<paper_dir>/metadata/code/index.json
Step 4: Organize the paper markdown

Command:

bash
python tools/organize_paper.py --paper-file papers/<paper_dir>/<paper_file>.pdf

This step reads the Mathpix/MinerU output from Step 1 and writes the normalized paper text, extracted references, and per-section markdown files.

Execution Order

Run the workflow like this:

  1. Start Step 1, Step 2, and Step 3 in parallel when needed.
  2. Wait for all of Step 1, Step 2, and Step 3 to finish.
  3. Run Step 4.

Common Issues

  • Always try `python tools/api_mathpix.py` first. Only fall back to api_mineru.py if the Mathpix API fails.
  • Paper text is read from {paper_dir}/metadata/{arxiv_id}/mathpix/{arxiv_id}.md by downstream skills.
  • Run organize_paper.py only after Mathpix/MinerU output exists.
  • If Step 4 fails, first check whether markdown actually exists under metadata/<pdf_stem>/.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
25
Repository forks
1
7-day trend score
16

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/qinghonglin/paperdoctor/prepare-paper/badge)](https://verified-skill.com/skills/qinghonglin/paperdoctor/prepare-paper)

Something wrong with this skill or its page? Tell us.