AI Agent Hub
Back to skills
Universal PDF Master icon

Universal PDF Master

Office Efficiency Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_e867e415/pdf-master into your AI assistant according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

PDF workflows often fail because the file state is unclear before processing: encryption, scanned pages, missing text layers, or mixed content can cause extraction, merging, compression, and redaction steps to fail silently. This skill makes detection and routing explicit before any transformation.

How It Works

  • Detect first: pdf_info.py reads page count, size, encryption status, text layer, scan ratio, and metadata.
  • Route by type: text-based files use PyMuPDF / pdfplumber; image-only files use OCR; mixed pages are processed by page; encrypted files require a password or stop.
  • Split intent: compound requests become ordered capability chains, such as rename, merge, and index generation, with progress after each step.
  • Confirm risky operations: batch jobs, irreversible changes, and missing parameters trigger a checklist, diff, or default-value confirmation.
  • Deliver with QA: output includes the result file, acceptance findings, error fallbacks, and security notes; invoice verification and e-signature are explicitly limited when external services are unavailable.

Boundaries

It suits controlled PDF editing, organization, extraction, and redaction workflows. Confidential files must follow local-processing constraints. Black-out/redaction and permanent deletion are distinct operations and must not be conflated. If external dependencies are unavailable, it must not fabricate verified invoices or legally effective signatures.

Use Cases

  • Assess received client contracts for encryption, scans, and text layers before choosing extraction or OCR.
  • Batch-rename dated PDFs by rule, then merge them into one manual with progress checks.
  • Redact sensitive finance fields reversibly, with diff confirmation and a validation report.
  • Verify customer invoices and mark them unverified if the external verification service is unavailable.

Best For

  • Document engineers handling contracts: detect PDF state, then route to text extraction, OCR, or secure processing.
  • Product or operations staff maintaining libraries: batch-rename and merge PDFs with confirmation for irreversible changes.
  • Compliance reviewers checking finance or legal files: redact reversibly, verify changes, and document results.
  • Backend engineers integrating internal flows: script metadata checks, failure fallbacks, and delivery QA.