MacOCR: Image Text Recognition on macOS with Vision

Preface

On macOS, extracting text from screenshots, photos, or scanned documents typically involves installing third-party OCR tools or uploading images to online services and then copying the results. If you are already using Agent Skills to extend capabilities in environments like Cursor or Claude Code, and prefer to keep OCR logic local without separately applying for API keys, you need a Skill that can invoke system capabilities. This article introduces MacOCR from SkillHub, which is designed for macOS and relies on the system’s built-in Vision OCR framework for recognition.

What This Is

MacOCR (identifier @user_9a66f56b/macos-ocr) is a community-sourced (community) Agent Skill, currently at version 1.0.0, categorized under office-efficiency. It is published by user_9a66f56b.

Official description: Uses macOS’s built-in Vision OCR framework to extract text from images; should be used when users need to recognize text from images, screenshots, photos, or scanned documents on macOS. Supports Simplified Chinese, Traditional Chinese, and English recognition; only works on macOS systems that support Swift. The Skill is tagged with requires_api_key=false, meaning no external API key is needed.

Core Features

Based on the SkillHub page and scraped metadata, the verifiable capabilities are:

  1. Local OCR: Recognizes text in images via the macOS Vision framework, without relying on third-party OCR cloud services.
  2. Multilingual: Supports Simplified Chinese, Traditional Chinese, and English.
  3. Input formats: Targets common static image scenarios including images, screenshots, photos, and scanned documents (specific calling methods are guided by the Skill’s internal SKILL.md for Agent execution).
  4. Platform restrictions: macOS only, and requires a Swift-compatible environment.

Installation and Activation

Installing the SkillHub CLI

If skillhub is not yet installed, you can check the version first:

command -v skillhub && skillhub --version

If not installed, follow the official SkillHub installation documentation to perform a full installation (CLI + default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If you only need the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Installing MacOCR

When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, the default installation to ./skills/ may not be recognized. The installation method provided on the official page is: follow the SkillHub installation instructions to install @user_9a66f56b/macos-ocr.

Command-line example (replace <skills directory> with the path for your current client):

skillhub install user_9a66f56b/macos-ocr --dir <skills directory>

Common clients’ skills directories (from the SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

You can also ask the AI in conversation to complete the installation according to the above documentation. After installation, refresh or restart the Agent as required by your client to ensure the Skill is loaded.

Typical Usage

The public page does not separately list copyable OCR command-line examples; usage is driven by the instructions within the Skill package for the Agent: when you request on macOS to “extract text from this image/screenshot” or “recognize Chinese/English in this scanned document,” the Agent, with MacOCR enabled, should process the provided image path or attachment via the Vision OCR workflow.

Reproducible verification steps:

  1. Complete the MacOCR installation on macOS and confirm the Agent has loaded the Skill.
  2. Provide an image or screenshot containing Simplified Chinese, Traditional Chinese, or English, and explicitly request text extraction.
  3. Compare the Agent’s returned text against the original image to check completeness and language matching.

Use Cases and Considerations

Who it’s for

  • Developers primarily working on macOS who need to hand text from screenshots, photos, scanned PDF pages, etc., to AI for further editing, summarization, or retrieval.
  • Those who want to leverage the system’s built-in Vision framework and avoid configuring a separate API key for OCR (requires_api_key=false).
  • Developers already using SkillHub or willing to install the CLI per the official documentation.

Limitations and Notes

  • Only for macOS; this Skill should not be installed or relied upon in Linux or Windows environments.
  • Recognition quality depends on the Vision framework and image clarity; the Skill page does not promise additional post-processing or layout analysis capabilities.
  • SkillHub metadata is community-sourced; you can check ratings and installation counts on SkillHub before use. As of the data scrape: rating 100000, downloads 1048, installations 62 (subject to real-time data on the SkillHub page).

Conclusion

MacOCR wraps macOS’s built-in Vision OCR into an Agent Skill, suitable for locally processing text in Simplified/Traditional Chinese and English from screenshots and document images, with no API key required. Installation and identifier are subject to SkillHub.

  • SkillHub page: https://www.skillhub.cn/skills/user_9a66f56b/macos-ocr
  • Official address (API entry in the material): https://api.skillhub.cn/user_9a66f56b/macos-ocr
  • Installation instructions: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye