Borrowing it
Nothing to install: this file belongs to andreadellacorte/groove. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/andreadellacorte/groove/main/.agents/skills/pdf-to-markdown/SKILL.mdgit clone --depth 1 https://github.com/andreadellacorte/grooveWrote 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.
[](https://agentmods.dev/skills/andreadellacorte/groove/pdf-to-markdown)<a href="https://agentmods.dev/skills/andreadellacorte/groove/pdf-to-markdown"><img src="https://agentmods.dev/badge/skills/andreadellacorte/groove/pdf-to-markdown/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.
<a href="https://agentmods.dev/skills/andreadellacorte/groove/pdf-to-markdown"><img src="https://agentmods.dev/badge/skills/andreadellacorte/groove/pdf-to-markdown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.00972 |
| Opus 5 | $0.00015 | $0.00486 |
| Sonnet 5 | $0.00006 | $0.00194 |
| Haiku 4.5 | $0.00003 | $0.00097 |
Grade A, and why
pdf-to-markdown 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.
[IMPORTANT] Use
TaskCreateto break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.
Quick Summary
Goal: Convert PDF files to well-formatted Markdown with auto-detection of native text vs scanned documents. Only native-text conversion is implemented; OCR is planned.
Workflow:
- Auto-Detect — Determine if PDF has native text or needs OCR
- Convert — Run
scripts/convert.cjswith input path and optional mode/output flags - Output — Returns JSON with success status, page count, and output path
Key Rules:
- Use
--mode auto(default) to let the tool decide native vs OCR - OCR for scanned PDFs requires additional
tesseract.jssetup - Complex multi-column layouts may not preserve structure perfectly
pdf-to-markdown
Convert PDF files to Markdown format with automatic detection of native text vs scanned documents.
No npm install required
The skill runs with Node.js only; no node_modules in the repo. It uses npx to run @opendocsg/pdf2md on first use (cached by npx). Optional: run npm install in the skill directory for faster runs without npx.
Requirements: Node.js ≥18, npx (included with npm).
Quick Start
# Basic conversion (auto-detect native vs scanned)
node .agents/skills/pdf-to-markdown/scripts/convert.cjs --input ./document.pdf
# Specify output path
node .agents/skills/pdf-to-markdown/scripts/convert.cjs -i ./doc.pdf -o ./output.md
# Force native mode (skip OCR detection)
node .agents/skills/pdf-to-markdown/scripts/convert.cjs -i ./doc.pdf --mode native
CLI Options
| Option | Short | Description | Default |
|---|---|---|---|
--input |
-i |
Input PDF file path | (required) |
--output |
-o |
Output markdown file path | {input}.md |
--mode |
-m |
Conversion mode: auto, native, ocr |
auto |
--help |
-h |
Show help message |
What ships with it
8 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.
- scripts/convert.cjs 4.0 KB runs code
- scripts/lib/converter.cjs 6.3 KB runs code
- scripts/lib/output-handler.cjs 1.1 KB runs code
- scripts/lib/pdf-detector.cjs 2.0 KB runs code
- tests/converter.test.cjs 3.6 KB runs code
- tests/fixtures/temp.txt 4 B
- tests/run-tests.cjs 397 B runs code
- tests/test-framework.cjs 3.1 KB runs code
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.
- 9d ago First seen · 121 lines · 29 tokens per session scan A 0f897d50e425
pdf-to-markdown is a skill published in the GitHub repository andreadellacorte/groove (5 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 972 once invoked, about $0.0001 per session on Opus 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-31.
Other skills, from other repositories
pydicom
Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.
foundry-hosted-agent-validation
Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.
skill-doc-delivery
Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.
pdf-extract-create-workflow
Complete PDF lifecycle: download, extract, and generate structured documents with reportlab.
document-direct-python
Use direct Python execution for reliable document creation including spreadsheets, PDFs, and structured reports.
parse-document
Convert a PDF, scan, image of a page, or office file to clean markdown through the connected Superlinked MCP edge, so the source document is not read into model context directly. Use when the user asks to read, parse, OCR, extract from, summarize, or answer questions about a document.