Przejdź do treści
Biblioteka skilli
Dokumenty i biuro · Konwersja i formaty

pdf

/pdf

Obsługuje PDF jako wejście lub wyjście: czytanie, porównywanie, wyciąganie tekstu, tabel i obrazów, OCR, wypełnianie formularzy, dzielenie, łączenie, kompresję i konwersję, z naciskiem na prywatne dokumenty na macOS.

Repozytorium
agent-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
24.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
6
Skrypty
2
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 24.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/form.py, scripts/profile.py

Co robi i kiedy

Obsługuje PDF jako wejście lub wyjście: czytanie, porównywanie, wyciąganie tekstu, tabel i obrazów, OCR, wypełnianie formularzy, dzielenie, łączenie, kompresję i konwersję, z naciskiem na prywatne dokumenty na macOS.

Argumenty

/pdf [file ...]
Oryginalny opis (EN)

Use when PDF files are the primary input or output: read, compare, reconcile, extract text/tables/images, OCR scans, fill forms, split, merge, rotate, rename, compress, or convert between PDF and images. Optimized for private financial, tax, legal, and health documents on macOS.

Jak działa

  1. Invariants
  2. Profile First
  3. Route by Evidence
  4. Execute and Reconcile
Sekcje z nagłówków SKILL.md, w oryginale · 73 linii, 668 słów
Podgląd SKILL.md
---
argument-hint: "[file ...]"
compatibility: Requires macOS, uv, Poppler, qpdf, Ghostscript, OCRmyPDF with Tesseract language data, and img2pdf.
name: pdf
description:
  "Use when PDF files are the primary input or output: read, compare, reconcile, extract text/tables/images, OCR scans,
  fill forms, split, merge, rotate, rename, compress, or convert between PDF and images. Optimized for private
  financial, tax, legal, and health documents on macOS."
---

# PDF

Process PDFs locally on macOS with exact extraction, source preservation, deliberate tool routing, and structural plus
semantic validation.

## Invariants

1. Run extraction and transformations locally. Task-relevant document evidence in tool output and internal agent reports
   may be processed by the configured model provider. Require explicit user authorization and an external-disclosure
   review before uploading or sending document contents outside that agent workflow. Package and language-data downloads
   do not authorize document disclosure.
2. Preserve every original PDF byte-for-byte. Unless the user authorizes destructive replacement, write a sibling
   output, copy, or explicitly named destination.
3. Preserve monetary values, identifiers, dates, signs, and displayed precision as strings. Use `decimal.Decimal` for
   arithmetic. Never infer missing rows or silently discard headers, footnotes, continuation lines, or boundary pages.
4. Inspect structure and representative renders before choosing a transformation. Use the smallest tool that preserves
   the required layout, forms, annotations, and image quality.
5. Validate every written PDF structurally and against task semantics. A command exiting successfully is not evidence
   that extracted rows, totals, page boundaries, form appearances, or visual layout are correct.
6. Keep reports concise for private financial, tax, legal, and health documents. Prefer counts, reconciliations, and
   file references over raw sensitive rows unless the rows materially support the task or the user asks for them.

## Profile First

Resolve the skill directory from this `SKILL.md`, then profile every unknown input:

```sh
uv run "<skill-dir>/scripts/profile.py" "<input.pdf>"
```

The helper emits schema-versioned JSON with integrity, encryption, page geometry/rotation, image counts, and per-page
text coverage without document text. Stop on `password_required`. Password handling is outside this skill.

When layout, cropping, OCR quality, signatures, or form placement matters, render the first and last page, every
structural boundary, and any page behind a discrepancy. For dense charts, tables, or technical drawings, render at
higher resolution and crop or zoom the relevant region before reading values.

## Route by Evidence

