Agent skill

PDF Text Replace

by instavm in instavm/coderunner

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

Apache-2.0Auto-check passedDocuments & Office

Install PDF Text Replace

skills CLI
$ npx skills add instavm/coderunner --skill pdf-text-replace -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install instavm/coderunner pdf-text-replace --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/instavm/coderunner.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/public/pdf-text-replace .claude/skills/pdf-text-replace && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pdf-text-replace
GitHub stars
893
Token cost
~536 tokens
SKILL.md length
223 words
Files
2 (incl. scripts)
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

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

  • Works in 4 steps: input_pdf - Path to input PDF file → search_text - Text to search for in form… → replace_text - Text to replace with → …
  • Tasks that involve PDF
  • SKILL.md covers Description, Use Cases, Requirements and Usage, plus 4 more sections
  • Runs Python scripts from its folder; calls python

What it does

PDF Text Replace is an agent skill from instavm/coderunner. Replace text in fillable PDF forms by updating form field values. This skill should be used when users need to update names, addresses, dates, or other text in PDF form fields.

Its SKILL.md is about 540 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/replace_text_in_pdf.py`).

It sits in Documents & Office, covering PDF. It works with Model Context Protocol and OpenAI. The repository describes itself as: A local sandbox for your AI agents. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve PDF

Example prompts

  • “/pdf-text-replace”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit e8a4b58. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PDF Text Replace loads about 536 tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 223 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~536

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from instavm/coderunner at commit e8a4b58, republished under its Apache-2.0 licence (© instavm). 223 words, ~536 tokens.

Download SKILL.mdSave it as .claude/skills/pdf-text-replace/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
pdf-text-replace
description
Replace text in fillable PDF forms by updating form field values. This skill should be used when users need to update names, addresses, dates, or other text in PDF form fields.

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
bash
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
bash
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

© instavm, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in skills/public/pdf-text-replace of instavm/coderunner.

  • SKILL.md
  • scripts/replace_text_in_pdf.py

Open the folder on GitHubat commit e8a4b58

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in instavm/coderunner, which our catalogue first saw on October 7, 2026.

Compare with similar skills

PDF Text Replace next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PDF Text Replace compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PDF Text Replace this skillinstavm/coderunner893—~536Automated safety check: PassApache-2.0
Codex Chatgpt BridgeZhenyu98/codex-chatgpt-bridge275—~4kAutomated safety check: PassMIT
PullmdAeternaLabsHQ/pullmd486—~2.6kAutomated safety check: PassAGPL-3.0
MineruNebutra/MinerU-Skill122—~1.4kAutomated safety check: PassMIT
Datasheetsbiosshot/easyeda-copilot165—~1.2kAutomated safety check: PassMIT
Markdown Paged GuideBigStrongSun/ccswitchmulti122—~589Automated safety check: PassMIT

Similar skills

  • Codex Chatgpt Bridge

    Zhenyu98/codex-chatgpt-bridge

    A skill your agent uses when Codex needs to coordinate ChatGPT, Chrome, Cloudflare tunnels, verified bridge Restart/Reboot recovery, or task routing between local code execution and ChatGPT…

    275 GitHub stars~4k tokensUpdated 2 mo ago
    Productivity & AutomationAuto-check passed
  • Pullmd

    AeternaLabsHQ/pullmd

    Read any web page, document, or YouTube video as clean Markdown using PullMD.

    486 GitHub stars~2.6k tokensUpdated 16 days ago
    Documents & OfficeAuto-check passed
  • Mineru

    Nebutra/MinerU-Skill

    An AI-Native skill for parsing PDF / Office / image files into clean Markdown with MinerU — a fast, zero-config document parser for AI agents.

    122 GitHub stars~1.4k tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Datasheets

    biosshot/easyeda-copilot

    Download component datasheet PDFs, locate useful pages, and read verified pinouts, electrical limits, thermal data and application notes using the agent's PDF tools.

    165 GitHub stars~1.2k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Markdown Paged Guide

    BigStrongSun/ccswitchmulti

    Render Markdown manuals into polished per-page PNG images and PDF deliverables.

    122 GitHub stars~589 tokensUpdated 3 days ago
    Documents & OfficeAuto-check passed
  • Cnki Journal Toc

    cookjohn/cnki-skills

    Browse journal issues, view table of contents, and download original TOC PDF from CNKI.

    978 GitHub starsUsed in 2 repos~1.5k tokens
    Documents & OfficeAuto-check passed

More from instavm/coderunner

  • Image Crop Rotate

    instavm/coderunner

    Image processing skill for cropping images to 50% from center and rotating them 90 degrees clockwise.

    893 GitHub stars~599 tokensUpdated yesterday
    Auto-check passed

Questions about PDF Text Replace

What does PDF Text Replace do?

Replace text in fillable PDF forms by updating form field values. PDF Text Replace is an agent skill from instavm/coderunner. Replace text in fillable PDF forms by updating form field values.

When should I use PDF Text Replace?

PDF Text Replace fits situations like: tasks that involve PDF.

How do I install PDF Text Replace in Claude Code?

Run `npx skills add instavm/coderunner --skill pdf-text-replace -a claude-code`. Or copy the skill folder (skills/public/pdf-text-replace in instavm/coderunner) into .claude/skills/pdf-text-replace in your project. Claude Code loads it when a task matches its description.

How do I install PDF Text Replace in Codex?

Run `npx skills add instavm/coderunner --skill pdf-text-replace -a codex`. Or copy the skill folder (skills/public/pdf-text-replace in instavm/coderunner) into .agents/skills/pdf-text-replace in your project. Codex loads it when a task matches its description.

Can I use PDF Text Replace in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add instavm/coderunner --skill pdf-text-replace -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pdf-text-replace, .gemini/skills/pdf-text-replace, .github/skills/pdf-text-replace and .opencode/skills/pdf-text-replace in your project.

What does PDF Text Replace need to run?

Going by SKILL.md and its folder, PDF Text Replace needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does PDF Text Replace access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is PDF Text Replace safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does PDF Text Replace use?

PDF Text Replace is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PDF Text Replace use?

About 536 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PDF Text Replace?

Skills that share tags, products or a category with PDF Text Replace: Codex Chatgpt Bridge (Zhenyu98/codex-chatgpt-bridge, 275 stars), Pullmd (AeternaLabsHQ/pullmd, 486 stars), Mineru (Nebutra/MinerU-Skill, 122 stars) and Datasheets (biosshot/easyeda-copilot, 165 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PDF Text Replace?

instavm (a GitHub organization) maintains it in instavm/coderunner, which has 893 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 6, 2026.

Source: instavm/coderunner on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.