Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Advanced document parsing with PaddleOCR. Returns complete document structure including text, tables, formulas, charts, and layout information. The AI agent extracts relevant content based on user needs.
.claude/skills/freestylefly-paddleocr-doc-parsing/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-11 | ✗→✓ | ▲ Improved | 30% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 78% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 182% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 562% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 74% | 0% |
Use Document Parsing for:
Use Text Recognition instead for:
⛔ MANDATORY RESTRICTIONS - DO NOT VIOLATE ⛔
python scripts/vl_caller.pyIf the script execution fails (API not configured, network error, etc.):
bash python scripts/vl_caller.py --file-url "URL provided by user" --pretty Or for local files: bash python scripts/vl_caller.py --file-path "file path" --pretty
Optional: explicitly set file type: bash python scripts/vl_caller.py --file-url "URL provided by user" --file-type 0 --pretty
--file-type 0: PDF--file-type 1: imageDefault behavior: save raw JSON to a temp file:
--output is omitted, the script saves automatically under the system temp directory<system-temp>/paddleocr/doc-parsing/results/result_<timestamp>_<id>.json--output is provided, it overrides the default temp-file destination--stdout is provided, JSON is printed to stdout and no file is savedResult saved to: /absolute/path/...--stdout only when you explicitly want to skip file persistenceInput type note:
textresult[n].markdownresult[n].prunedResultCRITICAL: You must display the COMPLETE extracted content to the user based on their needs.
text fieldWhat this means:
text, result[n].markdown, and result[n].prunedResultExample - Correct:
User: "Extract all the text from this document"
Agent: I've parsed the complete document. Here's all the extracted text:
[Display entire text field or concatenated regions in reading order]
Document Statistics:
- Total regions: 25
- Text blocks: 15
- Tables: 3
- Formulas: 2
Quality: Excellent (confidence: 0.92)Example - Incorrect:
User: "Extract all the text"
Agent: "I found a document with multiple sections. Here's the beginning:
'Introduction...' (content truncated for brevity)"The output JSON uses an envelope wrapping the raw API result:
json{ "ok": true, "text": "Full markdown/HTML text extracted from all pages", "result": { ... }, // raw provider response "error": null }
Key fields:
text — extracted markdown text from all pages (use this for quick text display)result - raw provider response objectresult[n].prunedResult - structured parsing output for each page (layout/content/confidence and related metadata)result[n].markdown — full rendered page output in markdown/HTML> Raw result location (default): the temp-file path printed by the script on stderr
Example 1: Extract Full Document Text
bashpython scripts/vl_caller.py \ --file-url "https://example.com/paper.pdf" \ --pretty
Then use:
text for quick full-text outputresult[n].markdown when page-level output is neededExample 2: Extract Structured Page Data
bashpython scripts/vl_caller.py \ --file-path "./financial_report.pdf" \ --pretty
Then use:
result[n].prunedResult for structured parsing data (layout/content/confidence)result[n].markdown for rendered page contentExample 3: Print JSON Without Saving
bashpython scripts/vl_caller.py \ --file-url "URL" \ --stdout \ --pretty
Then return:
text when user asks for full document contentresult[n].prunedResult and result[n].markdown when user needs complete structured page dataWhen API is not configured:
The error will show:
PADDLEOCR_DOC_PARSING_API_URL not configured. Get your API at: https://paddleocr.comConfiguration workflow:
PADDLEOCR_DOC_PARSING_API_URL=https://xxx.paddleocr.com/layout-parsing, PADDLEOCR_ACCESS_TOKEN=abc123...Here's my API: https://xxx and token: abc123PADDLEOCR_DOC_PARSING_API_URL (look for URLs with paddleocr.com or similar)PADDLEOCR_DOC_PARSING_API_URL is a full endpoint ending with /layout-parsingPADDLEOCR_ACCESS_TOKEN (long alphanumeric string, usually 40+ chars)configure.py or create a local .env file by default if the skill is installed under a host application directory (for example, ~/.claude/skills)IMPORTANT: The error message format is STRICT and must be shown exactly as provided by the script. Do not modify or paraphrase it.
There is no file size limit for the API. For PDFs, the maximum is 100 pages per request.
Tips for large files:
For very large local files, prefer --file-url over --file-path to avoid base64 encoding overhead:
bashpython scripts/vl_caller.py --file-url "https://your-server.com/large_file.pdf"
If you only need certain pages from a large PDF, extract them first:
bash# Extract pages 1-5 python scripts/split_pdf.py large.pdf pages_1_5.pdf --pages "1-5" # Mixed ranges are supported python scripts/split_pdf.py large.pdf selected_pages.pdf --pages "1-5,8,10-12" # Then process the smaller file python scripts/vl_caller.py --file-path "pages_1_5.pdf"
Authentication failed (403):
error: Authentication failed→ Token is invalid, reconfigure with correct credentials
API quota exceeded (429):
error: API quota exceeded→ Daily API quota exhausted, inform user to wait or upgrade
Unsupported format:
error: Unsupported file format→ File format not supported, convert to PDF/PNG/JPG
references/output_schema.md - Output format specification> Note: Model version and capabilities are determined by your API endpoint (PADDLEOCR_DOC_PARSING_API_URL).
Load these reference documents into context when:
To verify the skill is working properly:
bashpython scripts/smoke_test.py
This tests configuration and optionally API connectivity.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-11 | fail→pass | 14,624 | 3,816 | -74% | 1 | 1 | 0% | 2,626 | 3,415 | +30% | 0 | 0 | — |
case-21 | pass→pass | 10,995 | 2,917 | -73% | 1 | 1 | 0% | 1,758 | 3,199 | +82% | 0 | 0 | — |
case-01 | fail→fail | 4,564 | 5,529 | +21% | 1 | 1 | 0% | 704 | 2,985 | +324% | 0 | 0 | — |
case-02 | fail→fail | 8,129 | 6,121 | -25% | 1 | 1 | 0% | 1,526 | 3,033 | +99% | 0 | 0 | — |
case-03 | fail→fail | 7,423 | 17,558 | +137% | 1 | 1 | 0% | 1,237 | 3,269 | +164% | 0 | 0 | — |
case-04 | pass→pass | 8,029 | 6,018 | -25% | 1 | 1 | 0% | 1,264 | 3,739 | +196% | 0 | 0 | — |
case-05 | pass→pass | 8,645 | 3,669 | -58% | 1 | 1 | 0% | 1,151 | 3,250 | +182% | 0 | 0 | — |
case-06 | pass→pass | 10,228 | 2,678 | -74% | 1 | 1 | 0% | 1,432 | 3,113 | +117% | 0 | 0 | — |
case-07 | fail→pass | 11,483 | 2,980 | -74% | 1 | 1 | 0% | 1,809 | 3,224 | +78% | 0 | 0 | — |
case-08 | fail→pass | 6,922 | 1,845 | -73% | 1 | 1 | 0% | 1,058 | 2,983 | +182% | 0 | 0 | — |
case-09 | fail→fail | 10,533 | 6,926 | -34% | 1 | 1 | 0% | 1,156 | 3,059 | +165% | 0 | 0 | — |
case-10 | fail→fail | 3,380 | 6,455 | +91% | 1 | 1 | 0% | 298 | 3,019 | +913% | 0 | 0 | — |
case-12 | fail→fail | 9,846 | 8,554 | -13% | 1 | 1 | 0% | 2,017 | 4,132 | +105% | 0 | 0 | — |
case-13 | pass→pass | 9,290 | 3,894 | -58% | 1 | 1 | 0% | 1,349 | 3,342 | +148% | 0 | 0 | — |
case-14 | pass→pass | 13,549 | 6,309 | -53% | 1 | 1 | 0% | 2,054 | 3,748 | +82% | 0 | 0 | — |
case-15 | fail→pass | 3,452 | 2,662 | -23% | 1 | 1 | 0% | 473 | 3,131 | +562% | 0 | 0 | — |
case-16 | pass→pass | 10,594 | 3,935 | -63% | 1 | 1 | 0% | 1,613 | 3,251 | +102% | 0 | 0 | — |
case-17 | fail→pass | 10,372 | 2,711 | -74% | 1 | 1 | 0% | 1,794 | 3,129 | +74% | 0 | 0 | — |
case-18 | fail→fail | 7,061 | 3,345 | -53% | 1 | 1 | 0% | 1,024 | 3,213 | +214% | 0 | 0 | — |
case-19 | fail→fail | 9,828 | 4,744 | -52% | 1 | 1 | 0% | 1,628 | 3,438 | +111% | 0 | 0 | — |
case-20 | fail→pass | 6,705 | 3,083 | -54% | 1 | 1 | 0% | 1,131 | 3,264 | +189% | 0 | 0 | — |
case-22 | fail→pass | 9,439 | 1,508 | -84% | 1 | 1 | 0% | 1,542 | 2,899 | +88% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 17 counted toward the lift figure. The other 5 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +32 percentage points is the difference between those two pass rates over the 17 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.