jpskill.com
💼 ビジネス コミュニティ

prettify-pdf

領収書や請求書、履歴書などのPDFを、IDや日付、金額といった重要な情報を保持しつつ、見やすく再デザインしたり品質チェックしたりするSkill。

📜 元の英語説明(参考)

Redesign or QA PDFs for clarity while preserving IDs, dates, amounts, barcodes, QR codes, seals, signatures, labels, and meaning. Use for receipts, invoices, forms, tickets, resumes, reports.

🇯🇵 日本人クリエイター向け解説

一言でいうと

領収書や請求書、履歴書などのPDFを、IDや日付、金額といった重要な情報を保持しつつ、見やすく再デザインしたり品質チェックしたりするSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o prettify-pdf.zip https://jpskill.com/download/19850.zip && unzip -o prettify-pdf.zip && rm prettify-pdf.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19850.zip -OutFile "$d\prettify-pdf.zip"; Expand-Archive "$d\prettify-pdf.zip" -DestinationPath $d -Force; ri "$d\prettify-pdf.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して prettify-pdf.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → prettify-pdf フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
6

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Prettify PDF

コアアイデア

読者が最初に注目すべき点に基づいてPDFを再設計し、元のPDFを証拠として扱います。この作業は「きれいにすること」ではなく、「意味を変えずに使いやすくすること」です。

このスキルには、ホストされたサービス、APIキー、またはモデルプロバイダーの要件はありません。現在の環境で利用可能なローカルのPDF、画像、HTML、またはドキュメントツールを使用してください。

互換性

これは純粋なエージェントスキルです。SKILL.mdを読み取り、オプションでローカルスクリプトを実行できる任意のエージェント環境で動作するはずです。OpenAI、Anthropic、ホストされたモデル、APIキー、MCPサーバー、Webアプリ、またはクラウドサービスは必要ありません。

ワークフロー

  1. 設計する前に元のPDFを検査します。

    • 可能な場合はテキストを抽出します。
    • ページを画像としてレンダリングし、レイアウトを視覚的に検査します。
    • 可能な場合は埋め込み画像を抽出します。特にQRコード、バーコード、ロゴ、印鑑、スタンプ、署名などです。
    • scripts/pdf_guardrails.pyが利用可能でPyMuPDFがインストールされている場合は、それを実行してソースマニフェストを作成します。
  2. 保存リストを作成します。

    • 識別子をロックします: 申請番号、領収書番号、請求書番号、UID値、取引ID、銀行参照、予約ID、ライセンス番号、税ID。
    • 運用上の事実をロックします: 日付、時刻、期限、金額、合計、住所、場所、必要書類、資格ルール、法的注記。
    • 個人および組織の事実をロックします: 氏名、親の名前、会社名、オフィス、連絡先の詳細、役職、認定資格。
    • 機械可読アセットをソース画像としてロックします: QRコード、バーコード、検証マーク、印鑑、署名、スタンプ、公式ロゴ。
    • マッピングが明確でない限り、ソースラベルを保持します。ソースがApplicant Nameの下に2つの名前行を配置している場合、両方をApplicant Nameの下に保持します。位置のみからFatherGuardianOwner、またはその他の関係を推測しないでください。
    • ロックされた値内の大文字、句読点、区切り文字、および間隔を保持します。ソースにすでにその形式が含まれていない限り、通貨接頭辞を追加したり、コンマの間隔を正規化したり、テキストをタイトルケースにしたり、ロックされたフィールドを「クリーンアップ」したりしないでください。
  3. 読者のパスを設計します。

    • 最も重要な事実を上部の要約ストリップまたは優先度カードに配置します。
    • 予約の場合: 日付、時刻、場所、必要な到着/行動、申請者、参照番号を最初に表示します。
    • 領収書/請求書の場合: 金額、領収書/請求書番号、日付、受取人/オフィス、取引参照、手数料/明細の内訳を最初に表示します。
    • 履歴書の場合: 氏名、希望する役割、連絡先、最も強力な証明ポイント、スキル、最近の経験を最初に表示します。
    • 提案書/レポートの場合: タイトル、クライアント/対象者、目的、決定点、タイムライン、次の行動を最初に表示します。
  4. 控えめに再設計します。

    • ロックされた値を正確にコピーします。より分かりやすい解釈が役立つ場合は、元の値の横に追加し、置き換えないでください。
    • ユーザーが明示的に削除を要求しない限り、元のヘッダーと発行機関のテキストは表示されたままにします。
    • アイコン、ラベル、キャプション、印鑑、または装飾要素が値と同じ視覚空間を共有することを決して許容しないでください。すべてのID、日付、時刻、金額、名前に、予想される最長の値に十分な幅を持つ独自の安定したボックスまたは行を与えます。
    • QR/バーコード/ロゴ/印鑑/署名/スタンプ画像を正確に保持します。それらを再作成、再着色、トリミング、フィルター処理、ぼかし、またはトレースしないでください。
    • 読者が生のテーブルから意味を推測しないように、明確なラベルを使用します。
    • 色を意味的に使用します: 識別には強いヘッダー色、支払い済み/成功/合計には緑色または類似の色、警告/到着/期限には琥珀色、本文テキストにはニュートラルな色。
    • 小さなアイコンはスキャン補助としてのみ使用し、目に見えるテキストラベルの代わりには決して使用しないでください。
    • タイポグラフィは読みやすく、印刷に適した状態に保ちます。安定したページ寸法、余白、間隔を使用します。
  5. 納品前に検証します。

    • 最終PDFを画像としてレンダリングし、すべてのページを検査します。
    • 保存リストのすべてのロックされた値が正確に存在することを確認します。
    • 機械可読アセットがソースから変更されずに表示されていることを確認します。
    • テキストがクリップされていないか、重なっていないか、コントラストが低すぎないか、曖昧でないかを確認します。
    • ソースのレンダリング画像と最終PDFのレンダリング画像を視覚的に比較します。アクティブな視覚対応モデル、レビュアー、またはユーザー向けLLMビューに、名前、ID、日付、時刻、金額、テーブル値、バーコード/QRの視認性、およびラベルの意味における不一致を特定するよう依頼します。
    • テキスト抽出で値が存在すると示されていても、衝突、クリップされた値、曖昧な再ラベル付け、または機械可読アセットの欠落は、ブロックする失敗として扱います。
    • 機密性の高いPDFの最終確認については、references/quality-checklist.mdを読んでください。

