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 Aperivue/medsci-skills --skill render-pdf-docgit clone --depth 1 https://github.com/Aperivue/medsci-skillsWrote 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/aperivue/medsci-skills/render-pdf-doc)<a href="https://agentmods.dev/skills/aperivue/medsci-skills/render-pdf-doc"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/render-pdf-doc/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/aperivue/medsci-skills/render-pdf-doc"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/render-pdf-doc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
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 Privilege Escalation · line 56 Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
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.00067 | $0.02222 |
| Opus 5.5 | $0.00027 | $0.00889 |
| Sonnet 5.5 | $0.00013 | $0.00444 |
| Haiku 4.5 | $0.00007 | $0.00222 |
Grade B, and why
render-pdf-doc scanned grade B with 1 finding 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 23d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo apt-get install pandoc texlive-xetex texlive-lang-cjk fonts-noto-cjk How it starts
The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Render-PDF-Doc Skill
This skill handles layout only (CJK fonts, table column widths) with raw pandoc + xelatex — no
Quarto, whose tbl-colwidths has reported PDF regressions (issues 6089/9200). Not for: a
manuscript with a bibliography (/manage-refs scripts/render_pandoc.sh), an institutional .docx
form (/fill-protocol), the ICMJE COI form (/fill-icmje-coi), figures or PPTX (/make-figures,
/present-paper).
Dependencies
Python 3 is required by the wrapper. FontTools is optional for the font-file
coverage check (python3 -m pip install fonttools).
# macOS
brew install pandoc
brew install --cask mactex-no-gui # xelatex + xeCJK (~5 GB)
# Linux
sudo apt-get install pandoc texlive-xetex texlive-lang-cjk fonts-noto-cjk
# Windows (PowerShell) — run in Git Bash afterwards
winget install --id JohnMacFarlane.Pandoc
winget install --id MiKTeX.MiKTeX # xelatex; installs missing LaTeX packages on demand
# No CJK font download needed: Malgun Gothic ships with Windows 7+ and is the default here.
Detection:
bash scripts/check_deps.sh
On Windows / Git Bash, MiKTeX's bin directory
(%LOCALAPPDATA%\Programs\MiKTeX\miktex\bin\x64) is often not on PATH; both check_deps.sh
and render_pdf.sh probe it. If xelatex still reads [MISS], add that directory to PATH.
Workflow
Step 1 — Author markdown with frontmatter
---
title: "Paper 2 Calibration Anchor — Q&A Grid"
author: "<Author Group>"
date: "2026-05-01"
mainfont: "Apple SD Gothic Neo" # macOS default
CJKmainfont: "Apple SD Gothic Neo"
geometry: "margin=0.85in"
fontsize: 11pt
linestretch: 1.25
colorlinks: true
---
- Set both
mainfontandCJKmainfont: withoutCJKmainfont, Hangul falls back to Times New Roman (broken glyphs or blanks). UseNoto Sans CJK KRon Linux/CI andMalgun Gothicon Windows; the render script auto-detects the per-OS default when the fields are absent. - Read every number in a table from the source CSV or analysis output. Do not retype a number from prose or carry one forward from an earlier draft — a table correct in v3 is not evidence it is correct in v4.
- A circulation PDF carries no change history, internal version numbers (e.g. v3.2.2) or PI
attribution: put them in a separate circulation file or a supplementary. Keep the received
primary source (the
.docxor.emla co-author sent) unmodified as its own artifact — the PDF is a derivative, and the next round is diffed against the source. If that source was AI-drafted by a collaborator, re-derive every number, denominator and author-year in it from the underlying paper or analysis output before it reaches the PDF.
What ships with it
20 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.
- references/known_pitfalls.md 2.6 KB
- references/pandoc_korean_cheatsheet.md 2.3 KB
- scripts/check_deps.sh 2.2 KB runs code
- scripts/infer_colwidths.py 4.9 KB runs code
- scripts/render_pdf.sh 11 KB runs code
- scripts/scan_glyph_coverage.py 10 KB runs code
- skill.yml 3.2 KB
- templates/anchor-doc_ko.md 764 B
- templates/anchor-doc.md 885 B
- templates/briefing-handout_ko.md 710 B
- templates/briefing-handout.md 797 B
- templates/proposal-cover_ko.md 812 B
- templates/proposal-cover.md 911 B
- templates/reference-table_ko.md 621 B
- templates/reference-table.md 732 B
- tests/fixtures/glyph_plain.md 100 B
- tests/fixtures/glyph_risky.md 163 B
- tests/test_font_faces.py 9.6 KB runs code
- tests/test_glyph_coverage.sh 1.7 KB runs code
- tests/test_render_pdf.py 11 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.
- 23d ago Changed · +5 lines 770bcc52e57c
- 25d ago Changed · -65 lines · -71 tokens per session 31d264d9bf75
- 26d ago Changed · +9 lines 6eb5d087fb46
- 1mo ago Changed · +23 lines cb3856e4b0ae
- 1mo ago First seen · 197 lines · 138 tokens per session scan B 97af21fac95a
render-pdf-doc is a skill published in the GitHub repository Aperivue/medsci-skills (349 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 2,222 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
lit-pdf-zotero
A research workflow for finding academic papers, downloading their PDFs, adding them to Zotero, and creating visual summaries. Zotero is a tool for organising references and research papers.
markitdown
Converts heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.
liteparse
Local document and PDF parsing that returns spatial text with bounding boxes. Use for extracting text from PDFs, DOCX, Office files, and images; running OCR on scans; producing layout-preserved JSON for RAG; batch-ingesting folders of papers; or rendering pages to PNG for multimodal agents. Distinguishing capabilities…
open-notebook
Organizes research with the self-hosted Open Notebook alternative to NotebookLM. Supports source ingestion (PDFs, web pages, audio, video, and Office documents), cited document chat, text and vector search, notes, custom transformations, and multi-speaker podcasts. Use when automating Open Notebook through its REST…
pptx-posters
Creates and audits editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Used when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.
pdf-processing-pro
Production-ready PDF processing with forms, tables, OCR, validation, and batch operations. Use when working with complex PDF workflows in production environments, processing large volumes of PDFs, or requiring robust error handling and validation.