anydoc

anydoc is a skill for Claude Code from magnus919/agent-skills. It costs 189 tokens per session (3,640 once invoked), scanned A, original, MIT.

A local command-line tool for converting Word files, spreadsheets, presentations, ebooks, CSV files, and PDFs into clean GitHub-Flavored Markdown. GitHub-Flavored Markdown is a version of Markdown with features such as tables.

In plain words
What is it for?
Use it to extract text, headings, tables, slides, or other structure from supported documents for summarising, analysis, or quoting.
Why use it?
It lets the agent read and work with document contents in a consistent text format without uploading files or requiring an API key for local conversion.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Good fit Use it to extract text, headings, tables, slides, or other structure from supported documents for summarising, analysis, or quoting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magnus919/agent-skills/anydoc
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 magnus919/agent-skills --skill anydoc
Clone the repo
git clone --depth 1 https://github.com/magnus919/agent-skills

Made for: Claude Code.

Its marketplace also offers this one on its own, as the plugin anydoc/plugin install anydoc after adding the marketplace above.

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 anydoc

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/magnus919/agent-skills/anydoc"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/anydoc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 189 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,640 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 MCP Rug Pull · line 18
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00189 $0.03640
Opus 5 $0.00095 $0.01820
Sonnet 5 $0.00038 $0.00728
Haiku 4.5 $0.00019 $0.00364

Measured 10d ago against content hash 45faac436f48, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

anydoc 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 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/test_anydoc_hosted_ocr.py, tests/test_anydoc.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

anydoc/SKILL.md · 225 lines

How it starts

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

Any Doc — office documents to GitHub-Flavored Markdown

The anydoc skill converts office documents, spreadsheets, presentations, ebooks, CSV, and text-based PDFs into GitHub-Flavored Markdown using the pinned Any Doc CLI (@firecrawl/anydoc v0.2.4). One shared document model and one GFM serializer produce the same logical output across formats. Local conversion runs without a service, API key, or file upload; hosted OCR is a separate explicit route.

Overview

Load this skill when a task needs the contents of a document the agent cannot read directly: a Word report to summarize, a spreadsheet to turn into a table, a slide deck to extract, a CSV to analyze, or an ebook or PDF to quote from.

The skill ships a small Python helper (scripts/anydoc) that wraps the pinned CLI and adds input pre-validation, friendly error hints, batch conversion, and --dry-run/--json output. Every recipe in references/workflows.md also shows the raw npx invocation, so the skill works with or without the helper.

First-use decision gate

Before invoking anydoc, classify the request:

If the user needs... Do this
The contents of an existing supported document Continue to Command Map.
Generation, editing, validation, EPUB packaging, HTML scraping, or password decryption Stop and use the route in When not to use.
A format-fidelity or failure decision Load the matching row in Reference Routing before choosing a command.
A conversion result Choose stdout, -o, or batch; run it; then follow Verification.

Hard boundary: local anydoc conversion reads existing supported documents to Markdown without uploading them. Hosted OCR is opt-in only: it sends the whole OCR-required PDF to the configured Parse service. AnyDoc does not create, edit, validate, package, decrypt, or scrape documents.

When to use

  • Convert a document to markdown — Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, or text-based PDF.
  • Extract structure — headings, GFM tables, slide titles, speaker notes (as blockquotes), and footnotes.
  • Feed documents to an LLM — one-pass conversion to clean markdown for summarization, extraction, or retrieval ingestion.
  • Batch a folder — convert a directory of mixed office files for a vault or knowledge base.
  • Read a document from stdin — pipe bytes into anydoc -.

Read the full file on GitHub · 225 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. 10d ago First seen · 225 lines · 189 tokens per session scan A 45faac436f48

Subscribe to this mod's changes

anydoc is a skill published in the GitHub repository magnus919/agent-skills (76 stars, last pushed today), licensed MIT. It adds 189 tokens to every session and 3,640 once invoked, about $0.0009 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-30.

Related

Other skills, from other repositories