出力期待値

ユーザーが変換されたファイルを要求した場合は、最終的に再設計されたPDFを配信します。役立つ場合は、それをレンダリングするために使用されたHTML/ソースアーティファクトも提供します。

最終応答には以下を含めます。

  • 最終PDFのパス。
  • 作成された場合、サポートするソースパス。
  • チェックされた重要なフィールドと機械可読アセットを記載した短い検証メモ。
  • OCR、バーコードデコード、または視覚的レンダリングが実行できなかった場合の明確な制限。

オプションのヘルパー

決定論的なソースマニフェストが必要な場合は、scripts/pdf_guardrails.pyを使用してください。

python scripts/pdf_guardrails.py input.pdf --out /tmp/prettify-pdf-check

抽出されたテキスト、重要な事実の候補、埋め込み画像アセット、およびページレンダリングを書き込みます。このスクリプトはオプションであり、ローカル専用です。外部サービスを呼び出しません。

設計ルール

  • 表現を改善する前に、正確なソース値を保持します。
  • 元のテキストを置き換えずに、役立つコンテキストを追加します: 10.00AM-11.00AM1 hour appointment windowと組み合わせることができます。両方を保持します。
  • すべてのフィールドではなく、高価値フィールドに要約カードを使用します。
  • 明細、合計、取引参照、または構造化データにはテーブルを保持します。
  • ユーザーがブランド/タイプ方向を提供しない限り、システムフォントを優先します。
  • アイコンは小さく、シンプルで、テキストと組み合わせて使用します。
  • 信頼性を低下させる装飾的な効果は避けてください: 濃いグラデーション、低コントラストのテキスト、ぼやけた背景

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Prettify PDF

Core Idea

Redesign the PDF around what the reader needs to notice first, while treating the source PDF as evidence. The work is not "make it pretty"; it is "make it easier to use without changing what it means."

This skill has no hosted service, API key, or model-provider requirement. Use whatever local PDF, image, HTML, or document tools are available in the current environment.

Compatibility

This is a pure Agent Skill. It should work in any agent environment that can read SKILL.md and optionally run local scripts. No OpenAI, Anthropic, hosted model, API key, MCP server, web app, or cloud service is required.

