Pratik Singhal

nano-banana-pdf-edit

オフィス効率化v1.0.1
作者:Pratik Singhal更新日 2026-05-17全 2 バージョン · 最新版の公開日 2026-02-21nano-banana-pdf-skill@clawhub_ps06756/nano-banana-pdf-skill
PDF 処理#PDF

AlphaMoatによると、2026-09時点でnano-banana-pdf-editのダウンロード数は1,828、スター数は3で、AIスキル全体5,078件中4,558位、オフィス効率化では435件中360位です。

インストール数
150
ダウンロード数
1828
スター数
3
総合順位
#4,558
全体の上位 90% · オフィス効率化の上位 83%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗5017743-
SkillHub ↗15018283—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

PDFページを画像に変換し、視覚編集のためGoogle Geminiに送信してからPDFに戻し、OCRでテキスト層を復元します。コマンドライン依存関係と有料Gemini APIが必要です。ページ画像や、処理によっては文書全文がGoogleに送信される可能性があります。文書の外部処理が許可されていることを確認し、依存関係のインストール、有料APIの利用、文書内容の送信前に明確な承認を得てください。機密・規制対象・顧客文書にはデータポリシーを適用し、視覚結果とOCRテキストの両方を確認してください。 記載の処理には nano-pdf、Poppler、Tesseract、有料の GEMINI_API_KEY が必要です。

資料公開日 2026-10-29

できること

  • PDFページの文字、図表、見た目を修正する
  • 既存のプレゼンテーションやレポートにビジュアルページを追加する
  • 明示的な許可の後にPDFの複数ページを一貫して編集する

使う場面

  • ユーザーがAIによるPDFの視覚編集を明示的に依頼し、外部モデル処理が許可されているとき
  • データポリシー、依存関係、有料API利用、出力先を確認した後

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

Geminiに送信される文書内容、費用の可能性、必要な依存関係を先に説明し、編集案を提示してください。依存関係のインストール、ファイルのアップロード、API呼び出しは行わないでください。

月次の推移

ダウンロード数1828
592125619202026-03 · ダウンロード数 6842026-05 · ダウンロード数 12032026-06 · ダウンロード数 13332026-07 · ダウンロード数 15512026-08 · ダウンロード数 16522026-09 · ダウンロード数 182826-0326-09
スター数3
2332026-03 · スター数 22026-05 · スター数 32026-06 · スター数 32026-07 · スター数 32026-08 · スター数 32026-09 · スター数 326-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-091828—3
2026-081652+6.5%3
2026-071551+16.4%3
2026-061333+10.8%3
2026-051203—3
2026-03684—2

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

5.8 KB・ClawHub v1.0.1
---
name: nano-pdf-edit
description: Edit PDF files visually using natural language with the nano-pdf CLI tool, powered by Google's Gemini 3 Pro Image (Nano Banana). Use this skill whenever the user wants to edit, modify, or update PDF slides or pages using AI — including fixing typos, updating charts/graphs, changing colors or branding, adding new slides, modifying text, or making any visual change to a PDF deck or report. Also trigger when the user mentions "nano-pdf", "nano pdf", "edit my pdf", "update my slides", "fix my deck", or wants AI-powered changes to PDF content. Even if the user just says "change the title on page 3" or "fix the typo on slide 5" for a PDF file, this skill applies. Do NOT use for extracting text, merging/splitting PDFs, filling forms, or other non-visual PDF operations.
version: 1.0.1
metadata:
   openclaw:
      requires:
         env:
            - GEMINI_API_KEY
         bins:
すべて表示(全 123 行)
            - python3
      primaryEnv: GEMINI_API_KEY
      emoji: "📄"
      homepage: https://github.com/ps06756/nano-banana-pdf-skill
---

# Nano PDF Editing Skill

Edit PDF files with natural language prompts using the **nano-pdf** CLI tool.

Nano-PDF converts PDF pages to images, sends them to Google's Gemini 3 Pro Image with your edit instructions, then stitches the AI-edited pages back into the PDF — preserving searchable text via OCR re-hydration.

**Source**: https://github.com/gavrielc/Nano-PDF

## Prerequisites

Before running any nano-pdf command, ensure the following dependencies are installed. If any are missing, install them before proceeding:

