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

pdf2name

/pdf2name

Zmienia nazwy PDF-ów z rachunkami, wyciągami i fakturami na standardowy format na podstawie ich zawartości: data, identyfikator konta, źródło, kwota i opis.

Licencja
MIT
Ostatnia zmiana repozytorium
27.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
2
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.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ą
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scan.py

Co robi i kiedy

Zmienia nazwy PDF-ów z rachunkami, wyciągami i fakturami na standardowy format na podstawie ich zawartości: data, identyfikator konta, źródło, kwota i opis.

Wyzwalacze z opisu

s internals and renames it to

Argumenty

/pdf2name [PDF file or folder of PDFs]
Oryginalny opis (EN)

Use when someone asks to rename PDFs to the standard filename format, name or file bill/statement/invoice PDFs, clean up PDF filenames from their contents, or run pdf2name. Reads each PDF's internals and renames it to "YYMMDD accountID source $amount description.pdf".

Jak działa

  1. What This Skill Does
  2. Steps
  3. Output (confirmation table)
  4. Prerequisites
  5. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 70 linii, 693 słów
Podgląd SKILL.md
---
name: pdf2name
description: Use when someone asks to rename PDFs to the standard filename format, name or file bill/statement/invoice PDFs, clean up PDF filenames from their contents, or run pdf2name. Reads each PDF's internals and renames it to "YYMMDD accountID source $amount description.pdf".
disable-model-invocation: true
argument-hint: [PDF file or folder of PDFs]
allowed-tools: Bash, Read, Glob
---

## What This Skill Does

Opens PDF(s), reads what's actually inside, and renames each to the **standard filename**:

```
YYMMDD accountID source $amount description.pdf
```

Example: `250502 305 citimortgage $837.89 mortgage bill.pdf`

| Field | Meaning | How to determine it |
|---|---|---|
| `YYMMDD` | The document's **own** date | Prefer statement/bill/invoice date; fall back to service-period end, then due date. 2-digit year. |
| `accountID` | Which account | **For houses: the abbreviated street address** (e.g. `305` for 305 Mesquite, `1028` for 1028 Quail Valley). Otherwise the account holder/number. |
| `source` | Institution / vendor | Lowercase, short: `citimortgage`, `wellsfargo`, `cityofwater`, `atmos`, `farmers`. |
| `$amount` | The bill/payment amount | The amount due / payment / total charges, as `$xxx.xx`. |
| `description` | What the doc is | Short, abbreviated: `mortgage bill`, `water bill`, `electric bill`, `insurance`, `escrow analysis`. |

Naming this way makes the files sort chronologically and feeds directly into the `source2pdf` skill (which merges a `_sources/` folder in filename order).

## Steps

1. **Resolve the target** from `$ARGUMENTS`: a single `.pdf`, or a folder of PDFs (top-level by default; pass `--recursive` to the scan if the user wants nested). If no argument, ask for the path.

2. **Scan candidate fields** — run the helper to pull dates, amounts, institution and address keywords from each PDF:
   ```bash
   python3 ~/.claude/skills/pdf2name/scan.py "$ARGUMENTS"
   ```
   For any file the scanner marks as **"no extractable text"** (scanned image), open it with the Read tool to inspect it visually instead.

3. **Compose each field yourself** from the scan output + your own reading. The scanner suggests; you decide:
   - **Date** → convert the chosen `YYYYMMDD` to `YYMMDD`. Pick the *statement/bill* date, not the due date, unless only a due date exists.
   - **accountID** → for a property, abbreviate the address to its street number (or number + short street if numbers collide, e.g. `305 mesquite`). For other accounts, use a short stable identifier. If you can't tell the account, flag the file — don't guess.
   - **source** → normalize the institution to a short lowercase token.
   - **amount** → the primary amount due/paid. If a statement has several, use the total payment/amount due.
   - **description** → 1–3 words. Use `escrow analysis` for escrow docs (they file separately from monthly `mortgage bill`s).

4. **Propose renames as a table** (old → new) for the whole batch, and ask the user to confirm. Do NOT rename before confirmation (mode: infer + confirm).
   - Sanitize: no `/`, no newlines; collapse repeated spaces; keep the `$`.
   - If a required field can't be determined, list the file under "needs input" with what's missing — leave it unrenamed rather than inventing a value.

5. **On confirmation, rename in place** with `mv` (same directory; this skill renames, it does not move between folders). Handle collisions by appending ` (2)`, ` (3)`. Report every rename and every skipped file.

## Output (confirmation table)

```
Proposed renames (N files):
  OLD                                   ->  NEW
  citimortgage statements.pdf           ->  250502 305 citimortgage $837.89 mortgage bill.pdf
  scan0007.pdf                          ->  240115 1028 cityofwater $64.20 water bill.pdf

Needs input (not renamed):
  weird-doc.pdf  — no amount found; is this a statement or a notice?

Rename these? (yes / edit / skip)
```

## Prerequisites

Needs `pdftotext`, `pdfinfo` (poppler); `qpdf` optional (lets the scanner read encrypted statements). Install: `brew install poppler qpdf`.

## Notes

- **Read before renaming.** The filename on disk is often wrong or misleading — always derive fields from the PDF's contents, never from its current name.
- **Watch for mailing vs property address.** On statements for a property held by an estate/LLC, the printed address may be the *mailing* address, not the property. Disambiguate by loan/account number or payment amount, and use the **property** for `accountID`.
- **Don't fabricate.** If the date, amount, or account is genuinely unreadable, surface it for the user rather than guessing.
- **This skill only renames** (stays in the same folder). Moving files into house/account folders, or merging into a super-PDF, is out of scope — hand off to `source2pdf` for the merge step.
- Escrow analyses get `description = escrow analysis` so they can be separated from `mortgage bill` statements downstream.
Pliki w paczce (2)
  • SKILL.md 5 KB
  • scan.py 5 KB

Wersje

W bazie nie ma innych skilli o nazwie pdf2name.

Migawka bazy z 13.11.2026 · wersja paczki 68be24b1dd5c (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

  • 91Pdf
    Prawdopodobnie obsługuje pliki PDF, czyli ich odczyt i przetwarzanie, na podstawie nazwy skilla i krótkiego opisu.
  • 100pdf
    Przetwarza PDF-y: wyciąga tekst, tworzy nowe pliki i łączy dokumenty.
  • 100pdf-documents
    Tworzy PDF-y z szablonów, HTML, Markdown lub URL, konwertuje Worda i Excela, łączy pliki: faktury, raporty i certyfikaty.
  • 100pdf-processing
    Wyciąga tekst i tabele z PDF-ów, wypełnia formularze i łączy kilka plików PDF w jeden.
  • 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
    Czyta i wyciąga tekst lub tabele z PDF-ów, łączy, dzieli, obraca i stempluje strony oraz wypełnia formularze.

Uwagi i zgłoszenia

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