neqsim-pdf-ocr

neqsim-pdf-ocr is a skill for Claude Code, Codex from equinor/neqsim. It costs 113 tokens per session (2,546 once invoked), scanned A, original, Apache-2.0.

A guide to using optical character recognition (OCR) to extract text from scanned PDFs, including P&IDs, engineering drawings, datasheets, and inspection reports. OCR makes text in images searchable and machine-readable.

In plain words
What is it for?
Use it to extract equipment tags, line numbers, labels, revisions, and other text from scanned technical documents.
Why use it?
It helps when a PDF has no usable text layer, so normal PDF-reading tools return little or nothing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to extract equipment tags, line numbers, labels, revisions, and other text from scanned technical documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/equinor/neqsim/neqsim-pdf-ocr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add equinor/neqsim --skill neqsim-pdf-ocr
Clone the repo
git clone --depth 1 https://github.com/equinor/neqsim

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neqsim-pdf-ocr

README.md
[![agentmods](https://agentmods.dev/badge/skills/equinor/neqsim/neqsim-pdf-ocr/github.svg)](https://agentmods.dev/skills/equinor/neqsim/neqsim-pdf-ocr)
Your own site
<a href="https://agentmods.dev/skills/equinor/neqsim/neqsim-pdf-ocr"><img src="https://agentmods.dev/badge/skills/equinor/neqsim/neqsim-pdf-ocr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neqsim-pdf-ocr

Your own site · 80×15
<a href="https://agentmods.dev/skills/equinor/neqsim/neqsim-pdf-ocr"><img src="https://agentmods.dev/badge/skills/equinor/neqsim/neqsim-pdf-ocr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 64
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00113 $0.02546
Opus 5.5 $0.00045 $0.01018
Sonnet 5.5 $0.00023 $0.00509
Haiku 4.5 $0.00011 $0.00255

Measured today against content hash 77562cbc3403, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neqsim-pdf-ocr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/neqsim-pdf-ocr/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NeqSim PDF OCR Skill

Extract machine-readable text from PDFs that don't have an embedded text layer — scanned documents, P&IDs, mechanical arrangement drawings, vendor datasheets exported as raster, inspection reports, and old paper-original technical requirements. Complements neqsim-technical-document-reading:

Use case Skill
Text-layer PDFs, Word, Excel neqsim-technical-document-reading
Visual analysis of figures/drawings neqsim-technical-document-reading (uses view_image)
No text layer / scanned / P&ID tags neqsim-pdf-ocr (this skill)

When to Use This Skill

Load this skill when any of these are true:

  • The user mentions OCR, scanned PDFs, or P&ID text/tag extraction
  • A PDF returns empty or near-empty text from pymupdf / pdfplumber
  • A document is a P&ID and you need equipment/instrument tag numbers as strings
  • A vendor datasheet is a scan of a paper original (common pre-2010)
  • An engineering drawing has labels, line numbers, or revisions that must be searchable

Do not load this skill for born-digital PDFs that already have a text layer — those are faster and more accurate via pdfplumber / pymupdf (covered in neqsim-technical-document-reading).

Detection: Is OCR Actually Needed?

Always try fast text extraction first. Only fall back to OCR when the yield is too low. The utility implements this automatically; the rule of thumb is:

average_chars_per_page < 50  →  treat as scanned, run OCR
import fitz
doc = fitz.open("document.pdf")
yield_chars = sum(len(page.get_text("text")) for page in doc) / len(doc)
if yield_chars < 50:
    # scanned — needs OCR
    ...

Tool Selection Matrix

Tool Best for Why
OCRmyPDF Add a searchable text layer to a scanned PDF Idempotent (--skip-text skips already-OCR'd pages), preserves original, deskew/rotate built-in, parallel by default
pytesseract + pdf2image Per-page OCR with custom PSM, P&ID tag extraction, programmatic control Lets you set page-segmentation mode 11 (sparse text) for tag-heavy drawings, returns text directly
pdfplumber / pymupdf Text-layer extraction (run before OCR) Fast, no external binaries — use whenever the text layer exists
opencv (preprocessing) Deskew / denoise rotated P&ID scans before OCR Improves Tesseract accuracy on poor scans

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed 77562cbc3403
  2. 1mo ago First seen · 216 lines · 113 tokens per session scan A 23cd096b1006

Subscribe to this mod's changes

neqsim-pdf-ocr is a skill published in the GitHub repository equinor/neqsim (156 stars, last pushed today), licensed Apache-2.0. It adds 113 tokens to every session and 2,546 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens