Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nlm

БесплатноБез исполняемых скриптовНе проверен

ALWAYS use for ANY NotebookLM work - "make me a notebook on X", "create a notebook", "add this PDF/source to the notebook", "what notebooks do I have", "make…

edwinhuот edwinhu★ 28 звёзд на GitHub

Об этом скилле

NotebookLM CLI (nlm)

What this skill carries — grep references/ for any subject the names below miss: !d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"

Manage Google NotebookLM notebooks, sources, notes, chat, and generated content (audio/video overviews, slide decks, apps, reports) via the nlm command-line tool.

Requires: nlm on PATH (nix-managed, built from upstream tmc/nlm). Install/update via cd ~/nix && nix run .#build-switch.

Check: command -v nlm || echo "MISSING: nlm CLI not installed"

IRON LAW: gate on nlm source list before believing an empty chat answer. With expired auth the two chat paths fail differently and NEITHER says "auth": nlm chat <id> "…" prints nothing and exits 0, and nlm generate-chat <id> "…" prints empty response from API; check 'nlm sources …' for source state. Only the non-chat commands surface exit-class=auth (exit 3). So an agent that runs only a chat command reads an auth failure as "the notebook has nothing on this topic" — measured, and the likely cause of a 366-line Bluebook reference being written from style guides while its author believed the notebook had been consulted. Run nlm source list <id> and require exit 0 first; an empty chat answer is evidence of nothing until you have.

Command structure: the CLI uses subcommand groups — nlm <group> <action> (e.g. nlm notebook list, nlm source add, nlm audio create). The older flat aliases (nlm list, nlm add, nlm audio-create, …) were removed in upstream's parser migration. When unsure of exact syntax, run nlm --help or nlm <group> --help — it's authoritative. The references/*.md files predate the migration and may be stale.

Authentication

Default re-auth recipe — attach to the everyday browser on :9222, which holds the live NotebookLM session:

nlm auth login -cdp-url "$(curl -s localhost:9222/json/version | jq -r .webSocketDebuggerUrl)"

Credentials are stored in ~/.nlm/env.

Fact: bare nlm auth login -all / nlm refresh launch a stale local Chrome Default profile with no notebooklm cookies, land on /trynow, and fail with browser auth failed: auth data not found after timeout. crumb refresh notebooklm does not help: nlm keeps its own store (~/.nlm/env) and never reads crumb's jar. Re-auth via -cdp-url on :9222 fixed it (measured 2026-11-21).

Troubleshooting Authentication

If nlm auth fails with "no valid profiles found" or "SESSION_COOKIE_INVALID":

  1. Verify Chrome is running with remote debugging:

    ps aux | grep -E "chrome.*remote-debugging-port=9400"
    

    If not running, Chrome needs to be started with --remote-debugging-port=9400.

  2. Test CDP connection: curl http://localhost:9400/json/version (should return Chrome version JSON).

  3. Re-authenticate with debug: nlm auth login -debug -all (shows which profiles are checked and why).

  4. Verify: nlm notebook list should list notebooks without errors.

You can also point at a remote CDP socket: nlm auth login -cdp-url ws://localhost:9222, or pick a Google account index with -authuser 1.

Core Commands

Notebooks

nlm notebook list
nlm notebook create "Research Notes"
nlm notebook rename <nb-id> "New Title"
nlm notebook delete <nb-id>
nlm notebook description <nb-id> [text]    # text via arg or stdin; empty clears
nlm notebook emoji <nb-id> <emoji>
nlm notebook featured                      # list featured notebooks
nlm analytics <nb-id>                      # usage time series

Sources

nlm source list <nb-id>
nlm source add <nb-id> <file|url|-> [more...]   # '-' streams stdin as one source
nlm source add <nb-id> https://www.youtube.com/watch?v=VIDEO_ID
nlm source rename <source-id> "New Name"
nlm source delete <nb-id> <source-id|a,b,c|->   # '-' reads newline-delimited IDs from stdin
nlm source refresh <nb-id> <source-id>
nlm source read <source-id> [nb-id]             # print the server-indexed text body
nlm source sync <nb-id> [paths...]              # bundle local files into a synced txtar source (auto-chunks at 5MB)
nlm discover-sources <nb-id> "query"            # discover relevant sources

Notes

nlm note list <nb-id>
nlm note read <nb-id> <note-id>
nlm note create <nb-id> "Title" ["content"]     # content via arg or stdin
nlm note update <nb-id> <note-id> "content" "Title"
nlm note delete <nb-id> <note-id>

Chat & research

nlm generate-chat <nb-id> "What are the main themes?"   # one-shot, streamed
nlm chat <nb-id> ["prompt"]                             # interactive; one-shot if a prompt is given
nlm chat <nb-id> -f prompt.txt                          # read
Полный SKILL.md на GitHub

Установить nlm в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/commands.mdreferences/workflows.md

FAQ

Что делает скилл nlm?

ALWAYS use for ANY NotebookLM work - "make me a notebook on X", "create a notebook", "add this PDF/source to the notebook", "what notebooks do I have", "make a podcast/audio overview of these", "generate a video overview", "study guide", "briefing doc", "FAQ from these sources", "outline from the notebook", "slide deck from these sources", "ask my notebook about X", "summarize the sources in there", or any mention of NotebookLM or `nlm`. Use even when the user says "make a podcast of these papers" without naming NotebookLM. NOT for open-web research reports - use deep-research instead.

Как установить скилл nlm?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nlm запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nlm с