docparse

docparse is a skill for Claude Code from mishahanin/heading-os. It costs 135 tokens per session (1,836 once invoked), scanned A, original, Apache-2.0.

A document-reading tool for PDF, DOCX, PPTX, and XLSX files that can point to the exact place on a page where an answer came from.

In plain words
What is it for?
Use it to ask questions about documents, cite page locations with images, and create branded HTML or PDF reports.
Why use it?
It removes the need to search long documents manually or guess which passage supports an answer.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/docparse.py setup --check.

Good fit Use it to ask questions about documents, cite page locations with images, and create branded HTML or PDF reports.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mishahanin/heading-os
agentmods
npx agentmods add skills/mishahanin/heading-os/docparse

Made for: Claude Code.

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 docparse

README.md
[![agentmods](https://agentmods.dev/badge/skills/mishahanin/heading-os/docparse/github.svg)](https://agentmods.dev/skills/mishahanin/heading-os/docparse)
Your own site
<a href="https://agentmods.dev/skills/mishahanin/heading-os/docparse"><img src="https://agentmods.dev/badge/skills/mishahanin/heading-os/docparse/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 docparse

Your own site · 80×15
<a href="https://agentmods.dev/skills/mishahanin/heading-os/docparse"><img src="https://agentmods.dev/badge/skills/mishahanin/heading-os/docparse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,836 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 Excessive Agency · line 13
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
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.00135 $0.01836
Opus 5.5 $0.00054 $0.00734
Sonnet 5.5 $0.00027 $0.00367
Haiku 4.5 $0.00014 $0.00184

Measured 1mo ago against content hash d9933c8c0678, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docparse 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 1mo ago.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • docparse — 97% identical, 21 lines differ
.claude/skills/docparse/SKILL.md · 211 lines

How it starts

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

DocParse - Document Parsing with Visual Citations

Parse documents and answer questions with spatially-grounded visual citations. Every cited fact is traced to an exact location on the source page.

Variables

  • $ARGUMENTS - file path(s) or directory, optional question in quotes
  • Examples:
    • /docparse work/deliverable/datastore/corporate/presentations/deck.pdf
    • /docparse inbound/document/datastore/books/ "What are the key principles?"
    • /docparse report.pdf --report

Phase 0 - Setup & Context

  1. Run prerequisite check:

    python scripts/docparse.py setup --check
    

    If any check fails, print the install instructions and STOP.

  2. Parse $ARGUMENTS:

    • Extract file path(s) or directory
    • Extract optional question (quoted string)
    • Check for --report flag or if user explicitly asks for "visual citations" / "visual report"
    • Check for --pages specification (e.g., --pages 1-10)
  3. If a directory was given, discover supported files:

    # Use Glob to find PDFs, DOCX, PPTX, XLSX in the directory
    
  4. For documents over 50 pages, ask the user which page range to parse. Never parse 100+ pages without an explicit --pages restriction.

Phase 1 - Parse

Run the parser:

python scripts/docparse.py parse \
  --files "<file1>" "<file2>" \
  [--pages "1-10"] \
  [--dpi 150] \
  --output-json /tmp/docparse_parsed.json

Read the output JSON and present a summary:

  • Number of files and pages parsed
  • Cache hits vs fresh parses
  • Total text items extracted

Phase 2 - Analysis

If the user asked a question:

  1. Read /tmp/docparse_parsed.json focusing on each page's text field. Do NOT read raw text_items arrays - those are for the bounding box engine only.

  2. Analyze the text to answer the question. Identify specific passages that support the answer.

  3. For each cited passage, extract an exact verbatim quote from the parsed text:

    • Character-for-character exact (this is critical for bounding box lookup)
    • Prefer short quotes under 60 characters
    • Quote evidence (numbers, data values, key phrases), not just labels
    • Include 5-15 citations per answer

Read the full file on GitHub · 211 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +6 lines d9933c8c0678
  2. 1mo ago Changed 3fd1795d637e
  3. 1mo ago Changed · +1 lines 03a11e9bf8c9
  4. 1mo ago Changed · +4 lines 60993ec5ebc5
  5. 2mo ago First seen · 200 lines · 135 tokens per session scan A 6e598c7f6b0d

Subscribe to this mod's changes

docparse is a skill published in the GitHub repository mishahanin/heading-os (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 135 tokens to every session and 1,836 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-08-30.