Skip to content
Back to skills

Cli And Scripts

ASecurity

"Use docTR's installed OCR CLI and safe bundled helper scripts for

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
toolspythonshellapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill cli-and-scripts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli And Scripts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cli And Scripts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cli-and-scripts/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cli-and-scripts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cli-and-scripts
description: "Use docTR's installed OCR CLI and safe bundled helper scripts for
  single-document and batch OCR."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# CLI and Scripts

Use this sub-skill when the task is about running docTR from a shell instead of writing a custom Python pipeline.

## Route here for

- Exact `doctr-cli` arguments, defaults, JSON output behavior, and parser/runtime errors.
- Single-file OCR with a safe helper that can run offline with `--no-pretrained` or load trained weights with `--pretrained`.
- Batch OCR over a file or directory with explicit `txt`, `json`, or `xml` output.
- CLI/script troubleshooting: missing entry point, import failures, unsupported inputs, failed output writes, model-name errors, or model download/cache issues.

## Runtime files

- Read [references/cli-reference.md](references/cli-reference.md) for the installed `doctr-cli` command, flags, defaults, output schema, and error behavior.
- Read [references/script-adaptations.md](references/script-adaptations.md) for the bundled helpers and how they differ from the repo-maintained examples.
- Read [references/troubleshooting.md](references/troubleshooting.md) when commands fail.
- Run [scripts/doctr_quick_ocr.py](scripts/doctr_quick_ocr.py) for one PDF or image.
- Run [scripts/doctr_batch_ocr.py](scripts/doctr_batch_ocr.py) for a file or directory and `txt`/`json`/`xml` outputs.
- Run [scripts/doctr_cli_env.py](scripts/doctr_cli_env.py) for a safe CLI/import/backend diagnostic report.

## Boundaries

- For equivalent Python API design, route to the core OCR/KIE sub-skill rather than expanding CLI snippets here.
- For document object schemas, rendering, hOCR/XML interpretation, Markdown/HTML export, and table/KIE result semantics, route to the document IO/export sub-skill.
- For training, evaluation, datasets, or benchmark scripts, route to the datasets/training/evaluation sub-skill.

## Safety defaults

The bundled helpers default to `--no-pretrained`, which avoids intentional model-weight downloads and is useful for parser/import/offline smoke checks. Use `--pretrained` only when the runtime is allowed to load or download trained model weights and cache them through the installed backend.

Files in this skill

  • SKILL.md2.2 KB
  • references/cli-reference.md4.7 KB
  • references/script-adaptations.md6.5 KB
  • references/troubleshooting.md5 KB
  • scripts/doctr_batch_ocr.py10.4 KB
  • scripts/doctr_cli_env.py5.7 KB
  • scripts/doctr_quick_ocr.py8.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.