notion-pdf-split
Skill1 starsChanged 51 days agoMITView on GitHub
ローカルPDFの先頭ページを落として複数ファイルに分割し、Notionに取り込める大きさにする。『PDFをNotionに取り込みやすくして』『表紙を外して分割して』『PDFが大きすぎてNotionに入らない』のように、Notionへ入れる前のPDF前処理を頼まれたときに使う。Notion APIは呼ばず、ローカルファイルの加工だけを行う。
In this repository8 other files it gives its agents.
- calendar-schedulingSkill
- c-strict-verifySkill
- humanizer-ja-modesSkill
- notion-figure-insertSkill
- notion-markdownSkill
- notion-routerSkill
- report-expandSkill
- typst-ja-pdfSkill
The file
Files
notion-pdf-split — Notion に入れる前に PDF を削って分割する
Notion のファイル取り込みにはサイズと処理時間の上限があり、大きなPDFはそのままでは入らないか、入っても中身が読めない状態になる。取り込む前にローカルで削って分ける。
このスキルは Notion API を呼ばない。 ローカルファイルの加工だけで完結する。ページ本文への反映は notion-router の表から別のスキルを選ぶ。
使う場面
- PDFが大きすぎて Notion に取り込めない、取り込めても扱いにくい
- 表紙・目次など、先頭の数ページが不要(例:先頭2ページを落とす)
- 対象がローカルのファイルパスにある
手順
- 入力パスが実在することを確認する
scripts/notion_pdf_split.pyを--drop-firstと--splitを付けて実行する- 出力されたページ数を確認する(削りすぎ・分割数の取り違えはここでしか気づけない)
- 出力先の絶対パスを返す
コマンド
python3 scripts/notion_pdf_split.py \
--input "/absolute/path/to/file.pdf" \
--drop-first 2 \
--split 2| 引数 | 既定 | 意味 |
--input | 必須 | 入力PDFのパス |
--drop-first | 0 | 先頭から落とすページ数 |
--split | 2 | 出力を何分割するか(1 なら分割せず削るだけ) |
--output-dir | 入力と同じ場所 | 出力先ディレクトリ |
注意点
--split 1は「分割しない」。先頭を削ったファイルが1つだけ出る。無効値ではない- 出力は既定で入力と同じフォルダに書かれる。元ファイルは残る
pypdfが無ければ一時的な venv に入れて、その Python で実行する- 落としたページは復元できない。元ファイルを上書きしないことを確認してから実行する
関連
Notion系スキルの使い分けは notion-router の表を参照。本スキルはファイルの前処理であり、notion-figure-insert(PDF中の図をページ本文へ挿入)とは関心が異なる。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

