技能 notebooklm
📚

notebooklm

中風險 ⚙️ 外部命令🌐 網路存取📁 檔案系統存取🔑 環境變數

從 Claude Code 查詢 NotebookLM 筆記本

也可從以下取得: teng-lin,ZhanlinCui

停止在瀏覽器與編輯器之間複製貼上的繁瑣操作。此技能讓 Claude Code 直接與 Google NotebookLM 對話,提供引用您上傳文件的來源依據答案。

支援: Claude Codex Code(CC)
🥉 76 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「notebooklm」。 What does my React documentation say about useEffect cleanup functions?

預期結果:

根據您的 React 文件(第 3 章:Effects),useEffect 中的清理函式在元件卸載前和每次重新渲染前執行。重點:(1) 從 useEffect 傳回清理函式,(2) 使用清理來取消訂閱、清除計時器或中止 fetch 請求,(3) 清理可防止記憶體洩漏。文件中顯示的範例模式:useEffect(() => { const sub = subscribe(); return () => sub.unsubscribe(); }, []). 來源:React-d 指南,第 47 頁。

正在使用「notebooklm」。 Add this notebook to my library: https://notebooklm.google.com/notebook/xyz123

預期結果:

我查詢了該筆記本並發現其內容:Python 機器學習教程,涵蓋 scikit-learn、pandas 和模型評估。已作為 'ML Fundamentals Guide' 新增到您的庫中,主題:python, machine-learning, scikit-learn, pandas。您現在可以使用如下命令查詢:'Ask my ML notebook about cross-validation techniques'。

安全審計

中風險
v1 • 2/24/2026

Static scanner detected 558 pattern matches across 20 files, but evaluation confirms most are false positives in documentation. Real risks: browser automation saves Google auth cookies locally, network access to notebooklm.google.com, and subprocess execution for internal scripts. All patterns are expected for legitimate NotebookLM integration. Markdown files triggered external_commands detections from code examples. Recommend warnings about authentication requirements and network dependency.

20
已掃描檔案
4,136
分析行數
9
發現項
1
審計總數
中風險問題 (2)
Browser Credential Storage
Skill saves Google authentication cookies to local storage at ~/.claude/skills/notebooklm/data/. This is necessary for browser automation but creates a local credential store.
External Network Dependency
Skill requires network access to notebooklm.google.com for all operations. Cannot function offline or if Google blocks automated access.
低風險問題 (3)
Subprocess Execution for Script Runner
run.py uses subprocess.run to execute Python scripts within the virtual environment. All commands are hardcoded with no user input injection.
Environment Variable Access
Uses python-dotenv for optional .env configuration. Standard pattern for local configuration management.
Hidden Directory File Access
Skill reads/writes to ~/.claude/skills/notebooklm/data/ for local storage. This is the skill's designated data directory, not unauthorized access.
審計者: claude

品質評分

82
架構
100
可維護性
87
內容
50
社群
49
安全
91
規範符合性

你能建構什麼

技術文件研究

查詢上傳至 NotebookLM 的 API 文件、工作坊手冊或技術規格。Claude 會提出完整的後續問題以取得完整的實作細節,然後撰寫正確的程式碼而不會虛構 API。

學術文獻回顧

將研究論文上傳至 NotebookLM 並透過 Claude Code 進行查詢。獲得跨越多篇論文的綜合答案並附上引用,實現更快速的文獻回顧和準確的引用。

個人知識庫查詢

建立包含您的筆記、會議記錄和專案文件的筆記本庫。透過 Claude 自然地查詢您的整個知識庫,獲得基於您實際內容的答案。

試試這些提示

初學者:簡單問題
Ask my NotebookLM: What are the key specifications for [topic] in my uploaded documents?
初學者:新增筆記本
Add this NotebookLM to my library: [notebook-url]. Query it first to discover what it contains, then save it with an appropriate name and topics.
中級:多面向研究
Query my [notebook-name] notebook about [topic]. Ask comprehensive follow-up questions until you have complete information about: (1) core concepts, (2) implementation details, (3) edge cases, and (4) best practices. Then synthesize all answers.
高級:跨筆記本綜合
I need to understand [topic] across my entire notebook library. Query each relevant notebook about this topic, compare the perspectives, identify any contradictions or gaps, and provide a unified synthesis with source citations.

最佳實務

  • 一律使用 run.py 包裝器腳本 - 它會自動處理虛擬環境設定並確保依賴項正確安裝
  • 提出包含完整上下文的綜合性問題,因為每個查詢都會開啟全新的瀏覽器工作階段,不會記憶之前的問題
  • 批判性地檢視 NotebookLM 的答案,當出現 'Is that ALL you need to know?' 提示時提出後續問題 - 這可確保資訊收集的完整性

避免

  • 請勿嘗試在 Claude Code 網頁 UI 中使用此技能 - 它需要沙盒環境未提供的網路存取權限
  • 請勿預期查詢之間有持續性工作階段記憶 - 每個問題都是獨立的,需要包含完整上下文
  • 請勿依賴此技能處理時效性或頻繁變更的資訊 - NotebookLM 僅知道您上傳給它的內容

常見問題

為什麼這在 Claude 網頁介面中無法運作?
網頁 UI 在沒有網路存取的沙盒中執行技能。瀏覽器自動化需要網路連線才能到達 NotebookLM 的伺服器。您必須使用本地 Claude Code 安裝程式。
使用此技能時我的 Google 帳戶安全嗎?
是的。身份驗證 cookie 儲存在您電腦上的 ~/.claude/skills/notebooklm/data/ 中。您的憑證永遠不會離開您的電腦。如有疑慮,建議使用專用的 Google 帳戶進行自動化。
這與 NotebookLM MCP 伺服器有何不同?
此技能直接在 Claude Code 中執行,無需單獨的 MCP 設定。MCP 伺服器提供持續性工作階段並適用於更多工具(Codex、Cursor),而此技能為 Claude Code 使用者提供更簡單的設定。
如果 Google 偵測到自動化並封鎖存取會怎樣?
此技能包含人性化功能,如合理的輸入速度和自然延遲。如果被封鎖,請清除瀏覽器資料並重新驗證。建議使用專用的 Google 帳戶進行自動化。
我可以使用多個 Google 帳戶嗎?
可以,但您需要清除身份驗證並重新登入才能切換帳戶。執行 'Clear NotebookLM authentication' 然後使用您想要的帳戶重新設定。
如果技能在 NotebookLM 更新後停止運作怎麼辦?
Google 可能會更新 NotebookLM 的介面,導致選擇器失效。請先檢查技能更新。如果沒有可用更新,您可能需要等待技能作者為新介面更新選擇器。