본문으로 건너뛰기
Skillpedia
리서치20k · #10389

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/teng-lin/notebooklm-py/blob/main/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 login and validate again.
  • In a headless environment, install [cookies] and use notebooklm login --browser-cookies <browser>. Use notebooklm auth inspect --browser <browser> first when account selection is unclear.
  • If previously valid cookies became stale, try notebooklm auth refresh; use notebooklm 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

  1. Use --json for discovery and mutations, then retain the returned full UUIDs. Important envelopes are .notebook.id from create, .source.id from source add, and .task_id from asynchronous generators. generate mind-map instead returns mind_map, note_id, and kind; both kinds return a finished result with no task ID or separate artifact wait step.
  2. Pass -n/--notebook <id> on every notebook-scoped command in automation or concurrent work. Do not rely on notebooklm use. For every concurrent run, also set a unique NOTEBOOKLM_PROFILE=agent-<id> so context and profile writes are isolated. A new profile has no credentials: put a master_token.json copy in that profile and mint its storage before use. Never share one writable storage_state.json across agents.
  3. After adding sources, retain every .source.id, then run source wait for each before chat or generation. The add envelope has no status. Require wait exit 0 and status == "ready"; let the waiter handle media-specific transient error rows.
  4. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

비슷한 스킬