pdf-to-wiki

pdf-to-wiki is a command for Claude Code from capitalparser/notebooklm-wiki-pipeline. It costs 0 tokens per session (2,496 once invoked), scanned A, original, MIT.

A workflow for sending a large PDF from Google Drive to NotebookLM, Google's document-analysis tool, and saving the resulting notes as Obsidian markdown files. It passes the file link rather than reading the PDF directly.

In plain words
What is it for?
Use it to turn large Drive PDFs into searchable wiki notes, organise them in an Obsidian vault, and ask questions about a selected group of documents.
Why use it?
It avoids putting the entire PDF into the coding assistant's working context. Reusing a topic notebook can also connect the new document with related sources.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/notebook_registry.py \.

Good fit Use it to turn large Drive PDFs into searchable wiki notes, organise them in an Obsidian vault, and ask questions about a selected group of documents.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/capitalparser/notebooklm-wiki-pipeline
agentmods
npx agentmods add commands/capitalparser/notebooklm-wiki-pipeline/pdf-to-wiki

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pdf-to-wiki

README.md
[![agentmods](https://agentmods.dev/badge/commands/capitalparser/notebooklm-wiki-pipeline/pdf-to-wiki/github.svg)](https://agentmods.dev/commands/capitalparser/notebooklm-wiki-pipeline/pdf-to-wiki)
Your own site
<a href="https://agentmods.dev/commands/capitalparser/notebooklm-wiki-pipeline/pdf-to-wiki"><img src="https://agentmods.dev/badge/commands/capitalparser/notebooklm-wiki-pipeline/pdf-to-wiki/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pdf-to-wiki

Your own site · 80×15
<a href="https://agentmods.dev/commands/capitalparser/notebooklm-wiki-pipeline/pdf-to-wiki"><img src="https://agentmods.dev/badge/commands/capitalparser/notebooklm-wiki-pipeline/pdf-to-wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02496
Opus 5 $0.00000 $0.01248
Sonnet 5 $0.00000 $0.00499
Haiku 4.5 $0.00000 $0.00250

Measured 10d ago against content hash 6b4df8bce789, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

pdf-to-wiki scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/pdf-to-wiki.md · 245 lines

How it starts

The opening of the file, as written. The whole thing — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/pdf-to-wiki

Drive에 있는 대용량 PDF를 NotebookLM에 외주화하여 분석하고, 결과를 OUTPUT_DIR에 Obsidian 노트로 저장한다.

기본 출력 경로:

OUTPUT_DIR=~/vault/00_Wiki/AI_Generated

설치 후 위 경로를 본인 Obsidian vault의 저장 위치로 바꿔라.

중요: PDF 파일 내용을 직접 읽지 않는다. Drive URL만 NotebookLM에 전달한다. mcp__claude_ai_Google_Drive__download_file_content 호출 금지.

사용법

/pdf-to-wiki <drive_url_or_file_id> [wiki_title] [--topic topic_id]
  • drive_url_or_file_id: Google Drive 파일 URL 또는 파일 ID
  • wiki_title (선택): 생성할 Wiki 노트 제목. 생략 시 파일명에서 추론.
  • --topic (선택): config/notebooks.example.json 형식의 registry에 있는 주제 ID. 지정하면 해당 NotebookLM 노트북을 재사용한다.

Notebook 재사용 정책

기본 정책은 여전히 안전한 single_source_notebook이다. 주제가 불명확하거나 registry에 없는 자료는 새 NotebookLM 노트북을 만든다.

주제별 Notebook 재사용은 아래 조건에서만 수행한다.

  • 사용자가 --topic을 명시했거나, 제목이 registry의 routing_keywords와 매칭됨
  • 해당 topic의 NotebookLM 노트북이 문서 세트 관점에서 좁게 정의되어 있음
  • 같은 Drive file ID가 이미 sources에 있으면 source를 다시 추가하지 않고 기존 source를 재사용함

재사용의 이점:

  • 같은 주제의 기존 PDF와 신규 PDF를 한 노트북에서 비교할 수 있음
  • 기존 기준서, 리포트, 메모와 연결되는 개념을 NotebookLM이 더 잘 찾을 수 있음
  • topic-level 질문에서는 누적 문서 세트 전체를 대상으로 답변을 받을 수 있음

단, 신규 PDF 노트를 만들 때는 답변 오염을 막아야 한다. 같은 NotebookLM 노트북에 있는 이전 PDF까지 섞여 답변될 수 있으므로, 기본 notebook_query는 MCP 인자의 source_ids=[target_source_id]로 대상 PDF source만 지정한다. 프롬프트에서도 대상 PDF만 primary scope로 제한하고, 기존 PDF는 비교/연결 섹션에서만 참고하게 한다.

기본 추출 모드는 source_scoped_topic_query다.

  • 대상 PDF를 topic notebook에 추가하거나 이미 등록된 source를 찾는다.
  • 신규 Wiki 노트용 notebook_query는 topic notebook에서 실행하되 MCP 인자 source_ids=[target_source_id]를 전달하고, 프롬프트에도 target source_id 또는 drive_file_id를 명시한다.
  • 기존 topic source는 비교/연결 섹션에서만 사용한다.
  • MCP schema가 특정 source 지정 query를 지원하지 않거나 불명확할 때만 single_source_first를 fallback으로 사용한다.

라우팅 결정은 로컬 helper로 먼저 확인할 수 있다.

python3 scripts/notebook_registry.py \
  "https://drive.google.com/file/d/YOUR_FILE_ID/view" \
  --title "K-IFRS 1109 금융상품" \
  --topic audit-accounting \
  --registry config/notebooks.local.json

실행 절차

아래 단계를 순서대로 실행한다. notebooklm-mcp 서버가 활성화되어 있어야 한다. 인증 오류 발생 시: nlm login 실행 후 재시도.

Read the full file on GitHub · 245 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 245 lines · 0 tokens per session scan A 6b4df8bce789

Subscribe to this mod's changes

pdf-to-wiki is a command published in the GitHub repository capitalparser/notebooklm-wiki-pipeline (93 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,496 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.