sirk

Doc Ocr Skills

Officev0.1.0
By sirkUpdated 2026-05-17doc-ocr-skills@clawhub_scottkiss/doc-ocr-skills
DocumentsPDF#OCR#Document

According to AlphaMoat, as of 2026-09, Doc Ocr Skills has 1,900 downloads and 0 stars — ranked #4,493 of 5,078 AI skills overall, and #353 of 435 in Office.

Installs
153
Downloads
1.9K
Stars
-
Overall Rank
#4,493
Top 89% overall · Top 82% in Office
PlatformInstallsDownloadsStarsComments
ClawHub ↗491.7K--
SkillHub ↗1531.9K-—

Platforms count differently and update at different times.

What this skill does

Local OCR engines and Gemini cloud OCR are separate processing paths. Cloud mode sends selected documents to the service, and the documented example stores the API key in plaintext. The card also flags mutable remote installation code and an unaudited native binary. Prefer local engines for sensitive files and review installation sources and key storage. Install the chosen engine's Python dependencies and a reviewed docr binary; local RapidOCR/PaddleOCR need no Gemini key. Check recognized text manually and confirm output paths; cloud approval applies only when selecting Gemini.

Profile published 2026-10-27

What you can do with it

  • Extract text from scanned PDFs or images
  • Choose a local OCR path for sensitive documents

When to use it

  • When the document is approved for processing and the chosen engine and install source are trusted; approve cloud transfer separately if using Gemini.

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Compare how local and cloud OCR handle document data without reading or uploading the file.
Plan an OCR workflow for a scan, including install-source review and API key protection.

Monthly Trend

Downloads1.9K
3031.2K2.0K2026-03 · Downloads 4212026-05 · Downloads 1.1K2026-06 · Downloads 1.3K2026-07 · Downloads 1.5K2026-08 · Downloads 1.7K2026-09 · Downloads 1.9K26-0326-09
Stars-
0112026-03 · Stars -2026-05 · Stars -2026-06 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-091.9K—-
2026-081.7K+9.2%-
2026-071.5K+20.1%-
2026-061.3K+14.9%-
2026-051.1K—-
2026-03421—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.7 KB · ClawHub v0.1.0
---
name: doc-ocr-skills
description: OCR documents (PDFs and images) using Gemini 2.5 Flash, PaddleOCR (local), or RapidOCR (local).
---

# Document OCR Skill (docr)

Uses **Gemini 2.5 Flash**, **PaddleOCR**, or **RapidOCR** (local) to recognize text from scanned PDFs and images. Compiled as a single Go binary.

## Prerequisites
Show all (103 lines)

- API Key configured in `~/.ocr/config` (not needed for Paddle/Rapid)
- For RapidOCR engine: `pip install rapidocr_onnxruntime`
- For PaddleOCR engine: `pip install paddleocr paddlepaddle`

### API Key Configuration

Create the config file:

```bash
mkdir -p ~/.ocr
cat > ~/.ocr/config << EOF
# Google Gemini API Key
gemini_api_key=your_gemini_key
EOF
```

## Quick Start

> **Path Variable**: All commands below use `$DOCR`. Before running any command, set this variable:
> ```bash
> SKILL_DIR="$(cd "$(dirname "<path-to-this-SKILL.md>")" && pwd)"
> DOCR="$SKILL_DIR/scripts/docr/docr"
> ```

```bash
# OCR a single document using RapidOCR (default)
$DOCR document.pdf
$DOCR image.jpg

# Use Gemini engine
$DOCR -engine gemini document.pdf

# Use PaddleOCR local engine
$DOCR -engine paddle document.pdf

# Specify output file
$DOCR document.pdf -o result.txt

# Batch process all supported files in a directory
$DOCR -batch ./docs/ -o ./outputs/
```

## Engines

| Engine | Flag | API Key Config | Doc Handling |
|--------|------|---------------|--------------|
| **RapidOCR** (default) | `-engine rapid` | None | Local OCR |
| **Gemini** | `-engine gemini` | `gemini_api_key` | Cloud Vision API |
| **PaddleOCR** (local) | `-engine paddle` | None | Local OCR |

## CLI Reference

```
docr [options] <file or directory>

Options:
  -engine string   OCR engine: rapid (default) / gemini / paddle
  -e string        Engine (short flag)
  -o string        Output file path or directory (batch mode)
  -output string   Output path (long flag)
  -batch           Batch mode: process all files in directory
  -prompt string   Custom recognition prompt (gemini)
```

## Installation

We provide pre-compiled binaries to get you started quickly.

```bash
cd doc-ocr-skills/scripts
./install.sh
```
This script will detect your OS (`darwin`/`linux`) and architecture (`amd64`/`arm64`) and download the appropriate version of `docr`.

### Building from Source (Optional)

If you prefer to build from source, ensure you have **Go 1.21+** installed:

```bash
cd doc-ocr-skills/scripts/docr
go build -o docr .
```

## Error Handling

| Error | Solution |
|-------|----------|
| `config file not found` | Create `~/.ocr/config` with API keys |
| `gemini_api_key not found` | Add `gemini_api_key=VALUE` to config |
| `file not found` | Verify the document file path |
| API timeout | Retry; large files may need longer |

Popular in Office

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.