pdf-text-replace

pdf-text-replace is a skill for Claude Code, Codex from instavm/coderunner. It costs 42 tokens per session (512 once invoked), scanned A, original, Apache-2.0.

A tool for changing text stored in fillable PDF form fields. Fillable PDFs are forms whose entries can still be edited, unlike scanned or flattened documents.

In plain words
What is it for?
Use it to replace names, addresses, dates, or reference numbers in filled PDF forms, including in batches.
Why use it?
It updates repeated form details without manually editing each field. It does not apply to text that is part of a fixed PDF page.

Skill for Claude CodeCodex

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

Good fit Use it to replace names, addresses, dates, or reference numbers in filled PDF forms, including in batches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/instavm/coderunner/pdf-text-replace
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 instavm/coderunner --skill pdf-text-replace
Clone the repo
git clone --depth 1 https://github.com/instavm/coderunner

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-text-replace

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/instavm/coderunner/pdf-text-replace"><img src="https://agentmods.dev/badge/skills/instavm/coderunner/pdf-text-replace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 512 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.00042 $0.00512
Opus 5.5 $0.00017 $0.00205
Sonnet 5.5 $0.00008 $0.00102
Haiku 4.5 $0.00004 $0.00051

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

Security

Grade A, and why

pdf-text-replace 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/replace_text_in_pdf.py), 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/public/pdf-text-replace/SKILL.md · 82 lines

What it actually says

PDF Text Replace Skill

Replace text in fillable PDF forms by updating form field values.

Description

This skill allows you to search and replace text in PDF files that have fillable form fields. It scans all form fields in the PDF, finds fields containing the search text, and replaces it with the replacement text.

Use Cases

  • Update names in filled tax forms
  • Replace addresses in PDF documents
  • Update dates or reference numbers
  • Batch update form field values

Requirements

  • PDF must have fillable form fields (not flattened)
  • Python 3.7+
  • pypdf library

Usage

Basic Usage

python /app/uploads/skills/public/pdf-text-replace/scripts/replace_text_in_pdf.py \
    /app/uploads/input.pdf \
    "OLD TEXT" \
    "NEW TEXT" \
    /app/uploads/output.pdf

Example: Replace Name in Tax Form

python /app/uploads/skills/public/pdf-text-replace/scripts/replace_text_in_pdf.py \
    /app/uploads/f5472.pdf \
    "MANISH KUMAR" \
    "MANNU KUMAR" \
    /app/uploads/f5472_updated.pdf

Script Details

Script: scripts/replace_text_in_pdf.py

Arguments:

  1. input_pdf - Path to input PDF file
  2. search_text - Text to search for in form fields
  3. replace_text - Text to replace with
  4. output_pdf - Path to save the updated PDF

Output:

  • Creates a new PDF with updated field values
  • Preserves all form fields (not flattened)
  • Reports number of fields modified

Limitations

  • Only works with fillable PDF forms (not scanned/image PDFs)
  • Replaces text in form field values, not static text
  • Case-sensitive search by default
  • Cannot modify flattened PDFs

Dependencies

The script requires the pypdf library, which is included in the container requirements.

Error Handling

The script will report errors if:

  • Input PDF doesn't exist
  • PDF doesn't have fillable form fields
  • Search text is not found
  • Output path is not writable
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 82 lines · 42 tokens per session scan A 0202efedea12

Subscribe to this mod's changes

pdf-text-replace is a skill published in the GitHub repository instavm/coderunner (895 stars, last pushed 7d ago), licensed Apache-2.0. It adds 42 tokens to every session and 512 once invoked, about $0.0002 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

Other skills, from other repositories

pdf

PDF files: create, read, merge, fill, OCR, edit text.

NousResearch/hermes-agent · 18 tokens

data-export

Generates data export/import infrastructure for JSON, CSV, PDF formats with GDPR data portability, share sheet integration, and file import. Use when user wants data export functionality, CSV/JSON/PDF export, GDPR compliance data portability, import from files, or share sheet for data.

rshankras/claude-code-apple-skills · 59 tokens

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

spytensor/openmozi · 92 tokens

tageszeitung

Creates a personalised daily newspaper from RSS feeds and web sources. Ported from the BACH news system (news.py + newspapergenerator.py). Own SQLite store (no Origin-DB). feedparser optional — XML fallback via stdlib. PDF export via Edge Headless (msedge.exe).

ellmos-ai/skills · 63 tokens

pencil-export

Export a Pencil (.pen) deck to PNG + PDF + PPTX + a self-contained HTML on WSL. PNG and PDF come from Pencil natively through the execute tool. PPTX defaults to an EDITABLE twin (identical look, native editable text, brand fonts embedded); the image-per-slide locked-look PPTX is opt-in via pptx-flat. The PPTX and…

mishahanin/heading-os · 198 tokens

docparse

Parse documents (PDF, DOCX, PPTX, XLSX) with spatial bounding boxes via LiteParse. Answer questions with visual citations showing exact source locations on page images. Generate 31C-branded HTML/PDF reports. Maintains a parse cache for efficiency. Use when: "parse this document", "docparse", "visual citations", "show…

mishahanin/heading-os · 135 tokens