Mercury Agent is an AI assistant that runs as a background process on a user's machine, remembers information on disk, and uses permission rules to control actions such as file changes and command execution. People use it from a terminal or messaging services including Telegram, Discord, Slack, and Signal for coding, research, scheduling, and other ongoing tasks.
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.
npx skills add cosmicstack-labs/mercury-agent --skill any-to-pdfgit clone --depth 1 https://github.com/cosmicstack-labs/mercury-agentWrote 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/cosmicstack-labs/mercury-agent/any-to-pdf)<a href="https://agentmods.dev/skills/cosmicstack-labs/mercury-agent/any-to-pdf"><img src="https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent/any-to-pdf/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/cosmicstack-labs/mercury-agent/any-to-pdf"><img src="https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent/any-to-pdf.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.00066 | $0.01100 |
| Opus 5.5 | $0.00026 | $0.00440 |
| Sonnet 5.5 | $0.00013 | $0.00220 |
| Haiku 4.5 | $0.00007 | $0.00110 |
Grade A, and why
any-to-pdf 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 8d 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 — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Any to PDF
Use this when the owner wants a good-looking PDF: a report, a write-up, notes, a data table or a set of images. For other formats (Word, slides, spreadsheets) use the documents skill.
Run it
The converter is in this skill's scripts/ folder (the folder path is shown with these instructions). Run it with Python 3.8 or newer — python3 on macOS, Linux and Termux, python or py on Windows:
python3 "<skill folder>/scripts/any2pdf.py" report.md -o report.pdf
- Inputs: Markdown and text; Word (
.docx); HTML; CSV/TSV (become tables); code, JSON, YAML and logs (become code blocks); images (one page each). With pandoc installed, also ODT, RTF, EPUB, reStructuredText, LaTeX and notebooks. Several inputs make one PDF, in the order given. - Output:
-onames the PDF; without it, the PDF sits next to the first input. It never overwrites an input. - First run: it installs what it needs into Mercury's cache (
~/.mercury/cache/any2pdf), never into the system Python. reportlab first (about 20 MB). A Word file adds mammoth, HTML adds markdownify (each under 1 MB). Display formulas ($$ … $$) add matplotlib (about 100 MB) for typeset maths; if that can't be installed, formulas still appear as styled text. Tell the owner when a first run is installing something.
Options
Pass them after the inputs:
| Option | What it does |
|---|---|
--theme NAME |
Look and colours (below). Default warm-academic. |
--title, --subtitle, --author, --date, --version |
Cover page text (title defaults to the first heading). |
--cover false, --toc false |
Leave out the cover page or the table of contents. Short documents read better without both. |
--watermark "DRAFT" |
Diagonal watermark on every page. |
--page-size Letter |
US Letter instead of A4. |
--header-title, --footer-left |
Running header and footer text. |
--frontispiece IMG, --banner IMG |
Full-page image after the cover; back-cover image. |
--disclaimer, --copyright |
Back-cover text. |
What ships with it
4 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.
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.
- 8d ago First seen · 62 lines · 66 tokens per session scan A 5bcda2f77c64
any-to-pdf is a skill published in the GitHub repository cosmicstack-labs/mercury-agent (4,080 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 1,100 once invoked, about $0.0003 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-11-22.
any-to-pdf compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| any-to-pdfcosmicstack-labs/mercury-agent | Skill | 4.1k | today | MIT | A | 66 | Claude Code, Codex |
| ocr-and-documentsmoltis-org/moltis | Skill | 3.0k | 1mo ago | MIT | A | 54 | Claude Code, Codex |
| nano-pdfmoltis-org/moltis | Skill | 3.0k | 1mo ago | MIT | A | 38 | Claude Code, Codex |
| nano-pdftaracodlabs/aiden | Skill | 915 | 1mo ago | AGPL-3.0 | A | 17 | Claude Code, Codex |
| apple-notesmoltis-org/moltis | Skill | 3.0k | 1mo ago | MIT | A | 23 | Claude Code, Codex |
| gogmoltis-org/moltis | Skill | 3.0k | 1mo ago | MIT | A | 20 | Claude Code, Codex |
| xbergCherryHQ/stella | Skill | 55 | 5d ago | AGPL-3.0 | A | 38 | Claude Code, Codex |