pdfmux: Instructions file for Claude Code

CLAUDE.md

pdfmux CLAUDE.md is an instructions file for Claude Code from NameetP/pdfmux. It costs 333 tokens per session, scanned A, original, MIT.

Project instructions for pdfmux, a Python tool that extracts text from PDFs, checks the results, uses OCR when needed, and combines the outputs. They also describe commands for linting, testing, and checking the project's static website.

In plain words
What is it for?
Use them when working on pdfmux source code, tests, documentation, or its self-contained HTML site, especially before running lint checks or pytest.
Why use it?
They give a coding agent the project's required commands and rules before it changes code. This helps keep edits consistent and catches formatting, test, and website design violations.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is NameetP/pdfmux's own configuration. It tells Claude Code how to work on pdfmux itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pdfmux configures →

Reuse

Borrowing it

Nothing to install: this file belongs to NameetP/pdfmux. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/NameetP/pdfmux/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/NameetP/pdfmux

Made for: Claude Code.

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 pdfmux CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nameetp/pdfmux/claude-md/github.svg)](https://agentmods.dev/instructions/nameetp/pdfmux/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/nameetp/pdfmux/claude-md"><img src="https://agentmods.dev/badge/instructions/nameetp/pdfmux/claude-md/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 pdfmux CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nameetp/pdfmux/claude-md"><img src="https://agentmods.dev/badge/instructions/nameetp/pdfmux/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 333 This file is loaded in full into every session.
When invoked 333 The same file — it is already loaded in full.
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.00333 $0.00333
Opus 5.5 $0.00133 $0.00133
Sonnet 5.5 $0.00067 $0.00067
Haiku 4.5 $0.00033 $0.00033

Measured 2mo ago against content hash a5358584dded, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdfmux CLAUDE.md 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 2mo 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.

CLAUDE.md · 41 lines

What it actually says

pdfmux — Agent Instructions

Project

PDF extraction that checks its own work. Multi-pass pipeline: fast extract → audit → selective OCR → merge.

  • Language: Python 3.11+
  • Build: hatchling (pyproject.toml)
  • Lint: ruff
  • Test: pytest
  • Site: static HTML in site/ (no build step)

Commands

# Python
ruff check src/ tests/          # lint
ruff format src/ tests/         # format
pytest -v                       # test

# Site
python3 design-system/lint.py site/   # design system lint
npx serve site/ -l 3456              # local dev server

Design System

When editing any file in site/, you MUST follow the design system.

  1. Read design-system/DESIGN_SYSTEM.md for all visual rules
  2. Read design-system/SKILL.md for agent-specific instructions
  3. After changes, run python3 design-system/lint.py site/ and fix all violations

Key rules:

  • No raw hex/rgb/hsl colors outside :root — use CSS custom properties
  • No inline font-family — use var(--font) or var(--mono)
  • Border-radius: only 4px, 8px, or 10px
  • Transitions: only 0.15s duration
  • No external CSS or JS — site is self-contained HTML
  • Max content width: 720px
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. 2mo ago First seen · 41 lines · 333 tokens per session scan A a5358584dded

Subscribe to this mod's changes

pdfmux CLAUDE.md is an instructions file published in the GitHub repository NameetP/pdfmux (86 stars, last pushed 7d ago), licensed MIT. It adds 333 tokens to every session, about $0.0013 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-08-30.

Related

pdfmux CLAUDE.md compared with instructions from other repositories

pdfmux CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pdfmux CLAUDE.mdNameetP/pdfmuxInstructions file867d agoMITA333Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot