Preface¶
It is very common to paste screenshots, send scanned files, or drop images with URLs in conversations. If you have to hand-write OCR scripts, adjust REST calls, and then piece together coordinates and body text every time, the Agent’s context becomes cluttered with the workflow, and recognition quality depends on the interface and parameters you select.
Below is an introduction to the enterprise skill package on SkillHub: Tencent Cloud OCR (General High-Precision) (@tencent-adm/tencentcloud-ocr). It encapsulates Tencent Cloud’s “General Text Recognition (High-Precision)” into a Skill that can be loaded by an Agent. When a user sends an image, pastes an image, provides an image link, or explicitly requests to “recognize text,” the model will automatically perform recognition according to the skill instructions, returning text box locations and content. It is suitable for scenarios with complex layouts, high word counts, and high requirements for precision and recall rates.
What is this¶
Tencent Cloud OCR (General High-Precision) is an enterprise-source skill released by the Tencent Cloud OCR team. The current version is v1.0.5, categorized under knowledge-management on SkillHub.
Skill Coordinates: @tencent-adm/tencentcloud-ocr. Official Description Page: https://api.skillhub.cn/tencent-adm/tencentcloud-ocr; SkillHub Display Page: https://www.skillhub.cn/skills/tencent-adm/tencentcloud-ocr.
Compared to “writing a temporary call script,” its value lies in the fact that trigger conditions, capability boundaries, and return formats are written in the SKILL.md. The Agent automatically selects it at the appropriate time, reducing the need to reinvent the wheel.
Core Functions¶
The following capabilities are derived from the skill summaries on SkillHub and the crawled data. Unlisted interface fields or parameters are not expanded upon in this article.
- Trigger Method: Automatically invoke this skill when a user sends or pastes an image, provides an image URL, or requests to recognize text in an image.
- Recognition Scope: Supports detection and recognition of overall text in images; supports Chinese, English, Chinese-English mixed text, numbers, and special symbols.
- Return Content: Returns text box locations and corresponding text content.
- Scenario Positioning: Suitable for scenarios with a large amount of text, complex layouts, and high requirements for recognition precision and recall rates.
- Credential Requirements: The tag indicates
requires_api_key=true. Tencent Cloud OCR-related API keys must be configured before use (refer to theSKILL.mdwithin the skill package for specific environment variable names).
Installation and Activation¶
Follow the general SkillHub instructions for the installation process: https://skillhub.cn/install/skillhub.md.
1. Check or Install SkillHub CLI¶
First, confirm if skillhub is already on your local machine:
command -v skillhub && skillhub --version
If it is not installed, follow the official documentation to perform a complete installation (CLI + Default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
If only the CLI is needed:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install the Skill to the current Agent’s skills directory¶
During installation, you must use --dir to point to the skills directory recognized by the current Agent; installing to the default ./skills/ might not be loaded.
skillhub install @tencent-adm/tencentcloud-ocr --dir <your skills directory>
Alternatively, follow the prompts on the SkillHub page and let the AI install @tencent-adm/tencentcloud-ocr based on skillhub.md.
Common client skills paths (excerpted from official installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, restart or refresh the skill list according to the requirements of your client, and configure the API Key as requested.
Typical Usage¶
The skill is designed to be “dialogue-driven” and does not list a separate set of CLI subcommands inconsistent with the SkillHub page. Typical interactions are as follows:
- Paste an image containing text or send an accessible image URL in an Agent where the skill has been enabled.
- Describe the requirement in natural language, for example: “Recognize all text in the image,” “Output in reading order and mark the position of each paragraph.”
- The Agent calls Tencent Cloud General High-Precision OCR based on
SKILL.md, organizes the recognition results (including text boxes and text), and replies.
If batch or pipeline processing is required, you can still call the Tencent Cloud OCR API directly in your business code; this skill mainly solves the problem of automatic, on-demand recognition triggering within an Agent session.
Applicable Scenarios and Notes¶
Who it is for
- Developers of products or internal tools who need to turn “reading images” into a default capability in environments supporting Skills, such as Cursor, Claude Code, and Codex.
- Materials with complex layouts and high word counts, such as document screenshots, table photos, and mixed poster layouts, where Tencent Cloud high-precision general OCR is preferred over self-developed rules.
Usage Notes
- You must activate the Tencent Cloud OCR service and configure API keys; the skill cannot complete real calls without configuration.
- Image URLs must be accessible to the caller; whether local paths are supported depends on the implementation within the skill package, subject to the installed
SKILL.md. - The SkillHub page shows a rating of 100000 and approximately 15857 downloads (statistics are subject to SkillHub display). The functionality and billing of enterprise-source skills are subject to the official Tencent Cloud documentation.
Conclusion¶
Tencent Cloud OCR (General High-Precision) encapsulates high-precision general OCR into an Agent Skill: it automatically invokes when sending images, pasting links, or verbally requesting recognition, returning box locations and text, facilitating knowledge organization and complex layout reading. For installation and directory configuration, see SkillHub Installation Instructions. For skill details, see https://api.skillhub.cn/tencent-adm/tencentcloud-ocr.