| Need                                      | Preferred route                                                          |
| ----------------------------------------- | ------------------------------------------------------------------------ |
| Quick reading or page-aware extraction    | Host PDF reader when available, then `pdftotext -layout`                 |
| Coordinates, columns, or difficult tables | Poppler bounding boxes, then `pdfplumber` through `uv run`               |
| Image-only or materially incomplete text  | OCRmyPDF with Tesseract. Default languages: `eng+ron`                    |
| Merge, split, rotate, or integrity checks | qpdf                                                                     |
| Render pages or extract embedded images   | `pdftocairo` or `pdfimages`                                              |
| Convert ordered images into a PDF         | img2pdf                                                                  |
| Reduce size                               | qpdf lossless rewrite first. Ghostscript only for an accepted lossy pass |
| Inspect, fill, flatten, or overlay forms  | Read [references/forms.md](references/forms.md) first                    |

Only when exact commands for the selected extraction, transformation, OCR, image, comparison, or compression branch are
needed, read [references/recipes.md](references/recipes.md).

## Execute and Reconcile

1. Profile inputs and identify whether each page is digital, scanned, mixed, rotated, or image-heavy.
2. Extract or transform into a new path. For tabular documents, retain page provenance and parse continuations across
   page breaks before assigning rows.
3. Reconcile financial and evidentiary output with every available invariant: page and row counts, opening/closing
   balances, inflows/outflows, subtotals, displayed totals, date coverage, and source hashes when provenance matters.
4. For comparisons, extract both sources independently, enumerate overlapping and unique facts, and render the pages
   behind every material disagreement. Distinguish a real discrepancy from an extraction failure.
5. For split or rename work, establish an old-to-new map from stable content identifiers. Copy by default, preserve
   contextual boundary pages when needed, and verify the first and last page of every result.
6. Validate outputs with qpdf, expected page count/dimensions, text coverage, representative renders, and the task's
   semantic invariants. Retain OCR sidecars or extraction intermediates only when they are requested or useful evidence.

Completion requires preserved originals, intentional outputs, successful structural checks, semantic reconciliation, and
a concise report of paths and evidence. Lead read-only reports with `### 📄 PDF — 🔎 inspected, no files written`. Only
after all required validation passes, use `### 📄 PDF — ✅ updated`. When a required check fails, use
`### 📄 PDF — ⛔ not deliverable`.
Pliki w paczce (6)
  • SKILL.md 6 KB
  • agents/openai.yaml 1 KB
  • references/forms.md 3 KB
  • references/recipes.md 5 KB
  • scripts/form.py 14 KB
  • scripts/profile.py 7 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · PaulRBerg/agent-skills100MIT
chris-peterson/fathom100MIT
shunwuyu/ai_lesson100MIT
rongxinzy/rongxinai100AGPL-3.0
mateaix/mateclaw100Apache-2.0
Navinspire-ia/navin100AGPL-3.0
ai-workspace-lab/xworkspace-core-skills100MIT
astrbotdevs/astrbot100AGPL-3.0
openbmb/pilotdeck100AGPL-3.0

Migawka bazy z 13.11.2026 · wersja paczki 6e1678a3e88c (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100processing-pdf
    Wyciąga dane z plików PDF, obsługuje skany przez OCR, konwertuje do tekstu, CSV i obrazów, łączy, dzieli, obraca strony oraz wypełnia formularze PDF.
  • 100pdf-batch
    Uruchamia jedno narzędzie PDFTrusted na wielu plikach lub całym folderze: kompresję, konwersję, OCR, numerację i łączenie.
  • 100document-processing
    Przetwarza dokumenty: wyciąga tekst z PDF, wykonuje OCR, konwertuje PDF i Word na markdown, wydobywa tabele, maile i dane strukturalne oraz obsługuje skany.
  • 100pdf-extractor
    Wyciąga tekst i dane z dokumentów PDF, konwertuje PDF do tekstu lub Markdown, robi OCR i obsługuje pojedyncze pliki oraz przetwarzanie wsadowe.
  • 100pdf-processing
    Sprawdza, wyciąga, rozpoznaje (OCR), tworzy, łączy, dzieli, redaguje, kompresuje i weryfikuje dokumenty PDF, zachowując pliki źródłowe i wygląd stron.
  • 90pdf-skill
    Czyta, tworzy, konwertuje i łączy pliki PDF: wyciąga tekst i tabele, wypełnia formularze, dodaje znak wodny i robi OCR.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.