pdf

pdf is a skill for Claude Code, Codex from ssmurfgg04-gif/context-m. It costs 145 tokens per session (13,695 once invoked), scanned A, original, Apache-2.0.

A toolkit for producing PDF documents, from structured reports and proposals to designed posters, infographics, invitations, and dashboards.

In plain words
What is it for?
It helps create reports, contracts, white papers, résumés, posters, infographics, and other PDF files with controlled layout.
Why use it?
It provides separate workflows for document writing and visual PDF design, so the output can be prepared for printing or sharing.

Skill for Claude CodeCodex

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/alice/project/img.png.

Good fit It helps create reports, contracts, white papers, résumés, posters, infographics, and other PDF files with controlled layout.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/pdf/github.svg)](https://agentmods.dev/skills/ssmurfgg04-gif/context-m/pdf)
Your own site
<a href="https://agentmods.dev/skills/ssmurfgg04-gif/context-m/pdf"><img src="https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/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.

agentmods 80×15 button for pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/ssmurfgg04-gif/context-m/pdf"><img src="https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 13,695 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.00145 $0.13695
Opus 5 $0.00072 $0.06848
Sonnet 5 $0.00029 $0.02739
Haiku 4.5 $0.00015 $0.01370

Measured 7d ago against content hash 914d58c329fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

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 7d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (env_setup/env_check.sh, env_setup/setup_mac_linux.sh, env_setup/setup_windows.ps1, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/SKILL.md · 880 lines

How it starts

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

PDF - Document Production Workbench

Script Path Setup (MANDATORY before any script call)

All paths are relative to $PDF_SKILL_DIR. Resolve it once before calling any script:

PDF_SKILL_DIR="<skill_directory>"   # ← parent directory of this SKILL.md

For Python imports (when generation code needs to import skill modules):

import sys, os
PDF_SKILL_DIR = "<skill_directory>"
_scripts = os.path.join(PDF_SKILL_DIR, "scripts")
if _scripts not in sys.path:
    sys.path.insert(0, _scripts)

Triage

Determine task weight to control how much context to load:

Weight Triggers What to Load
Light Format conversion, form fill, text extract, merge/split, simple certificate SKILL.md + briefs/process.md only
Standard Multi-page report, poster, academic paper, resume, reformat - any document with design decisions SKILL.md + configs/fonts.md + matched brief + ALL files referenced by the brief (typesetting, configs, etc.)

⚠️ Pre-Routing Checks (run BEFORE matching brief)

  1. Emoji Check - Scan user content for intentional emoji (decorative 📊🎯🔥, not OS-level emoji input). If found → force Creative pipeline (Fixed-Canvas or Flow depending on document type) regardless of original routing. ReportLab renders emoji as □ squares; LaTeX drops them entirely.
  2. CJK Check - Chinese/Japanese/Korean content needs font coverage. Report brief must register CJK fonts - probe first with ls /usr/share/fonts/truetype/chinese/ (Linux) or check $FONT_DIR (macOS) to confirm which fonts exist, then register accordingly (prefer NotoSerifSC > Noto Sans SC; never hardcode a font name without verifying it exists). Creative Fixed-Canvas and Creative Flow briefs must load Google Fonts Noto Sans SC with font-display: swap; Academic brief must use \usepackage{ctex}.
  3. Size Check - Non-standard page sizes (not A4/Letter/A3) → prefer Creative brief (Playwright handles any dimension). ReportLab can do custom sizes but pagination is manual.
  4. Character Safety Check - Before writing any content string, scan for Japanese kana (の、が、は etc.), unusual Unicode symbols, or non-CJK characters that may corrupt during encoding transit ( Especially when code is written via heredoc/base64/LLM output). Replace with plain Chinese equivalents: 之/的/缔, →omit or write full character. If content must preserve Japanese, use only standard CJK Unified Ideographs (U+4E00-U+9FFF) and common kana; avoid rare/private-use codepoints.

Read the full file on GitHub · 880 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. 7d ago First seen · 880 lines · 145 tokens per session scan A 914d58c329fc

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository ssmurfgg04-gif/context-m (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 145 tokens to every session and 13,695 once invoked, about $0.0007 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-03.

Related

Other skills, from other repositories