agentleFS
rafeeqinearafeeqinea/claude-academic-toolkit/skills/mcp-enhanced/notebook-query/SKILL.md

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

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
  1. Distinctive:

    If any MCP call fails with an authentication error, run:

    line 50
  2. Distinctive:

    Identify the target notebook: If the user specified a notebook by name, match it.

    line 66
  3. Distinctive:

    Flag when your training data disagrees with sources: If you notice a discrepancy between what the sources say and what you know from …

    line 92
  4. Distinctive:

    When the user wants to create a new notebook:

    line 96
  5. Distinctive:

    Use this to save key findings, synthesis, or experiment results directly into the notebook for future reference.

    line 121
  6. Distinctive:

    Query sequentially: Run each sub-query, collect the grounded answers.

    line 148
  7. Distinctive:

    ALWAYS present source attributions.

    line 154
  8. Distinctive:

    NEVER blend NotebookLM answers with your training data without clearly marking which is which.

    line 155
  9. Distinctive:

    If the query returns no relevant results, say so.

    line 156
  10. Very specific:

    If the NotebookLM MCP server is not connected or authentication has expired, tell the user clearly and provide the fix (nlm login).

    line 157
  11. Distinctive:

    When creating notebooks for the user, suggest a clear naming convention (e.g., "Thesis - Literature Review", "CS-401 - Coursework").

    line 158

≈ “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.

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

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-code

If any MCP call fails with an authentication error, run:

mcp__notebooklm-mcp__refresh_auth

and retry. If that fails, tell the user to run nlm login in their terminal.

Workflow

Querying Notebooks

  1. List available notebooks. First, check what notebooks the user has:
    mcp__notebooklm-mcp__notebook_list
    Show the user their notebooks with names and IDs.
  2. 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.
  3. 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?"
  4. Execute the query:
    mcp__notebooklm-mcp__notebook_query(notebook_id=<id>, query=<formulated_query>)
  5. 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.

  6. 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:

  1. Create the notebook:
    mcp__notebooklm-mcp__notebook_create(title=<name>)
  2. Add sources. Sources can be URLs, Google Drive files, or text:
    mcp__notebooklm-mcp__source_add(notebook_id=<id>, url=<url>)
    Supported source types: PDFs, web pages, YouTube videos, Google Docs, Google Slides, plain text.
  3. 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:

  1. Create the studio artifact:
    mcp__notebooklm-mcp__studio_create(notebook_id=<id>)
  2. Check status (generation takes 2-5 minutes):
    mcp__notebooklm-mcp__studio_status(notebook_id=<id>)
  3. 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:

  1. 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?"
  2. Query sequentially. Run each sub-query, collect the grounded answers.
  3. 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.

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.