Introduction¶
Contracts, invoices, and reports often circulate as PDFs or photos. Many are scans or pages captured with a phone that are bent or skewed and lack a reliable text layer, so copy-paste frequently fails. Building your own OCR pipeline also requires handling deskewing, layout analysis, and table regions, which raises integration costs. Below is an introduction to the community Skill “PDF Recognition & Extraction Expert” on SkillHub, which focuses on the specific task of extracting usable text from PDFs, images, and scans, packaging PP-OCRv6 multi-tier models, preprocessing, and structured parsing into an Agent-callable capability.
What is this¶
“PDF Recognition & Extraction Expert” is a community Skill under the SkillHub category office-efficiency, with the identifier @user_779b44c7/pdf-ocr-md. The current version is 3.4.0, and the publisher is user_779b44c7. The tag indicates requires_api_key=false, meaning it does not depend on any additional API key.
Official positioning: use it when you need to extract text content from PDFs, images, or scans; suitable for contracts, invoices, reports, and especially Chinese-language scans and bent pages photographed with a phone or skewed documents.
Core features¶
The following capabilities are drawn from the SkillHub page and store metadata; key points for version 3.4.0 are below.
OCR and high-speed text layer extraction
- Supports PP-OCRv6 in three model tiers: Tiny / Small / Medium, allowing trade-offs between speed and accuracy.
- For PDFs with a text layer, provides LiteParse ultra-fast extraction (officially reported at about 0.9 ms/page).
Document preprocessing
- Built-in preprocessing pipeline: deskewing, orientation correction, document flattening (for bent, skewed capture scenarios).
Structured parsing
- Layout analysis and table extraction, enabling output to be organized into structured formats such as Markdown rather than a disordered string of characters.
Installation and activation¶
SkillHub recommends two methods: let the AI handle the installation prompt, or use the skillhub CLI locally. Before installing, confirm CLI availability:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub installation docs to perform a full installation (including the CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install the CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
When installing this Skill, you must use --dir to point to the current Agent’s skills directory; otherwise it will install to ./skills/ by default and the Agent may not recognize it. The installation prompt given on the official page is:
Please install
@user_779b44c7/pdf-ocr-mdaccording to https://skillhub.cn/install/skillhub.md.
Example CLI installation (replace <skills directory> with your client’s path):
skillhub install user_779b44c7/pdf-ocr-md --dir <skills directory>
Common client skills directories (excerpted from the SkillHub installation docs):
| Client | Path |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ in the project |
| Windsurf | ~/.codeium/windsurf/skills/ or .windsurf/skills/ in the project |
After installation, refresh or restart per each client’s requirements to enable the Skill. The main differences among Cursor, Codex CLI, and Claude Code lie in the skills directory location; the install command format is the same: skillhub install … --dir ….
Typical usage¶
This Skill is based on the common SKILL.md format; the Agent orchestrates the underlying OCR and preprocessing flows during the conversation according to the skill’s instructions. The public page does not list a standalone set of shell subcommands; typical usage is to specify the task and inputs clearly within a session where the Skill is enabled:
- Describe the source type: PDF file, single/multiple images, or scans.
- Provide the file path or upload attachments according to your client’s capabilities.
- State your focus: full-text extraction, specific pages only, whether to preserve table structure or output as Markdown, etc.
- If the document quality is poor (bent, skewed, low resolution), describe the scenario; the Skill will apply deskew/orientation correction and flattening preprocessing, then choose PP-OCRv6’s Tiny / Small / Medium accordingly.
For PDFs with a text layer, you can prioritize LiteParse-style high-speed extraction; for image-only PDFs or photos, use the OCR and layout/table parsing pipeline. For specific model tiers and steps, refer to the SKILL.md in the Skill package; this article does not fabricate script names or fixed prompt templates.
Suitable scenarios and caveats¶
Suitable
- Office document digitization: Chinese-language scans of contracts, invoices, and reports.
- Documents photographed with a phone: bent pages, skewed capture angles.
- When you need to complete “recognition → structuring” inside an Agent rather than using a separate OCR desktop application.
Notes
- This is a community source; maintenance cadence and upstream OCR model updates follow SkillHub versions. Before using, confirm the version on the store page (currently 3.4.0).
- For extremely blurry, strongly reflective, or predominantly handwritten pages, any OCR will be limited; the Tiny model is faster but may have lower accuracy than Medium.
- Store statistics (as of page metadata): rating 100000, downloads 34789; the install count showing as 0 may be due to the counting method and does not affect local CLI installation.
- Always include
--dirwhen installing to avoid installing into the wrong directory and encountering “installed but the Agent does not load it.”
Conclusion¶
“PDF Recognition & Extraction Expert” bundles PP-OCRv6’s three model tiers, LiteParse text-layer extraction, preprocessing, and layout/table parsing into an office-efficiency Skill, suitable for processing Chinese-language scans and photographed documents inside agents like Cursor. It can be installed and used via SkillHub without an API key.
- SkillHub page: https://www.skillhub.cn/skills/user_779b44c7/pdf-ocr-md
- Installation guide: https://skillhub.cn/install/skillhub.md
- Identifier:
@user_779b44c7/pdf-ocr-md