Paper Pdfのロゴ

Paper Pdf

コミュニティ
Barrios88
paper-pdf

Parse an academic paper PDF into page text, page images, tables, figures, citations, and cross-references without inventing missing cells. Use before econ-referee, or whenever a working paper PDF needs a source-faithful local reading. Flags scanned pages and unsafe tables instead of guessing values.

概要

公開者Barrios88
リポジトリbarrios-skills
スキル名paper-pdf
スター
64
フォーク
30
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Barrios88がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Paper Pdf」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Barrios88/barrios-skills/tree/main/skills/writing-and-review/paper-pdf
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Barrios88/barrios-skills.git /tmp/barrios-skills
mkdir -p .claude/skills
cp -r /tmp/barrios-skills/skills/writing-and-review/paper-pdf .claude/skills/paper-pdf
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPaper Pdfを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPaper Pdfを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Paper Pdfは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Barrios Skills — John Barrios's curated workflow for economists and accountants. Prioritize reproducible empirical work, clear identification language, and journal-ready output.

Academic paper PDF parser

Local, deterministic parser for journal and working-paper PDFs. It writes text, page images, table grids, and figure crops. It does not OCR, call a model, or fill a cell it could not read.

The artifact list follows the reading needs of a referee pass. The code is original to this collection. It is not the Ingar30/reviewer preprocessor.

When to use

  • The user hands you a paper PDF and wants tables, text, or figures you can check
  • Before econ-referee
  • A claim depends on a coefficient, sample size, or caption

Do not use it to summarize the paper or to repair a bad scan.

Setup

bash
python3 -m venv .venv
source .venv/bin/activate
pip install -r skills/writing-and-review/paper-pdf/requirements.txt

Needs Python 3.11+ and PyMuPDF. pdfplumber is the second table reader. If it is missing, the parser still runs and marks those tables single_source.

Run

bash
python skills/writing-and-review/paper-pdf/scripts/parse_paper_pdf.py \
  --pdf paper.pdf \
  --out paper-pdf-work

Optional: --paper-id my-paper and --dpi 150 (72–300). Output goes to paper-pdf-work/<paper-id>/parsed/. Re-running replaces that parsed/ folder only.

Encrypted PDFs stop with a message. Export an unlocked file. Do not try to bypass a password.

What you get

FileUse
full_text.mdBody text in reading order, running headers removed
pages/page_NNN.mdOne page, with the printed page label when one was found
page_images/page_NNN.pngThe page to read when text is unsafe
tables/table_inventory.jsonCaption, status, and paths for each extracted grid
tables/*.csvCells. Empty means empty
tables/*.pngCrop of the table
figures/figure_inventory.jsonFigure captions and crops
numbers_in_text.jsonNumber strings with surrounding words
crossrefs.jsonTable, figure, section, appendix, and equation mentions
in_text_citations.jsonAuthor-year mentions
reference_list.jsonBibliography lines after a References heading
sections.jsonHeading lines
quality.jsonPages and tables that must not be trusted as text
manifest.jsonFile hash, tool versions, counts

How to read the output

  • status: ok means PyMuPDF and pdfplumber returned the same grid.
  • single_source means only one extractor returned cells. Check the crop before quoting a coefficient.
  • unsafe means the grid is sparse or ragged. Leave those cells blank.
  • conflict means the two extractors disagree. The main CSV is empty on purpose. Each engine's grid is saved beside it. Quote the crop, not either CSV.
  • ocr_recommended pages have no text layer, or a large image and little text. Read page_images/.
  • glyph_warning pages contain control or private-use characters, usually broken math fonts. Do not guess the missing symbol.
  • Two-column pages are read down the left column, then the right. A line that spans the page stays in vertical order.
  • A line-end hyphen joined to a lowercase continuation is one word (identifica- / tion). Other hyphens stay.
  • Repeated running headers are removed from the body. They are not deleted from the page image.

Rules for the referee

  1. Quote a number from a CSV only when that table's status is ok or you have checked the crop.
  2. Never replace a blank cell with zero or with a value from a nearby row.
  3. A caption with no grid is not evidence the table was omitted from the paper. Open the page image.
  4. Year-like numbers in numbers_in_text.json are marked year_like. Do not treat a citation year as an estimate.
  5. Reference splits are candidates. A wrapped bibliography line can merge or split incorrectly. Check the page before claiming a citation is missing.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Paper Pdf」では何ができますか?

Parse an academic paper PDF into page text, page images, tables, figures, citations, and cross-references without inventing missing cells. Use before econ-referee, or whenever a working paper PDF needs a source-faithful local reading. Flags scanned pages and unsafe tables instead of guessing values.

TypingMindでPaper Pdfを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Paper Pdfはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPaper Pdfをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Barrios88/barrios-skills/tree/main/skills/writing-and-review/paper-pdfを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Paper Pdfを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Paper Pdfで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPaper Pdfを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Paper Pdf」は無料ですか?

はい。Barrios88がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