notebooklm
하는 일
이 스킬은 Gemini Notebook용 notebooklm-py 도구를 설치하고 사용하는 방법을 AI에게 안내합니다. 노트북, 자료, 근거 기반 채팅, 조사, 다운로드를 다룹니다. 노트북을 자동화하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓Gemini Notebook에 자료를 추가하고 명령줄에서 그 자료에 대해 질문하고 싶을 때.
- ✓보고서나 요약을 위해 노트북에서 결과물을 만들거나 내려받고 싶을 때.
- ✓notebooklm 도구를 설치하거나 로그인하는 데 도움이 필요한 경우.
스킬 링크
https://github.com/teng-lin/notebooklm-py/blob/main/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 PDF 세 개를 제 Gemini Notebook에 추가하고, 주요 위험을 요약해 달라고 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 notebooklm-py 패키지를 설치하고, 계정에 로그인한 뒤, 명시적인 노트북 ID를 사용하는 명령을 실행합니다. 애플리케이션 코드에서는 대신 Python API를 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Gemini Notebook Automation
Use the notebooklm CLI for agent workflows. Prefer --json and explicit IDs so every
operation is inspectable and safe under concurrency. Use the typed async Python API only when the
user requests application code or the CLI cannot express the workflow. The readiness, identity,
authorization, and credential-handling rules below apply to both interfaces.
Setup and Authentication
Requires Python 3.10+. Install the package in the user's existing environment; do not create a separate environment unless requested:
pip install "notebooklm-py[browser]"
pip install "notebooklm-py[cookies]" # optional browser-cookie extraction
If system pip reports externally-managed-environment, do not use --break-system-packages.
For CLI-only use, offer uv tool install "notebooklm-py[browser]" or the equivalent pipx
command; for application code, use the user's active project environment.
For unattended or headless work, prefer durable profile-backed master-token auth over a copied
cookie snapshot. Install pip install "notebooklm-py[headless]"; the one-time automatic OAuth
capture also needs [browser]. On a trusted workstation run
notebooklm login --master-token --account <email>, then deploy master_token.json, not
storage_state.json, to the selected profile. NOTEBOOKLM_HOME selects the private base directory
and NOTEBOOKLM_PROFILE selects its profile; defaults resolve to
~/.notebooklm/profiles/default/master_token.json.
In CI, NOTEBOOKLM_MASTER_TOKEN_JSON is a secret-transport convention, not an environment variable
the package reads directly. Write its exact value to the selected profile's master_token.json
with mode 0600, unset it, then run notebooklm auth refresh to mint storage_state.json. A
sibling master token can automatically re-mint expired file-backed cookies. Inline
NOTEBOOKLM_AUTH_JSON is only a short-lived fallback; it bypasses this recovery path.
Use PyPI or a release tag, not an unreleased main checkout. When available, consult the
installation guide.
Before a workflow, verify real authentication rather than merely parsing the cookie file:
notebooklm auth check --test --json
Require .status == "ok" and .checks.token_fetch == true. If validation fails:
- With a display, run
notebooklm loginand validate again. - In a headless environment, install
[cookies]and usenotebooklm login --browser-cookies <browser>. Usenotebooklm auth inspect --browser <browser>first when account selection is unclear. - If previously valid cookies became stale, try
notebooklm auth refresh; usenotebooklm auth refresh --browser-cookies <browser>after signing back into the browser.
The normal --test preflight may heal and persist refreshed cookies. Add --passive when the
check must be strictly read-only, including the failure-diagnosis workflow below.
notebooklm status reports selected-notebook context, not authentication.
Treat both auth files as bearer credentials: never print, log, or commit them. A master token is a
durable full-account credential that survives password changes; use a dedicated account, protect
it in a secret store and as 0600 on disk, and explicitly revoke it if exposed.
Operating Invariants
- Use
--jsonfor discovery and mutations, then retain the returned full UUIDs. Important envelopes are.notebook.idfromcreate,.source.idfromsource add, and.task_idfrom asynchronous generators.generate mind-mapinstead returnsmind_map,note_id, andkind; both kinds return a finished result with no task ID or separateartifact waitstep. - Pass
-n/--notebook <id>on every notebook-scoped command in automation or concurrent work. Do not rely onnotebooklm use. For every concurrent run, also set a uniqueNOTEBOOKLM_PROFILE=agent-<id>so context and profile writes are isolated. A new profile has no credentials: put amaster_token.jsoncopy in that profile and mint its storage before use. Never share one writablestorage_state.jsonacross agents. - After adding sources, retain every
.source.id, then runsource waitfor each before chat or generation. The add envelope has no status. Require wait exit 0 andstatus == "ready"; let the waiter handle media-specific transienterrorrows. - After an asynchronous generator returns a task/artifact ID, pa
자주 묻는 질문
Gemini API와 같은 것인가요?
아니요. 이 스킬은 Gemini Notebook용이며 일반 Gemini API는 다루지 않습니다.
무엇을 설치해야 하나요?
Python 3.10 이상과 notebooklm-py 패키지이며, 로그인을 위해 브라우저 추가 설치 옵션이 필요합니다.
로그인은 어떻게 처리하나요?
사람이 없는 상태로 작업할 때는 복사한 쿠키보다 프로필 기반 토큰을 우선 사용합니다.
상세 정보
작성자의 원본 설명
Install, authenticate, troubleshoot, and operate Gemini Notebook through the notebooklm-py CLI or typed async Python API. Use for notebook and source management, grounded chat and research, and artifact generation or download when the user mentions Gemini Notebook, notebooklm-py, the notebooklm CLI, or its Python API. Do not use for the generic Gemini API or unrelated content creation.
repo: teng-lin/notebooklm-py
인기도
- GitHub 스타
- 20k
- 순위
- #10389
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
비슷한 스킬
graincrawl
394k에이전트가 저장된 Granola 회의 메모와 기록을 검색하고, 최신 상태를 확인하며, 일정 기간 동안 개수를 세도록 돕습니다.
notcrawl
394k에이전트가 저장된 Notion 워크스페이스 사본을 검색하고, 페이지와 데이터베이스를 찾아보며, 페이지를 Markdown 파일로 내보내도록 돕습니다.
knowledge-entities
394k에이전트가 사람, 회사, 프로젝트가 무엇인지 식별한 뒤, Knowledge 볼트에 출처가 있는 프로필 페이지를 작성하도록 돕습니다.