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 AI-Riksarkivet/ra-mcp --skill pdf-guidegit clone --depth 1 https://github.com/AI-Riksarkivet/ra-mcpWrote 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/ai-riksarkivet/ra-mcp/pdf-guide)<a href="https://agentmods.dev/skills/ai-riksarkivet/ra-mcp/pdf-guide"><img src="https://agentmods.dev/badge/skills/ai-riksarkivet/ra-mcp/pdf-guide/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/ai-riksarkivet/ra-mcp/pdf-guide"><img src="https://agentmods.dev/badge/skills/ai-riksarkivet/ra-mcp/pdf-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.01204 |
| Opus 5 | $0.00034 | $0.00602 |
| Sonnet 5 | $0.00013 | $0.00241 |
| Haiku 4.5 | $0.00007 | $0.00120 |
Grade A, and why
pdf-guide 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 — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Riksarkivet PDF Guides
Three guides, 548 pages. Structured text with page-level access.
Tools
| Tool | Needs display_pdf? | Purpose |
|---|---|---|
search_guides(term) |
No | Search ALL guides at once |
read_pdf_page(url, page, count) |
No | Read 1–5 pages of text |
display_pdf(url) |
— | Open viewer |
pdf_go_to_page(page) |
Yes | Navigate viewer |
pdf_set_search(term) |
Yes | Highlight in viewer |
search_pdf(url, term) |
Yes | Search one guide with highlights |
Workflow
- Check reference files below → find section + pages
read_pdf_page(url, page, count)→ read contentdisplay_pdf(url)→ open viewer (BEFORE go_to_page/set_search)- Answer with page citations
pdf_go_to_page+pdf_set_search→ show source
For entity searches: search_guides(term) → read matches → cite → show in viewer.
Guides
Medeltidens samhälle (258 pages, 1100–1520)
Detailed sections: medeltid.md
| Pages | Topic |
|---|---|
| 9–20 | Territories, härad, socken, landskapslagar |
| 21–59 | Kungamakt: kungaval, eriksgata, jarlar, drots/marsk, riksråd, herredagar, Sturetiden, borgar/län, skatter, statshandlingar |
| 60–81 | Bönder/frälse: jordnaturer, jordtransaktioner, testamenten, Alsnö stadga |
| 82–100 | Städer: stadslagar, Hansan, stadsförvaltning |
| 101–140 | Kyrkan: stift, domkyrkorna, kloster, Vadstena, korståg |
| 141–165 | Påvedömet: kurian, brevtyper (bulla/breve/supplik), Vatikanarkivet |
| 166–181 | Medeltidsbreven: tradering, slottsbranden 1697, SDHK |
| 182–201 | Diplomatik: skrift, datering, sigill, förfalskningar |
| 202–216 | RA:s medeltidskällor: alla samlingar med SE/RA-koder |
Hur riket styrdes (255 pages, 1520–1920)
Detailed sections: hur-riket-styrdes.md
| Pages | Topic |
|---|---|
| 26–40 | Riket: stormaktsväldet, Finland, konglomeratstat |
| 41–78 | Kung/riksdag: grundlagar, 1634/1719/1809 RF, tryckfrihet, ståndriksdag→tvåkammar |
| 79–100 | Kansliet/ämbetsverk: Oxenstierna, departementalreformen 1840, centrala verk |
| 101–120 | Län, fögderier, städer, landshövdingar |
| 121–142 | Bergsstaten, tullen |
| 143–159 | Domstolar, hovrätter, HD, fångvård |
| 160–187 | Kyrkan, skolan, sjukvården |
| 188–209 | Krigsmakten: armén, flottan, indelningsverket |
| 210–233 | Kommuner, landsting, polis, socialpolitik |
What ships with it
3 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.
- 9d ago First seen · 83 lines · 67 tokens per session scan A 44f92c627a4e
pdf-guide is a skill published in the GitHub repository AI-Riksarkivet/ra-mcp (22 stars, last pushed 2d ago), licensed Apache-2.0. It adds 67 tokens to every session and 1,204 once invoked, about $0.0003 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.
Other skills, from other repositories
pdf-reading
Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and…
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Assistant needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
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.
n8n-binary-and-data
Handle files and binary data in n8n correctly. Use when working with files, images, PDFs, attachments, uploads or downloads, base64, vision/multimodal input, or when an AI agent needs a file as tool input or output — and whenever the user mentions $binary, binaryPropertyName, "read the PDF", "attach the file", "send…
pdf-processing
Extract text from PDFs, fill forms, and merge documents.
azure-ai-document-intelligence-ts
Extract text, tables, and structured data from documents using Azure Document Intelligence (@azure-rest/ai-document-intelligence). Use when processing invoices, receipts, IDs, forms, or building custom document models.