Agent skill

PDF Processor

by aipoch in aipoch/medical-research-skills

Perform basic local PDF operations (merge, split, extract pages/text/tables, create) when users request offline PDF processing without external services.

MITAuto-check passedDocuments & Office

Install PDF Processor

skills CLI
$ npx skills add aipoch/medical-research-skills --skill pdf-processor -a claude-code

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

GitHub CLI
$ gh skill install aipoch/medical-research-skills pdf-processor --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/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/scientific-skills/Other/pdf-processor .claude/skills/pdf-processor && 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-processor
GitHub stars
2k
Token cost
~1.7k tokens
SKILL.md length
775 words
Files
3
Skills in repo
567
Repo updated
First seen
Licence
MIT

At a glance

Perform basic local PDF operations (merge, split, extract pages/text/tables, create) when users request offline PDF processing without external services.

  • Works in 4 steps: Validate the request against the skill… → Select the documented execution path and… → Produce the expected output using the… → …
  • Tasks that involve PDF
  • SKILL.md covers When to Use, Key Features, Dependencies and Example Usage, plus 9 more sections
  • Calls python and pip

What it does

PDF Processor is an agent skill from aipoch/medical-research-skills. Perform basic local PDF operations (merge, split, extract pages/text/tables, create) when users request offline PDF processing without external services.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `POLISH_CHANGELOG.md` and `eval_report_pdf-processor_result.json`).

It sits in Documents & Office, covering PDF. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Tasks that involve PDF

Example prompts

  • “/pdf-processor”

Requirements

  • Python 3

Workflow steps

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

  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. 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

    Shell commands in SKILL.md call:

    • python
    • pip

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

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    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 Processor loads about 1.7k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 775 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 775 words, ~1,693 tokens.

Download SKILL.mdSave it as .claude/skills/pdf-processor/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
pdf-processor
description
Perform basic local PDF operations (merge, split, extract pages/text/tables, create) when users request offline PDF processing without external services.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

When to Use

  • You need to merge multiple PDFs into a single document offline.
  • You need to split a PDF into per-page files for review, annotation, or distribution.
  • You need to extract a specific page range (e.g., 1-3,5) into a new PDF.
  • You need to extract selectable text from a PDF into a .txt file without using any cloud API.
  • You need to extract tables from PDFs into CSV files locally.

Key Features

  • Merge PDFs: Combine multiple input PDFs into one output PDF.
  • Split PDFs: Export each page as an individual PDF.
  • Extract Pages: Create a new PDF from selected pages using a page-range expression.
  • Extract Text: Export extracted text to a plain text file.
  • Extract Tables: Export detected tables to CSV files (may produce empty CSVs on pages without tables).
  • Create PDF: Generate a simple PDF from a text file.
  • Local-only execution: No network access, no external APIs, no credentials.

Dependencies

  • Python: 3.9+

Install Python dependencies:

bash
pip install -r scripts/requirements.txt

Example Usage

More examples may be available in references/examples.md.

Merge PDFs
bash
python scripts/pdf_tool.py \
  --operation merge \
  --inputs "a.pdf" "b.pdf" \
  --output "out.pdf"
Split a PDF into single-page PDFs
bash
python scripts/pdf_tool.py \
  --operation split \
  --inputs "input.pdf" \
  --output "out_dir"
Extract specific pages into a new PDF
bash
python scripts/pdf_tool.py \
  --operation extract-pages \
  --inputs "input.pdf" \
  --pages "1-3,5" \
  --output "extracted.pdf"
Extract text to a .txt file
bash
python scripts/pdf_tool.py \
  --operation extract-text \
  --inputs "input.pdf" \
  --output "output.txt"
Extract tables to CSV files
bash
python scripts/pdf_tool.py \
  --operation extract-tables \
  --inputs "input.pdf" \
  --output "tables_out_dir"
Create a PDF from a text file
bash
python scripts/pdf_tool.py \
  --operation create \
  --inputs "input.txt" \
  --output "created.pdf"

Implementation Details

  • Execution model: Local CLI tool/script (scripts/pdf_tool.py) that reads from provided input paths and writes only to the specified output path.
  • Supported operations:
    • merge: Concatenates PDFs in the order provided via --inputs.
    • split: Writes one PDF per page (output is typically a directory path).
    • extract-pages: Uses --pages to select pages and writes a new PDF.
    • extract-text: Extracts selectable text; pages with no extractable text may yield empty lines.
    • extract-tables: Attempts table detection/extraction; pages without tables may produce empty CSV outputs.
    • create: Produces a simple PDF from a text input.
  • Page range format: --pages "1-3,5" where page numbering starts at 1.
  • Failure handling:
    • Invalid or out-of-range pages in --pages are ignored.
    • Text extraction preserves structure minimally; no OCR is performed.
    • Table extraction quality depends on the PDF's structure; complex layouts may not reconstruct well.
  • Security constraints:
    • No network calls.
    • No external services.
    • Reads only specified input files and writes only to the specified output location.
  • Success criteria:
    • Output file(s) exist at the specified location.
    • Page counts and ordering match the requested operation.
    • No writes occur outside the specified output path.

When Not to Use

  • Do not use this skill when the required source data, identifiers, files, or credentials are missing.
  • Do not use this skill when the user asks for fabricated results, unsupported claims, or out-of-scope conclusions.
  • Do not use this skill when a simpler direct answer is more appropriate than the documented workflow.

Required Inputs

  • A clearly specified task goal aligned with the documented scope.
  • All required files, identifiers, parameters, or environment variables before execution.
  • Any domain constraints, formatting requirements, and expected output destination if applicable.
