Skip to main content
subagent

ocr-quality-assurance — Claude Code subagent: how to install

Inspects OCR-processed text against original scan images to catch omitted data and bad markdown syntax. Useful as the last validation gate in document processing.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --agent ocr-extraction-team/ocr-quality-assurance
Open on GitHub

What ocr-quality-assurance does

This subagent acts as the fifth step in a document digitisation pipeline. It follows visual inspection, textual diffing, contextual grammar passes, and markdown structuring. Its sole duty is auditing the output against the source picture so no numbers or punctuation get lost.

The subagent uses Read and Write tools to inspect headers, lists, links, and markdown table alignment. If an ambiguous symbol appears, it will not guess. Instead, it marks the fragment with [REVIEW NEEDED: description] to call in a human reviewer.

Validation concludes with a structured summary marked as APPROVED, APPROVED WITH NOTES, or REQUIRES HUMAN REVIEW. Without the original image file available, the subagent cannot verify transcription fidelity.

What it helps with

  • audit OCR text output against source image files
  • verify markdown tables, lists, and headings for syntax errors
  • detect dropped punctuation, numerals, and formatting emphasis
  • tag ambiguous text segments for manual human inspection

Example prompts for the agent

  • Validate report.md against scan.png using ocr-quality-assurance
  • Audit the transcribed tables in table.md against page1.jpg and produce a QA report
  • Check extracted_text.md against original.png and flag any formatting discrepancies

How to install ocr-quality-assurance

1claude-code-templates

npx claude-code-templates@latest --agent ocr-extraction-team/ocr-quality-assurance

2Manually: put the files in place

.claude/agents/ocr-quality-assurance.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about ocr-quality-assurance

How do I install ocr-quality-assurance in Claude Code?

Run npx claude-code-templates@latest --agent ocr-extraction-team/ocr-quality-assurance. This saves the configuration to .claude/agents/ocr-quality-assurance.md.

Where does this subagent fit in the OCR pipeline?

It operates as the fifth and final stage, taking over after visual analysis, text comparison, grammar checking, and markdown formatting are complete.

Which outcome statuses can the validation report return?

The final report issues APPROVED, APPROVED WITH NOTES, or REQUIRES HUMAN REVIEW. Uncertain passages are marked with [REVIEW NEEDED: description].

Similar subagents

All subagents for Testing and QA →

From the same set804

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor