pdf-generation

pdf-generation is a skill for Claude Code, Codex from sassoftware/sas-score-mcp-serverjs. It costs 66 tokens per session (2,674 once invoked), scanned A, original, Apache-2.0.

A method for creating a new, simple text-based PDF from text or data already available in the conversation. PDF is a document format designed to preserve a file's layout when shared or printed.

In plain words
What is it for?
Use it to save a table, tool result, or report with a title and sections as a PDF file when Node.js can write files.
Why use it?
It avoids needing an extra package, but it only creates new PDFs and does not edit existing files, extract PDF text, or fill forms.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to save a table, tool result, or report with a title and sections as a PDF file when Node.js can write files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sassoftware/sas-score-mcp-serverjs/pdf-generation
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 sassoftware/sas-score-mcp-serverjs --skill pdf-generation
Clone the repo
git clone --depth 1 https://github.com/sassoftware/sas-score-mcp-serverjs

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 pdf-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/sassoftware/sas-score-mcp-serverjs/pdf-generation/github.svg)](https://agentmods.dev/skills/sassoftware/sas-score-mcp-serverjs/pdf-generation)
Your own site
<a href="https://agentmods.dev/skills/sassoftware/sas-score-mcp-serverjs/pdf-generation"><img src="https://agentmods.dev/badge/skills/sassoftware/sas-score-mcp-serverjs/pdf-generation/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 pdf-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/sassoftware/sas-score-mcp-serverjs/pdf-generation"><img src="https://agentmods.dev/badge/skills/sassoftware/sas-score-mcp-serverjs/pdf-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,674 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.00066 $0.02674
Opus 5.5 $0.00026 $0.01070
Sonnet 5.5 $0.00013 $0.00535
Haiku 4.5 $0.00007 $0.00267

Measured 9d ago against content hash 507ad1cc994c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdf-generation 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.

skills/pdf-generation/SKILL.md · 276 lines

How it starts

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

PDF Generation

When to use this skill

  • The user asks to "export as PDF", "save this as a PDF", "generate a PDF report" for data or text that is already in the conversation (e.g. output from a sas-score-* tool, or any other table/record data).
  • Not for editing existing PDFs, extracting text from PDFs, or forms — this skill only writes new, simple text-based PDFs.

Prerequisite

This skill requires an execution environment that can run node and write a file to disk (Claude Code, GitHub Copilot's coding agent, a local CLI agent, etc.). It will not work in a chat-only integration with no code execution or file-write capability (e.g. a plain Teams/Copilot Studio bot with no plugin action wired up) — for those, the PDF must be produced by an actual tool/plugin action exposed by the server, not by an instructional skill.

Method

  1. Write the script below to a temp file (e.g. generate-pdf.js) — verbatim, no npm install needed, it only uses Node's built-in fs.
  2. Shape the data to render into { title, sections }:
    • title — string, optional report title.
    • sections — array of { heading, lines }:
      • heading — becomes a subheading (e.g. a record's id).
      • lines — array of strings, one per line (e.g. "name: value" pairs for every other column of that record). This maps directly onto the "stack" layout: one subheading per record, then label: value per remaining field.
  3. Run: node generate-pdf.js <filename.pdf> '<json>' — pass the JSON as a single-quoted argument, or call generatePdf(data) programmatically from another script and write the returned Buffer to disk yourself.
  4. The script always writes into the current user's standard Downloads folder (os.homedir()/Downloads), regardless of what path is passed in — only the filename portion is used. It creates the folder if missing, and falls back to the current working directory (with a warning) if the Downloads folder can't be created or written to, e.g. in a restricted sandbox with no writable home directory.
  5. Tell the user the output file path (or attach/send it, if the host supports that).

Read the full file on GitHub · 276 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. 9d ago First seen · 276 lines · 66 tokens per session scan A 507ad1cc994c

Subscribe to this mod's changes

pdf-generation is a skill published in the GitHub repository sassoftware/sas-score-mcp-serverjs (1 stars, last pushed 9d ago), licensed Apache-2.0. It adds 66 tokens to every session and 2,674 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-10-10.

Related

Other skills, from other repositories

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.

microsoft/agent-framework · 82 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens

meta-web-to-pdf-briefing

Render a topic into a distributable PDF briefing in three steps: web search → bullet summary → styled PDF. Trigger when the user asks for a PDF briefing on a single topic.

opensquilla/opensquilla · 45 tokens

chat-complex-documents

Chat with and search your complex documents — ask questions, extract tables and fields, and get answers grounded in the source. Connects the hosted Unstructured Transform MCP server to parse, structure, and enrich PDFs, Word/Excel/PowerPoint, images, scanned files, emails, and 60+ other formats into clean, AI-ready…

vellum-ai/vellum-assistant · 90 tokens

pkf-writing

Author, update, convert, validate, persist, and render PKF (.pkf) content through message-inline, Library Asset, or Memory Page carriers. Use for structured reports, knowledge pages, delivery cards, or any .pkf body. NOT for recall, memory-graph placement, or curation decisions — those belong to the memory skill.

Prismer-AI/PrismerCloud · 78 tokens

paper-reader

A reading assistant for computer-vision and deep-learning research papers. It can work with PDF files, arXiv papers, and papers stored in Zotero, a reference-management app.

huangkiki/dailypaper-skills · 157 tokens