Show full SKILL.md (307 more words)Show less
  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.

Output Contract

  • Return a structured deliverable that is directly usable without reformatting.
  • If a file is produced, prefer a deterministic output name such as pdf_processor_result.md unless the skill documentation defines a better convention.
  • Include a short validation summary describing what was checked, what assumptions were made, and any remaining limitations.

Validation and Safety Rules

  • Validate required inputs before execution and stop early when mandatory fields or files are missing.
  • Do not fabricate measurements, references, findings, or conclusions that are not supported by the provided source material.
  • Emit a clear warning when credentials, privacy constraints, safety boundaries, or unsupported requests affect the result.
  • Keep the output safe, reproducible, and within the documented scope at all times.

Failure Handling

  • If validation fails, explain the exact missing field, file, or parameter and show the minimum fix required.
  • If an external dependency or script fails, surface the command path, likely cause, and the next recovery step.
  • If partial output is returned, label it clearly and identify which checks could not be completed.

Input Validation

This skill accepts requests that match the documented purpose of pdf-processor and include enough context to complete the workflow safely.

Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:

pdf-processor only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.

Quick Validation

Run this minimal verification path before full execution when possible:

bash
python scripts/pdf_tool.py --help

Expected output format:

text
Result file: pdf_processor_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any

© aipoch, MIT. 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 2 other files in scientific-skills/Other/pdf-processor of aipoch/medical-research-skills.

  • SKILL.md
  • POLISH_CHANGELOG.md
  • eval_report_pdf-processor_result.json

Open the folder on GitHubat commit 686e09d

Compare with similar skills

PDF Processor 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 Processor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PDF Processor this skillaipoch/medical-research-skills2k—~1.7kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Gzh Designisjiamu/gzh-design-skill3.9k1 repos~2.2kAutomated safety check: PassAGPL-3.0
GenOffice Document CLIgenspark-ai/genoffice8.8k—~19kAutomated safety check: PassApache-2.0
Harness Book Best Practicewquguru/harness-books3.2k—~4.1kAutomated safety check: PassNone
Bookforge Korean Ebook PDF Makergongnyang/bookforge3141 repos~1.7kAutomated safety check: PassMIT

Similar skills

  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    3.9k GitHub starsUsed in 1 repo~2.2k tokens
    Documents & OfficeAuto-check passed
  • GenOffice Document CLI

    genspark-ai/genoffice

    Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.

    8.8k GitHub stars~19k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Harness Book Best Practice

    wquguru/harness-books

    Best practices for working on the Harness books repo. An agent skill from wquguru/harness-books.

    3.2k GitHub stars~4.1k tokensUpdated 5 mo ago
    Documents & OfficeAuto-check passed
  • Produces book-style Korean ebook PDFs from a topic or finished manuscript, with six design styles, real book parts and quality-check gates before output.

    314 GitHub starsUsed in 1 repo~1.7k tokens
    Documents & OfficeAuto-check passed
  • Instrument Data To Allotrope

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV.

    274 GitHub starsUsed in 2 repos~2.7k tokens
    Documents & OfficeAuto-check passed

More from aipoch/medical-research-skills

All 567 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    2k GitHub stars~2.2k tokensUpdated 20 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    2k GitHub stars~1.4k tokensUpdated 20 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    2k GitHub stars~3.7k tokensUpdated 20 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    2k GitHub stars~1.8k tokensUpdated 20 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    2k GitHub stars~1.7k tokensUpdated 20 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    2k GitHub stars~1.3k tokensUpdated 20 days ago
    Auto-check passed

Questions about PDF Processor

What does PDF Processor do?

Perform basic local PDF operations (merge, split, extract pages/text/tables, create) when users request offline PDF processing without external services. PDF Processor is an agent skill from aipoch/medical-research-skills. Perform basic local PDF operations (merge, split, extract pages/text/tables, create) when users request offline PDF processing without external services.

When should I use PDF Processor?

PDF Processor fits situations like: tasks that involve PDF.

How do I install PDF Processor in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill pdf-processor -a claude-code`. Or copy the skill folder (scientific-skills/Other/pdf-processor in aipoch/medical-research-skills) into .claude/skills/pdf-processor in your project. Claude Code loads it when a task matches its description.

How do I install PDF Processor in Codex?

Run `npx skills add aipoch/medical-research-skills --skill pdf-processor -a codex`. Or copy the skill folder (scientific-skills/Other/pdf-processor in aipoch/medical-research-skills) into .agents/skills/pdf-processor in your project. Codex loads it when a task matches its description.

Can I use PDF Processor 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 aipoch/medical-research-skills --skill pdf-processor -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-processor, .gemini/skills/pdf-processor, .github/skills/pdf-processor and .opencode/skills/pdf-processor in your project.

What does PDF Processor need to run?

Going by SKILL.md and its folder, PDF Processor needs the command-line tools its instructions call (python and pip). Our summary lists: Python 3.

Does PDF Processor access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is PDF Processor 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. Review the folder before installing.

What licence does PDF Processor use?

PDF Processor is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PDF Processor use?

About 1.7k tokens (SKILL.md is roughly 6.8k 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 Processor?

Skills that share tags, products or a category with PDF Processor: Markitdown (ImCa0/just-laws, 781 stars), Gzh Design (isjiamu/gzh-design-skill, 3.9k stars), GenOffice Document CLI (genspark-ai/genoffice, 8.8k stars) and Harness Book Best Practice (wquguru/harness-books, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PDF Processor?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,973 GitHub stars. The repository holds 567 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.