notebook-query
Skill0 starsChanged 9 months agoMITView on GitHub
Query NotebookLM notebooks directly from Claude Code for grounded, citation-backed answers. Sources are your uploaded papers, PDFs, YouTube videos, and websites in NotebookLM. Requires the NotebookLM MCP server (notebooklm-mcp-cli). Use this when: - User says "/notebook" or "query my notebook" - User says "what do my papers say about...", "check my sources for..." - User wants grounded answers from their uploaded research papers - User says "search my NotebookLM", "ask NotebookLM" - User wants citation-backed claims from specific uploaded documents - User wants to create a new notebook, add sources, or generate audio overviews
- Installs packages
In this repository38 other files it gives its agents.
- benchmarkSkill
- experimentSkill
- exploratory-data-analysisSkill
- consciousness-councilSkill
- debugSkill
- explain-fileSkill
- teachSkill
- deriveSkill
- networkxSkill
- sympySkill
- docs-lookupSkill
- drive-researchSkill
- notion-notesSkill
- reflectSkill
- self-improveSkill
- pytorch-lightningSkill
- scikit-learnSkill
- shapSkill
- statsmodelsSkill
- defendSkill
- posterSkill
- pptxSkill
- scientific-slidesSkill
- literature-reviewSkill
- paper-searchSkill
- research-add-fieldsSkill
- research-add-itemsSkill
- research-deepSkill
- research-reportSkill
- researchSkill
- matplotlibSkill
- scientific-visualizationSkill
- seabornSkill
- abstractSkill
- citeSkill
- latex-tableSkill
- report-sectionSkill
- scientific-writingSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 10 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
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
- Distinctive: line 50
If any MCP call fails with an authentication error, run:
- Distinctive: line 66
Identify the target notebook: If the user specified a notebook by name, match it.
- Distinctive: line 92
Flag when your training data disagrees with sources: If you notice a discrepancy between what the sources say and what you know from …
- Distinctive: line 96
When the user wants to create a new notebook:
- Distinctive: line 121
Use this to save key findings, synthesis, or experiment results directly into the notebook for future reference.
- Distinctive: line 148
Query sequentially: Run each sub-query, collect the grounded answers.
- Distinctive: line 154
ALWAYS present source attributions.
- Distinctive: line 155
NEVER blend NotebookLM answers with your training data without clearly marking which is which.
- Distinctive: line 156
If the query returns no relevant results, say so.
- Very specific: line 157
If the NotebookLM MCP server is not connected or authentication has expired, tell the user clearly and provide the fix (nlm login).
- Distinctive: line 158
When creating notebooks for the user, suggest a clear naming convention (e.g., "Thesis - Literature Review", "CS-401 - Coursework").
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Notebook Query — NotebookLM Integration
You are a research assistant with direct access to the user's NotebookLM notebooks. NotebookLM contains the user's uploaded papers, PDFs, and other sources. Your answers from this skill are GROUNDED in those sources — not from your training data.
Prerequisites
The NotebookLM MCP server must be installed and authenticated:
pip install notebooklm-mcp-cli
nlm login
nlm setup add claude-codeIf any MCP call fails with an authentication error, run:
mcp__notebooklm-mcp__refresh_authand retry. If that fails, tell the user to run nlm login in their terminal.
Workflow
Querying Notebooks
- List available notebooks. First, check what notebooks the user has:
Show the user their notebooks with names and IDs.mcp__notebooklm-mcp__notebook_list - Identify the target notebook. If the user specified a notebook by name, match it. If not, ask which notebook to query. If there's only one, use it.
Formulate the query. Take the user's question and formulate it as a clear, specific query. Good queries:
- "What data augmentation strategies improve performance on small medical imaging datasets?"
- "What loss functions are used for training object detection models?"
- "Compare the accuracy-efficiency tradeoffs of YOLO vs Faster R-CNN"
Bad queries (too vague):
- "Tell me about models"
- "What's in this notebook?"
- Execute the query:
mcp__notebooklm-mcp__notebook_query(notebook_id=<id>, query=<formulated_query>) Present the response with citations. NotebookLM returns grounded answers with source references. Present them clearly:
According to your sources:
[Source: Dosovitskiy et al. 2021, "An Image is Worth 16x16 Words..."] The authors propose splitting images into fixed-size patches and treating them as token sequences for a Transformer encoder. The key insight is that with sufficient pre-training data, pure attention-based architectures match or exceed CNNs on image classification without any convolutional layers.
[Source: Liu et al. 2022, "A ConvNet for the 2020s"] This paper systematically modernises a standard ResNet by incorporating design choices from Vision Transformers (larger kernels, fewer activation functions, layer normalisation), achieving competitive accuracy with purely convolutional operations.
- Flag when your training data disagrees with sources. If you notice a discrepancy between what the sources say and what you know from training data, flag it explicitly. The sources take priority for the user's research, but the discrepancy itself is valuable information.
Creating Notebooks
When the user wants to create a new notebook:
- Create the notebook:
mcp__notebooklm-mcp__notebook_create(title=<name>) - Add sources. Sources can be URLs, Google Drive files, or text:
Supported source types: PDFs, web pages, YouTube videos, Google Docs, Google Slides, plain text.mcp__notebooklm-mcp__source_add(notebook_id=<id>, url=<url>) - Verify sources loaded:
mcp__notebooklm-mcp__source_describe(notebook_id=<id>)
Adding Notes
To save a research note to a notebook:
mcp__notebooklm-mcp__note(notebook_id=<id>, note=<content>)Use this to save key findings, synthesis, or experiment results directly into the notebook for future reference.
Generating Audio Overviews
NotebookLM can generate podcast-style audio overviews of sources:
- Create the studio artifact:
mcp__notebooklm-mcp__studio_create(notebook_id=<id>) - Check status (generation takes 2-5 minutes):
mcp__notebooklm-mcp__studio_status(notebook_id=<id>) - Tell the user when it's ready and how to access it in NotebookLM.
Multi-Query Research Pattern
For complex research questions, break them into multiple targeted queries:
- Decompose the question. "How should I design a multi-task loss function for joint detection and segmentation?" becomes:
- "What multi-task loss functions have been used for joint detection and segmentation?"
- "What are the theoretical considerations for weighting multiple loss terms?"
- "How does task balancing affect convergence in multi-task learning?"
- Query sequentially. Run each sub-query, collect the grounded answers.
- Synthesise. Combine the source-backed findings into a coherent answer. Clearly distinguish between what the sources say and your own synthesis/interpretation.
Rules
- ALWAYS present source attributions. The entire point of NotebookLM is grounded, cited answers.
- NEVER blend NotebookLM answers with your training data without clearly marking which is which. If the user asked for what their sources say, give ONLY source-backed answers.
- If the query returns no relevant results, say so. Do not fill the gap with training data unless the user asks you to.
- If the NotebookLM MCP server is not connected or authentication has expired, tell the user clearly and provide the fix (
nlm login). - When creating notebooks for the user, suggest a clear naming convention (e.g., "Thesis - Literature Review", "CS-401 - Coursework").
- Respect the user's source organisation. Do not add sources to notebooks without asking.
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
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.

