Notebooklm logo

Notebooklm

Community
rainday
notebooklm

Query Google NotebookLM notebooks for source-grounded, citation-backed answers from user-uploaded documents. Manages notebook library, handles Google authentication, and supports smart discovery. Works standalone via /smart-blog-skills:notebooklm or internally from write and blog-researcher for Tier 1 research data. Falls back gracefully when not configured. Use when user says "notebooklm", "notebook", "query notebook", "ask notebook", "notebook research", "source grounded research", "document query", "notebook library".

Overview

Publisherrainday
Repositorysmart-blog-skills
Skill namenotebooklm
Stars
34
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by rainday on GitHub. Read the source before you install it.

Installation

Install the Notebooklm AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/rainday/smart-blog-skills/tree/main/skills/notebooklm
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rainday/smart-blog-skills.git /tmp/smart-blog-skills
mkdir -p .claude/skills
cp -r /tmp/smart-blog-skills/skills/notebooklm .claude/skills/notebooklm
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Notebooklm in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Notebooklm on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Notebooklm is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Blog NotebookLM -- Source-Grounded Research from Your Documents

Query Google NotebookLM notebooks directly from Claude Code for citation-backed answers from Gemini. Each question opens a headless browser session, retrieves the answer exclusively from your uploaded documents, and closes. Responses are Tier 1 quality (user's own primary sources) -- zero hallucination risk. Answers satisfy the FLOW evidence triple: use the returned source title as the inline citation and the notebook URL plus retrieval date as the bibliography entry.

Quick Reference

CommandWhat it does
/smart-blog-skills:notebooklm ask <question>Query a notebook for source-grounded answers
/smart-blog-skills:notebooklm discover <url>Smart-discover notebook content before cataloging
/smart-blog-skills:notebooklm library listList all notebooks in library
/smart-blog-skills:notebooklm library add <url>Add a notebook to library
/smart-blog-skills:notebooklm library search <query>Search notebooks by keyword
/smart-blog-skills:notebooklm library remove <id>Remove a notebook from library
/smart-blog-skills:notebooklm setupOne-time Google authentication (browser visible)
/smart-blog-skills:notebooklm statusCheck authentication status
/smart-blog-skills:notebooklm cleanupClean browser state (preserves library)

Prerequisites

  • Google account with NotebookLM access
  • Python 3.11+ (venv managed automatically by run.py)
  • Google Chrome (installed automatically on first run via Patchright)
  • One-time authentication setup (interactive Google login in visible browser)

Always Use run.py Wrapper

NEVER call scripts directly. ALWAYS use python3 scripts/run.py [script]:

bash
# CORRECT:
python3 scripts/run.py auth_manager.py status
python3 scripts/run.py ask_question.py --question "..."

# WRONG -- fails without venv:
python3 scripts/auth_manager.py status

Auth Check (Gate Pattern)

Before any query operation, check authentication:

bash
python3 scripts/run.py auth_manager.py status
  • If authenticated: proceed with the query
  • If not authenticated: inform user and guide to setup: "NotebookLM requires Google login. Run /smart-blog-skills:notebooklm setup to authenticate."
  • When called internally (from write or blog-researcher): return silently with no error if not authenticated. Never block the writing workflow.

Setup Workflow

For /smart-blog-skills:notebooklm setup:

bash
# Opens a visible browser for manual Google login (one-time)
python3 scripts/run.py auth_manager.py setup

Tell the user: "A browser window will open. Please log in to your Google account." Authentication persists via browser profile + cookie injection (hybrid approach).

Other auth commands:

bash
python3 scripts/run.py auth_manager.py status   # Check auth
python3 scripts/run.py auth_manager.py reauth   # Re-authenticate
python3 scripts/run.py auth_manager.py clear     # Clear all auth data

Query Workflow

For /smart-blog-skills:notebooklm ask <question>:

Step 1: Check Auth

Run auth check (see gate pattern above). If not authenticated, guide to setup.

Step 2: Resolve Notebook

Determine which notebook to query:

  • If --notebook-url provided: use directly
  • If --notebook-id provided: look up in library
  • If neither: use active notebook from library
  • If no active notebook: show library and ask user to select

Step 3: Ask the Question

bash
# Basic query (uses active notebook)
python3 scripts/run.py ask_question.py --question "Your question here"

# Query specific notebook by ID
python3 scripts/run.py ask_question.py --question "..." --notebook-id notebook-id

# Query by URL directly
python3 scripts/run.py ask_question.py --question "..." --notebook-url "https://..."

# JSON output (for internal/programmatic use)
python3 scripts/run.py ask_question.py --question "..." --json

Step 4: Analyze and Follow Up

Every response ends with a follow-up prompt. Required behavior:

  1. STOP -- do not immediately respond to the user
  2. ANALYZE -- compare the answer to the user's original request
  3. IDENTIFY GAPS -- determine if more information is needed
  4. ASK FOLLOW-UP -- if gaps exist, immediately ask a follow-up question
  5. REPEAT -- continue until information is complete
  6. SYNTHESIZE -- combine all answers before responding to the user

Smart Discovery Workflow

For /smart-blog-skills:notebooklm discover <url>:

When adding a notebook without knowing its content, query it first:

bash
# Step 1: Discover content
python3 scripts/run.py ask_question.py \
  --question "What is the content of this notebook? What topics are covered? Provide a complete overview briefly and concisely" \
  --notebook-url "<URL>"

# Step 2: Add with discovered metadata
python3 scripts/run.py notebook_manager.py add \
  --url "<URL>" \
  --name "<Based on content>" \
  --description "<Based on content>" \
  --topics "<Extracted topics>"

NEVER guess or use generic descriptions. Always discover or ask the user.

Library Management

bash
# List all notebooks
python3 scripts/run.py notebook_manager.py list

# Add notebook (all params required -- discover or ask user!)
python3 scripts/run.py notebook_manager.py add \
  --url "https://notebooklm.google.com/notebook/..." \
  --name "Descriptive Name" \
  --description "What this notebook contains" \
  --topics "topic1,topic2,topic3"

# Search by keyword
python3 scripts/run.py notebook_manager.py search --query "keyword"

# Set active notebook
python3 scripts/run.py notebook_manager.py activate --id notebook-id

Data Storage

All data stored inside the skill directory:

  • scripts/data/library.json -- Notebook metadata and library
  • scripts/data/auth_info.json -- Authentication status
  • scripts/data/browser_state/ -- Chrome profile with cookies

Security: All data directories are gitignored. Never commit auth or browser state.

Error Handling

ErrorResolution
Not authenticatedRun /smart-blog-skills:notebooklm setup
ModuleNotFoundErrorAlways use run.py wrapper
Browser crashcleanup_manager.py --confirm --preserve-library, then re-auth
Rate limit (50/day)Wait until midnight PST or switch Google account
Notebook not foundCheck with notebook_manager.py list
Query timeout (120s)Retry with simpler question or --show-browser to debug
MCP unavailable (internal)Return silently -- writing workflow uses WebSearch

Limitations

  • No session persistence (each question = new browser session)
  • Rate limits on free Google accounts (50 queries/day)
  • Manual upload required (user must add docs to NotebookLM web UI)
  • Browser overhead (few seconds per question for launch + teardown)
  • Local Claude Code only (not available in web UI)

Frequently asked questions

What does the Notebooklm AI skill do?

Query Google NotebookLM notebooks for source-grounded, citation-backed answers from user-uploaded documents. Manages notebook library, handles Google authentication, and supports smart discovery. Works standalone via /smart-blog-skills:notebooklm or internally from write and blog-researcher for Tier 1 research data. Falls back gracefully when not configured. Use when user says "notebooklm", "notebook", "query notebook", "ask notebook", "notebook research", "source grounded research", "document query", "notebook library".

Why use Notebooklm on TypingMind?

Because you install it once and use it with any model. Notebooklm is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Notebooklm in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/rainday/smart-blog-skills/tree/main/skills/notebooklm. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Notebooklm?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Notebooklm?

As many as you like. As long as a model supports skills, you can use Notebooklm with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Notebooklm AI skill free?

Yes. It is published on GitHub by rainday under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