anydoc

anydoc is a skill for Claude Code, Codex from zhagqn/agentwork. It costs 37 tokens per session (498 once invoked), scanned A, original, MIT.

A document converter that turns Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF files into Markdown and extracted metadata for an agent to read.

In plain words
What is it for?
Use it to convert office documents and PDFs for analysis, indexing, and archiving. Scanned PDFs may need the agent's visual reading or an authorised OCR service.
Why use it?
It lets an agent analyse binary office files without replacing the original files. It also records conversion failures instead of bypassing passwords or security rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to convert office documents and PDFs for analysis, indexing, and archiving. Scanned PDFs may need the agent's visual reading or an authorised OCR service.

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

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 anydoc

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhagqn/agentwork/anydoc/github.svg)](https://agentmods.dev/skills/zhagqn/agentwork/anydoc)
Your own site
<a href="https://agentmods.dev/skills/zhagqn/agentwork/anydoc"><img src="https://agentmods.dev/badge/skills/zhagqn/agentwork/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/zhagqn/agentwork/anydoc"><img src="https://agentmods.dev/badge/skills/zhagqn/agentwork/anydoc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 498 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.
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.00037 $0.00498
Opus 5 $0.00018 $0.00249
Sonnet 5 $0.00007 $0.00100
Haiku 4.5 $0.00004 $0.00050

Measured 2d ago against content hash 2aecb3c655fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-15, 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 2d 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.

.agentwork/bootstrap/claude/skills/anydoc/SKILL.md · 39 lines

What it actually says

anydoc 文档解析

这是 agentwork 的默认文档输入能力。仅当任务需要读取二进制办公文件时使用;纯文本、代码和已有 Markdown 不需要经过 anydoc。

项目级延迟安装

运行需要 Node.js >=20。先检查项目是否已有 CLI:

npx --no-install @firecrawl/anydoc --help

如果缺失且项目允许安装,遵循已有包管理器和锁文件约定;使用 npm 的项目在根目录执行:

npm install --save-dev @firecrawl/[email protected]

禁止全局安装。非 Node 项目先确定项目内的依赖目录,不直接改变项目技术栈。安装前遵守项目联网策略;离线环境使用内部 npm 镜像或已缓存的包。

--help 不加载原生 binding,成功不代表转换可用。首次使用时先转换一个小型本地样例并检查输出。

转换与归档

mkdir -p .tmp/anydoc
npx --no-install @firecrawl/anydoc INPUT -o .tmp/anydoc/OUTPUT.md

保留原文件;CLI 默认只输出 Markdown,写入 .tmp/anydoc/ 或项目约定的归档目录;需要元数据时再另行提取。记录 anydoc 版本、输入路径、格式和失败原因。转换结果用于分析和索引,不替代原始文件,也不保证版式保真。

OCR 与失败边界

默认禁止 hosted OCR。扫描或图片型 PDF 转换失败时记录 needsOcr,优先使用当前 agent 已有的视觉能力读取页面或页面图像。视觉不可用或文档过大时,说明限制并考虑分批处理,不自动转交外部服务。只有用户明确授权将当前资料发送给指定外部 OCR 服务后,才可转交;--ocr hosted 会上传文档。失败文件记录实际错误并继续处理其他输入,不绕过密码或安全策略。

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. 2d ago Changed · +2 lines 2aecb3c655fd
  2. 5d ago First seen · 37 lines · 37 tokens per session scan A c1b486853b5b

Subscribe to this mod's changes

anydoc is a skill published in the GitHub repository zhagqn/agentwork (101 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 498 once invoked, about $0.0002 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-09-10.

Related

Other skills, from other repositories

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens

overleaf-sync

A two-way connection between a local paper folder and Overleaf, a web-based LaTeX editor for writing research papers. It lets you move changes between the local files and the shared Overleaf project.

wanshuiyin/Auto-claude-code-research-in-sleep · 97 tokens