Index of every page on this site: llms.txt
All skills
alffei avatar

/notebooklm-skill-codex

@f00cf3b
by Andrew Chenalffei/skill_share69 stars
18
Run it yourself

Use for querying Google NotebookLM notebooks from Codex via local browser automation. Trigger when the user mentions NotebookLM, shares a NotebookLM URL, wants source-grounded answers from uploaded docs, or needs to add, list, search, activate, or remove notebooks from a local NotebookLM library.

  • 17 files
  • 86.7 KB
  • Updated 8 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/alffei/skill_share/notebooklm-skill-codex

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈80 tokens for metadata: the name and description. ≈1k when used: this file. ≈2.2k more on demand in 4 files.

Description uses 3.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈310 characters, or 3.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

NotebookLM

Use this skill to let Codex query Google NotebookLM and return answers grounded in the user's uploaded documents.

This skill is for local Codex environments that can:

  • run shell commands
  • install Python dependencies
  • access the network
  • open a visible browser window for Google login

Use bundled scripts as black boxes

Always use the wrapper:

python scripts/run.py <script> [args...]

Do not call scripts in scripts/ directly unless you are debugging the skill itself. The wrapper creates .venv, installs dependencies, and runs the script with the correct interpreter.

If the first setup is interrupted, rerun the same wrapper command. The wrapper now repairs incomplete .venv directories automatically.

When to use

Trigger this skill when the user:

  • mentions NotebookLM
  • shares a NotebookLM URL
  • asks to query their docs through NotebookLM
  • wants to save or manage NotebookLM notebooks locally
  • asks for answers grounded only in uploaded notebook sources

Core workflow

1. Check authentication first

python scripts/run.py auth_manager.py status

If authentication is missing or stale, run setup.

2. Authenticate with Google

python scripts/run.py auth_manager.py setup

Important:

  • the browser must be visible for login
  • tell the user a browser window will open
  • wait for them to complete Google login manually

3. Resolve the notebook

List saved notebooks:

python scripts/run.py notebook_manager.py list

If the user provided a notebook URL that is not in the library yet, prefer Smart Add:

python scripts/run.py ask_question.py \
  --question "What is the content of this notebook? What topics are covered? Provide a brief overview." \
  --notebook-url "[URL]"

python scripts/run.py notebook_manager.py add \
  --url "[URL]" \
  --name "[Specific notebook name]" \
  --description "[Specific description based on notebook content]" \
  --topics "[topic1,topic2,topic3]"

Do not invent generic metadata if the notebook content is still unknown.

4. Ask the notebook

Use one of:

python scripts/run.py ask_question.py --question "Your question here"
python scripts/run.py ask_question.py --question "..." --notebook-id notebook-id
python scripts/run.py ask_question.py --question "..." --notebook-url "https://notebooklm.google.com/notebook/..."

Add --show-browser only when debugging UI failures.

Follow-up rule

ask_question.py appends a follow-up reminder to every answer. Treat that as an internal prompt to keep researching before answering the user.

Before you respond:

  1. Compare the NotebookLM answer to the user's actual request.
  2. Identify missing details, edge cases, or implementation gaps.
  3. Ask one or more follow-up questions if the first answer is incomplete.
  4. Synthesize the final response only after the information is sufficient.

Each NotebookLM query is stateless, so follow-up questions must include the needed context.

Command reference

Read commands.md when you need the exact CLI for:

  • authentication
  • library management
  • notebook queries
  • cleanup

Troubleshooting

Read troubleshooting-codex.md when:

  • login fails
  • the browser does not launch
  • selectors break after a NotebookLM UI change
  • Patchright or Chrome installation fails

Operational notes

  • Skill data is stored under the skill directory in data/.
  • First use creates .venv in the skill directory.
  • Environment setup installs Python dependencies and Patchright's Chrome runtime.
  • Dependency installation streams pip output so DNS or mirror failures are visible instead of appearing stuck.
  • NOTEBOOKLM_PIP_INDEX_URL can be used to point pip at a reachable package mirror.
  • Authentication uses a persistent browser profile plus saved storage state.
  • Free Google accounts may hit NotebookLM rate limits.

Limits

  • Each query opens a fresh browser session.
  • The user must already have a NotebookLM notebook with uploaded sources.
  • Browser automation may break if NotebookLM changes its UI.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at f00cf3b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 8 months ago

README badge

README badge for alffei/skill_share/notebooklm-skill-codex