agentleFS
walidboulanouarwalidboulanouar/Ay-Skills/skills/notebooklm/SKILL.md

notebooklm

Skill90 starsChanged 9 months agoMITView on GitHub

Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.

83 other projects use a version of this, 26 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use yt-search, elevenlabs and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • azuma520Skill

    yt-search

    Search YouTube videos, get video metadata, and download subtitles/transcripts using yt-dlp. Use when the user wants to find videos, search YouTube, look up a YouTube channel, get video info, download captions, grab subtitles, or extract a transcript. Triggers include "找影片", "搜影片", "YouTube 搜尋", "抓字幕", "逐字稿", "search videos", "find videos on YouTube", "get subtitles", "video transcript", "youtube tutorial", "watch video about", "影片推薦", "有沒有影片", "教學影片". Make sure to use this skill whenever the user mentions YouTube, video search, subtitles, or transcripts — even if they don't explicitly say "yt-search".

    Also in 3 projects that use this

  • kennyolofsson23-netizenSkill

    elevenlabs

    ElevenLabs voice AI integration. Text-to-speech, speech-to-text, voice cloning, and audio processing via ElevenLabs API and MCP.

    Also in 3 projects that use this

  • mstuder-slalomSkill

    django-verification

    Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.

    Also in 4 projects that use this

  • mstuder-slalomSkill

    django-security

    Django security best practices, authentication, authorization, CSRF protection, SQL injection prevention, XSS prevention, and secure deployment configurations.

    Also in 4 projects that use this

  • sirakinbSkill

    last30days

    Research a topic from the last 30 days on Reddit + X + Web, become an expert, and write copy-paste-ready prompts for the user's target tool.

    Also in 5 projects that use this

  • royaluniondesign-sysSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 3 projects that use this

  • +1 more from mstuder-slalom

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 79 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every NotebookLM answer ends with: "Is that ALL you need to know?"

    line 97
  2. Distinctive:

    STOP — do not immediately respond to user

    line 100
  3. Distinctive:

    ASK FOLLOW-UP — if gaps exist, query again with context

    line 103
  4. Very specific:

    All data in ~/.claude/skills/notebooklm/data/:

    line 124
  5. Distinctive:

    No session persistence (each question = new browser session)

    line 133

“Common” is measured: kept by at least 6 in 10 of the 79 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

NotebookLM Research Assistant Skill

Interact with Google NotebookLM to query documentation with Gemini's source-grounded answers. Each question opens a fresh browser session, retrieves the answer exclusively from your uploaded documents, and closes.

Source: https://github.com/PleasePrompto/notebooklm-skill

Install

git clone https://github.com/PleasePrompto/notebooklm-skill ~/.claude/skills/notebooklm

The run.py wrapper auto-creates .venv, installs dependencies, and sets up Chromium on first run.

When to Use This Skill

Trigger when user:

  • Mentions NotebookLM explicitly
  • Shares NotebookLM URL (https://notebooklm.google.com/notebook/...)
  • Asks to query their notebooks/documentation
  • Wants to add documentation to NotebookLM library
  • Uses phrases like "ask my NotebookLM", "check my docs", "query my notebook"

CRITICAL: Always Use run.py Wrapper

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

# CORRECT
python scripts/run.py auth_manager.py status
python scripts/run.py notebook_manager.py list
python scripts/run.py ask_question.py --question "..."

# WRONG — fails without venv
python scripts/auth_manager.py status

Core Workflow

Step 1: Check Authentication

python scripts/run.py auth_manager.py status

Step 2: Authenticate (One-Time Setup)

# Browser MUST be visible for manual Google login
python scripts/run.py auth_manager.py setup

Tell user: "A browser window will open for Google login."

Step 3: Manage Notebook Library

# List all notebooks
python scripts/run.py notebook_manager.py list

# Add notebook — ALL parameters required
python 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"

# Smart Add (discover content first, then add)
python scripts/run.py ask_question.py --question "What topics are covered in this notebook?" --notebook-url "[URL]"

# Search, activate, remove
python scripts/run.py notebook_manager.py search --query "keyword"
python scripts/run.py notebook_manager.py activate --id notebook-id
python scripts/run.py notebook_manager.py remove --id notebook-id

Step 4: Ask Questions

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

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

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

# Debug mode
python scripts/run.py ask_question.py --question "..." --show-browser

Follow-Up Mechanism (CRITICAL)

Every NotebookLM answer ends with: "Is that ALL you need to know?"

Required behavior:

  1. STOP — do not immediately respond to user
  2. ANALYZE — compare answer to original request
  3. IDENTIFY GAPS — determine if more info needed
  4. ASK FOLLOW-UP — if gaps exist, query again with context
  5. SYNTHESIZE — combine all answers before responding

Script Reference

# Auth
python scripts/run.py auth_manager.py setup|status|reauth|clear

# Notebooks
python scripts/run.py notebook_manager.py add|list|search|activate|remove|stats

# Questions
python scripts/run.py ask_question.py --question "..." [--notebook-id ID] [--notebook-url URL]

# Cleanup
python scripts/run.py cleanup_manager.py [--confirm] [--preserve-library]

Data Storage

All data in ~/.claude/skills/notebooklm/data/:

  • library.json — notebook metadata
  • auth_info.json — auth status
  • browser_state/ — browser cookies/session

Protected by .gitignore. Never commit.

Limitations

  • No session persistence (each question = new browser session)
  • Rate limit: ~50 queries/day on free Google accounts
  • Manual upload required (user adds docs to NotebookLM)
  • Requires Python 3.8+

Troubleshooting

ProblemSolution
ModuleNotFoundErrorUse run.py wrapper, never call scripts directly
Auth failsBrowser must be visible: --show-browser
Rate limit hitWait or switch Google account
Browser crashespython scripts/run.py cleanup_manager.py --preserve-library

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.