1. **nano-pdf** — `pip install nano-pdf` (or use `uvx nano-pdf` to run without installing)
2. **poppler** — PDF-to-image rendering (`brew install poppler` on macOS / `sudo apt-get install poppler-utils` on Linux)
3. **tesseract** — OCR for text layer restoration (`brew install tesseract` on macOS / `sudo apt-get install tesseract-ocr` on Linux)
4. **GEMINI_API_KEY** — A **paid** Google Gemini API key (free tier does not support image generation). Get one at https://aistudio.google.com/api-keys — then `export GEMINI_API_KEY="your_key"`

## Two Commands

### `nano-pdf edit` — Modify existing pages

```bash
nano-pdf edit <file.pdf> <page> "<prompt>" [<page> "<prompt>" ...] [options]
```

Pages are 1-indexed. Multiple page+prompt pairs can be provided and are processed in parallel.

### `nano-pdf add` — Insert new AI-generated slides

```bash
nano-pdf add <file.pdf> <position> "<prompt>" [options]
```

Position 0 inserts at the beginning. The new slide automatically matches the visual style of the existing deck. Document context is enabled by default for `add`.

## Options Reference

For full details on all available flags, read `references/options.md` in this skill directory.

Key flags:
- `--output "new.pdf"` — Output filename (default: `edited_<original>.pdf`)
- `--resolution "4K"` — `4K` (default), `2K`, or `1K`
- `--style-refs "1,5"` — Pages to use as style references
- `--use-context` / `--no-use-context` — Include full PDF text as model context
- `--disable-google-search` — Prevent model from using Google Search

## Workflow

When a user asks to edit a PDF:

1. **Check dependencies** — Ensure nano-pdf, poppler, tesseract, and GEMINI_API_KEY are available. If any are missing, tell the user what to install and stop.
2. **Identify the edit** — Determine which page(s) need changes and what the prompt should be
3. **Choose the right command** — `edit` for modifying existing pages, `add` for inserting new ones
4. **Pick appropriate options**:
   - Use `--style-refs` if the user wants a specific visual style from certain pages
   - Use `--use-context` when editing multiple pages that need to be consistent
   - Use `--resolution "2K"` if speed matters more than quality
5. **Run nano-pdf** and present the output PDF to the user

## Prompt Writing Tips

The quality of the edit depends heavily on the prompt. Follow these guidelines:

- **Be specific**: "Change the title from 'Overview' to 'Q3 Summary'" beats "update the title"
- **Reference visible elements**: "The bar chart on the left side" helps the model locate what to change
- **One focused change per prompt**: For complex edits, use multiple page+prompt pairs
- **Mention what to preserve**: "Keep the layout the same but change the header color to blue"
- **Use style refs for consistency**: When updating branding across pages, point at a reference page

## Examples

For a comprehensive set of examples covering common use cases (typos, charts, branding, adding slides, batch edits), read `references/examples.md` in this skill directory.

Quick reference:

```bash
# Fix a typo on page 3
nano-pdf edit report.pdf 3 "Fix 'recieve' to 'receive'"

# Update chart data
nano-pdf edit deck.pdf 12 "Update the revenue chart to show Q3 at $2.5M"

# Multi-page branding update
nano-pdf edit slides.pdf \
  1 "Change header background to dark blue, text to white" \
  2 "Update the logo to show 'NewCorp' instead of 'OldCorp'" \
  --style-refs "1" --output branded.pdf

# Add a new title slide at the beginning
nano-pdf add deck.pdf 0 "Title slide: 'Annual Review 2025' with subtitle 'Building the Future'"

# Add a summary slide after page 5 using document context
nano-pdf add deck.pdf 5 "Summary slide with key takeaways as bullet points"
```

## Troubleshooting

| Issue | Solution |
|-------|----------|
| `Missing system dependencies` | Install missing deps (see Prerequisites above), restart terminal |
| `GEMINI_API_KEY not found` | `export GEMINI_API_KEY="your_key"` |
| `PAID API key required` | Enable billing at https://aistudio.google.com/api-keys |
| Style mismatch | Use `--style-refs "1,3"` pointing at pages with desired style |
| Slow processing | Use `--resolution "2K"` or `"1K"` |
| Bad OCR / text layer | Use `--resolution "4K"` for better OCR accuracy |
| Model ignores part of prompt | Break into smaller, focused edits across multiple runs |

オフィス効率化の人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。