Notebooklm

From Dokhacgiakhoa/antigravity-ide · View interactive version

Notebooklm is an AI agent skill from the GitHub repository Dokhacgiakhoa/antigravity-ide. 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.

How to use this skill

Skill file

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.

When to Use This Skill

Trigger when user:

⚠️ CRITICAL: Add Command - Smart Discovery

When user wants to add a notebook without providing details:

SMART ADD (Recommended): Query the notebook first to discover its content:

# Step 1: Query the notebook about its content
python 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: Use the discovered information to add it
python scripts/run.py notebook_manager.py add --url "[URL]" --name "[Based on content]" --description "[Based on content]" --topics "[Based on content]"

MANUAL ADD: If user provides all details:

NEVER guess or use generic descriptions! If details missing, use Smart Add to discover them.

Critical: Always Use run.py Wrapper

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

# ✅ CORRECT - Always use run.py:
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 - Never call directly:
python scripts/auth_manager.py status  # Fails without venv!

The run.py wrapper automatically:

  1. Creates .venv if needed
  2. Installs all dependencies
  3. Activates environment
  4. Executes script properly

Core Workflow

🧠 Knowledge Modules (Fractal Skills)

1. [Step 1: Check Authentication Status](./sub-skills/step-1-check-authentication-status.md)

2. [Step 2: Authenticate (One-Time Setup)](./sub-skills/step-2-authenticate-one-time-setup.md)

3. [Step 3: Manage Notebook Library](./sub-skills/step-3-manage-notebook-library.md)

4. [Quick Workflow](./sub-skills/quick-workflow.md)

5. [Step 4: Ask Questions](./sub-skills/step-4-ask-questions.md)

6. [Authentication Management (`auth_manager.py`)](./sub-skills/authentication-management-auth_managerpy.md)

7. [Notebook Management (`notebook_manager.py`)](./sub-skills/notebook-management-notebook_managerpy.md)

8. [Question Interface (`ask_question.py`)](./sub-skills/question-interface-ask_questionpy.md)

9. [Data Cleanup (`cleanup_manager.py`)](./sub-skills/data-cleanup-cleanup_managerpy.md)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.