pdf-form-filling

pdf-form-filling is a skill for Claude Code, Codex from cxcscmu/SkillLearnBench. It costs 22 tokens per session (625 once invoked), scanned A, original, MIT.

A way to fill named fields in an existing PDF form using Python. PDF forms are documents with built-in boxes for information such as names, dates, or case details.

In plain words
What is it for?
It helps inspect form fields, enter values, and save filled legal or other PDF forms.
Why use it?
It removes repetitive manual typing and helps create completed copies while preserving the original form.

Skill for Claude CodeCodex

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

Good fit It helps inspect form fields, enter values, and save filled legal or other PDF forms.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cxcscmu/skilllearnbench/pdf-form-filling
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 cxcscmu/SkillLearnBench --skill pdf-form-filling
Clone the repo
git clone --depth 1 https://github.com/cxcscmu/SkillLearnBench

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-form-filling

README.md
[![agentmods](https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/pdf-form-filling.svg)](https://agentmods.dev/skills/cxcscmu/skilllearnbench/pdf-form-filling)
Your own site
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/pdf-form-filling"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/pdf-form-filling.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 625 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00022 $0.00625
Opus 5 $0.00011 $0.00313
Sonnet 5 $0.00004 $0.00125
Haiku 4.5 $0.00002 $0.00063

Measured 8d ago against content hash a79b4403bcda, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pdf-form-filling 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 8d 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/b1-one-shot-claude-haiku-4-5/court-form-filling/pdf-form-filling/SKILL.md · 109 lines

How it starts

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

PDF Form Filling with Python

Overview

This skill covers how to identify and fill form fields in PDF documents, particularly for legal forms like court documents.

Key Libraries

1. PyPDF (pypdf)

  • Modern, actively maintained library for PDF manipulation
  • Can read form field names and fill them
  • Installation: pip install pypdf

2. pdfrw

  • Lightweight alternative, good for form filling
  • Installation: pip install pdfrw

Common Workflow

With pypdf:

from pypdf import PdfReader, PdfWriter

# Read the blank form
reader = PdfReader("/path/to/form.pdf")
writer = PdfWriter()

# Get the form fields
fields = reader.get_fields()
print(fields.keys())  # See all available fields

# Create a copy and update fields
for page in reader.pages:
    writer.add_page(page)

# Update fields
writer.update_page_form_field_values(
    writer.pages[0],
    {
        "Field1": "Value1",
        "Field2": "Value2",
    }
)

# Save the result
with open("/path/to/filled.pdf", "wb") as f:
    writer.write(f)

With pdfrw:

from pdfrw import PdfReader, PdfWriter, PdfDict, PdfObject

# Read template
template = PdfReader("/path/to/form.pdf")

# Inspect available fields
for field in template.Root.AcroForm.Fields:
    print(field.T)  # Field name

# Fill fields
for field in template.Root.AcroForm.Fields:
    if field.T == "FieldName":
        field.V = "Field Value"
        field.AP = None  # Clear appearance stream

# Write output
PdfWriter().write("/path/to/filled.pdf", template)

Inspecting Form Fields

from pypdf import PdfReader

reader = PdfReader("form.pdf")
fields = reader.get_fields()

for field_name, field_data in fields.items():
    print(f"{field_name}: {field_data}")

Important Notes

  • Form field names are case-sensitive
  • Some PDFs have checkboxes/radio buttons requiring "Yes"/"No" or specific values
  • Date fields may need specific formatting
  • Always check field types before filling
  • Keep a copy of the blank form for reference

Read the full file on GitHub · 109 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. 8d ago First seen · 109 lines · 22 tokens per session scan A a79b4403bcda

Subscribe to this mod's changes

pdf-form-filling is a skill published in the GitHub repository cxcscmu/SkillLearnBench (83 stars, last pushed 2mo ago), licensed MIT. It adds 22 tokens to every session and 625 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.