Workflow

  1. Inspect the source PDF before designing.

    • Extract text when possible.
    • Render pages to images and visually inspect layout.
    • Extract embedded images when possible, especially QR codes, barcodes, logos, seals, stamps, and signatures.
    • If scripts/pdf_guardrails.py is available and PyMuPDF is installed, run it to create a source manifest.
  2. Build a preservation list.

    • Lock identifiers: application numbers, receipt numbers, invoice numbers, UID values, transaction IDs, bank references, booking IDs, license numbers, tax IDs.
    • Lock operational facts: dates, times, deadlines, amounts, totals, addresses, locations, required documents, eligibility rules, legal notes.
    • Lock personal and organization facts: names, parent names, company names, offices, contact details, titles, certifications.
    • Lock machine-readable assets as source images: QR codes, barcodes, verification marks, seals, signatures, stamps, official logos.
    • Preserve source labels unless the mapping is unambiguous. If the source puts two name lines under Applicant Name, keep both under Applicant Name; do not infer Father, Guardian, Owner, or another relationship from position alone.
    • Preserve capitalization, punctuation, separators, and spacing inside locked values. Do not add currency prefixes, normalize comma spacing, title-case text, or otherwise "clean up" a locked field unless the source already contains that form.
  3. Design the reader path.

    • Put the most important facts in a top summary strip or priority cards.
    • For appointments: show date, time, place, required arrival/action, applicant, and reference number first.
    • For receipts/invoices: show amount, receipt/invoice number, date, payee/office, transaction references, and fee/line-item breakdown first.
    • For resumes: show name, target role, contact, strongest proof points, skills, and recent experience first.
    • For proposals/reports: show title, client/audience, objective, decision points, timeline, and next action first.
  4. Redesign conservatively.

    • Copy locked values exactly. If a friendlier interpretation helps, add it next to the original value instead of replacing it.
    • Keep original headers and issuing-agency text visible unless the user explicitly asks to remove them.
    • Never let icons, labels, captions, seals, or decorative elements share the same visual space as values. Give every ID, date, time, amount, and name its own stable box or row with enough width for the longest expected value.
    • Preserve QR/barcode/logo/seal/signature/stamp images exactly. Do not recreate, recolor, crop, filter, blur, or trace them.
    • Use clear labels so the reader does not infer meaning from raw tables.
    • Use color semantically: strong header color for identity, green or similar for paid/success/total, amber for warnings/arrival/deadlines, neutral body text.
    • Use small icons only as scanning aids, never as a replacement for visible text labels.
    • Keep typography readable and print-safe. Use stable page dimensions, margins, and spacing.
  5. Validate before delivery.

    • Render the final PDF to images and inspect every page.
    • Check all locked values from the preservation list are present exactly.
    • Confirm machine-readable assets are visible and unchanged from the source.
    • Confirm no text is clipped, overlapping, too low contrast, or ambiguous.
    • Compare a rendered image of the source and a rendered image of the final PDF visually. Ask the active vision-capable model, a reviewer, or the user-facing LLM view to identify any discrepancy in names, IDs, dates, times, amounts, table values, barcode/QR visibility, and label meaning.
    • Treat any collision, clipped value, ambiguous relabeling, or missing machine-readable asset as a blocking failure even when text extraction says the value is present.
    • Read references/quality-checklist.md for a fuller final pass on sensitive PDFs.

Output Expectations

Deliver a final redesigned PDF when the user asks for a transformed file. If helpful, also provide the HTML/source artifact used to render it.

In the final response, include:

  • The final PDF path.
  • Any supporting source path, if created.
  • A short verification note naming the critical fields and machine-readable assets checked.
  • A clear limitation if OCR, barcode decoding, or visual rendering could not be performed.

Optional Helper

Use scripts/pdf_guardrails.py when you want a deterministic source manifest:

python scripts/pdf_guardrails.py input.pdf --out /tmp/prettify-pdf-check

It writes extracted text, critical-fact candidates, embedded image assets, and page renders. The script is optional and local-only; it does not call an external service.

Design Rules

  • Preserve exact source values before improving wording.
  • Add helpful context without replacing original text: 10.00AM-11.00AM can be paired with 1 hour appointment window; keep both.
  • Use summary cards for high-value fields, not for every field.
  • Keep tables for line items, totals, transaction references, or structured data.
  • Prefer system fonts unless the user provides a brand/type direction.
  • Keep icons small, simple, and paired with text.
  • Avoid decorative effects that reduce trust: heavy gradients, low-contrast text, blurred backgrounds, fake stamps, fake signatures, fake QR codes.
  • Never invent missing fields. Omit unknown values or mark them only if the source explicitly marks them.

Common Pitfalls

  • A visually nicer PDF that loses the barcode is worse than the original.
  • Reformatting IDs can break verification. Copy them exactly.
  • "Cleaning up" timestamps, names, totals, or addresses can change meaning. Add a friendly hint beside the exact value instead.
  • Relabeling an adjacent value can change identity. If the source label is unclear, keep the original label/value grouping instead of inventing a better-sounding label.
  • Text extraction can pass while the PDF is visually wrong. Final acceptance depends on rendered-page inspection, not extraction alone.
  • A beautiful hierarchy that hides the next action fails the task.
  • If the source is scanned, OCR may be incomplete. Say so and visually verify the final result.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。