nano-pdf

nano-pdf is a skill for Claude Code, Codex from StarryCod/cogitum. It costs 21 tokens per session (378 once invoked), scanned A, original, MIT.

A command-line tool for changing text in PDF files using plain-language instructions. It is suited to targeted edits on specific pages, such as titles, dates, names, and typos.

In plain words
What is it for?
Use it to edit text on a selected PDF page and then check the resulting file; it requires an API key.
Why use it?
It avoids manually editing a PDF for small text corrections, while making clear that complex layout changes may need another method.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/starrycod/cogitum/nano-pdf
Any agent
npx skills add StarryCod/cogitum --skill nano-pdf
Clone the repo
git clone --depth 1 https://github.com/StarryCod/cogitum

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/starrycod/cogitum/nano-pdf.svg)](https://agentmods.dev/skills/starrycod/cogitum/nano-pdf)
Your own site
<a href="https://agentmods.dev/skills/starrycod/cogitum/nano-pdf"><img src="https://agentmods.dev/badge/skills/starrycod/cogitum/nano-pdf.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 378 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00021 $0.00378
Opus 5 $0.00010 $0.00189
Sonnet 5 $0.00004 $0.00076
Haiku 4.5 $0.00002 $0.00038

Measured 4d ago against content hash 6f499b9ddc7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nano-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 4d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

  • nano-pdf — 95% identical, 6 lines differ
  • nano-pdf — 94% identical, 4 lines differ
cogitum/data/skills/productivity/nano-pdf/SKILL.md · 53 lines

What it actually says

nano-pdf

Edit PDFs using natural-language instructions. Point it at a page and describe what to change.

Prerequisites

# Install with uv (recommended — already available in Cogitum)
uv pip install nano-pdf

# Or with pip
pip install nano-pdf

Usage

nano-pdf edit <file.pdf> <page_number> "<instruction>"

Examples

# Change a title on page 1
nano-pdf edit deck.pdf 1 "Change the title to 'Q3 Results' and fix the typo in the subtitle"

# Update a date on a specific page
nano-pdf edit report.pdf 3 "Update the date from January to February 2026"

# Fix content
nano-pdf edit contract.pdf 2 "Change the client name from 'Acme Corp' to 'Acme Industries'"

Notes

  • Page numbers may be 0-based or 1-based depending on version — if the edit hits the wrong page, retry with ±1
  • Always verify the output PDF after editing (use read_file to check file size, or open it)
  • The tool uses an LLM under the hood — requires an API key (check nano-pdf --help for config)
  • Works well for text changes; complex layout modifications may need a different approach
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. 4d ago First seen · 53 lines · 21 tokens per session scan A 6f499b9ddc7f

Subscribe to this mod's changes

nano-pdf is a skill published in the GitHub repository StarryCod/cogitum (11 stars, last pushed 3mo ago), licensed MIT. It adds 21 tokens to every session and 378 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

openmaic-classroom

将 RAG 检索结果、文档块或知识图谱概念转换为 OpenMAIC 互动课程。当用户要求将知识库内容、检索到的文档片段、上传的文档、或知识图谱中的概念批量转换为教学课件/互动课堂时使用此技能。支持纯需求生成、基于 PDF 内容的课程生成、和基于概念图遍历的批量课堂生成。.

Tencent/WeKnora · 102 tokens

文档分析器

深度分析文档结构和内容。当用户需要分析文档结构、提取关键信息、识别文档类型、进行内容质量评估、或理解文档组织方式时使用此技能。.

Tencent/WeKnora · 51 tokens

pdf-processing

Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.

Tencent/WeKnora · 36 tokens

data-transform

Use this skill when the task involves converting or reformatting structured data between file formats such as CSV, JSON, XML, or YAML. Suitable for tasks like "convert this CSV to JSON", "reformat my data file", or "change the file format of this dataset". Do NOT use for statistical analysis, aggregation, or report…

agentscope-ai/agentscope-java · 72 tokens

Nano PDF

Extract, inspect, and summarize PDFs quickly with lightweight tooling before escalating to heavier OCR or layout workflows.

agentic-in/elephant-agent · 23 tokens

PowerPoint

Build or revise presentation structure, slide copy, and export-ready material for PowerPoint-style decks.

agentic-in/elephant-agent · 22 tokens