notebooklm · sanjay3290 — Claude Code skill: what it does, how to install
Connects Claude Code to Google NotebookLM via Playwright browser automation to ask notebook questions, sync local documents, and export notes to JSON or Markdown.
npx skills add sanjay3290/ai-skills --skill notebooklm -a claude-codeWhat notebooklm does
This skill connects your coding agent to Google NotebookLM using Playwright browser automation scripts. All scripts run from the skill directory, output JSON to stdout, and exit with an error code on failure. You authenticate once with a persistent Chrome profile, register your notebooks by URL, and query them directly from the conversation.
Managing reference files happens through the remote manager script. It scans local directories recursively and uploads documents to your notebook. Unchanged files are skipped automatically based on content hashes. Destructive or bulk actions support a --dry-run flag to review changes beforehand.
You need Python and Playwright installed for browser automation to work. Scripts run headless by default, but transient failures can capture screenshot and HTML artifacts. If Google changes the NotebookLM interface, browser automation scripts will break until updated.
What it helps with
- query Google NotebookLM notebooks directly from the terminal
- sync local document folders to notebooks with hash deduplication
- export notebook answers and notes to Markdown or JSON
- compare responses across multiple notebooks simultaneously
Example prompts for the agent
- Ask my NotebookLM notebook about the architecture decisions in our project
- Sync the local docs directory to my NotebookLM notebook with dry run
- Compare answers from both notebooks on this release topic
How to install notebooklm
1Skills CLI (Vercel)
npx skills add sanjay3290/ai-skills --skill notebooklm -a claude-code2Manually: put the files in place
~/.claude/skills/notebooklm/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/notebooklm/
1Skills CLI (Vercel)
npx skills add sanjay3290/ai-skills --skill notebooklm -a codex2Manually: put the files in place
.agents/skills/notebooklm/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add sanjay3290/ai-skills --skill notebooklm -a cursor2Manually: put the files in place
.cursor/skills/notebooklm/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install sanjay3290/ai-skills notebooklm2Manually: put the files in place
.github/skills/notebooklm/SKILL.md1Skills CLI (Vercel)
npx skills add sanjay3290/ai-skills --skill notebooklm -a gemini-cli2Platform CLI
gemini skills install https://github.com/sanjay3290/ai-skills --path skills/notebooklmManually: put the files in place
.devin/skills/notebooklm/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add sanjay3290/ai-skills --skill notebooklm -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about notebooklm
How to install notebooklm in Claude Code?
Run npx skills add sanjay3290/ai-skills --skill notebooklm -a claude-code. The skill file is placed at ~/.claude/skills/notebooklm/SKILL.md.
What does notebooklm do during source sync?
The script scans a local folder and uploads files to the notebook. It computes file hashes to automatically skip unchanged documents and prevent duplicate uploads.
Where are persistent browser profiles saved?
Chrome profiles are stored in ~/.config/claude/notebooklm-skill/. You can override this path with the NOTEBOOKLM_DATA_DIR environment variable.
Source text
SKILL.md · Apache-2.0
--- name: notebooklm description: "Query and manage Google NotebookLM notebooks with persistent profile auth, source sync, batch/multi queries, and structured exports. Use when user asks to query NotebookLM, 'ask my notebook', shares NotebookLM notebook URLs, wants to list/create notebooks, manage sources, do bulk folder sync, dedupe, or audit exports." license: Apache-2.0 metadata: author: sanjay3290 version: "1.0" --- # NotebookLM Skill Query NotebookLM notebooks and manage notebooks/sources via Playwright browser automation. All commands run from the skill directory. All scripts output JSON to stdout and exit 1 on error. Use `--help` on any script for full flag reference. ## Workflow 1. **Authenticate**: `python scripts/auth_manager.py setup --profile <name>` 2. **Register notebook**: `python scripts/notebook_manager.py add --url <url> --name <name> --description <desc> --topics <topics>` 3. **Ask questions**: `python scripts/ask_question.py --question "..." --notebook-id <id>` 4. **Manage sources**: `python scripts/remote_manager.py add-source|sync-sources ...` ## Key Behaviors - Runs headless by default; use `--show-browser` for debugging only. - Persistent Chrome profiles stored at `~/.config/claude/notebooklm-skill/` (override with `NOTEBOOKLM_DATA_DIR`). - Hash-based dedupe: file uploads skip unchanged sources automatically. - `--dry-run` available on all destructive/bulk operations (create, add-source, delete-source, sync-sources). - `--retries N` retries transient browser failures with screenshot/HTML artifact capture. - Batch mode (`--questions "q1||q2||q3"`) and multi-notebook comparison (`--compare-notebook-ids`) supported. - Exports to JSON or Markdown via `--export-format markdown --save-notes`. - Answers include a follow-up reminder prompting Claude to ask clarifying questions before replying. ## Quick Reference ```bash # Auth python scripts/auth_manager.py setup --profile work python scripts/auth_manager.py status --profile work # Library python scripts/notebook_manager.py add --url "..." --name "..." --description "..." --topics "..." python scripts/notebook_manager.py list # Ask python scripts/ask_question.py --question "..." --notebook-id <id> python scripts/ask_question.py --questions "q1||q2" --notebook-id <id> # Sources python scripts/remote_manager.py add-source --notebook-id <id> --dir ./docs --recursive python scripts/remote_manager.py sync-sources --notebook-id <id> --dir ./docs --recursive --delete-missing --dry-run ``` For full command reference with all flags and examples, see [references/commands.md](references/commands.md).
© sanjay3290 · Apache-2.0 · sanjay3290/ai-skills
Similar skills
All skills for Browser and scraping →notebooklm by other authors comes first.