Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cleanexpo avatar

Notebooklm Second Brain

  • 8 installs
  • 1 repo stars
  • Updated August 4, 2026
  • cleanexpo/nodejs-starter-v1

Enforce a Notebook First retrieval policy so the agent queries NotebookLM notebooks via the nlm CLI before web search or dumping full docs into context.

About

Enforces a policy where the agent queries purpose-built NotebookLM notebooks via the nlm CLI instead of web search or loading full docs. A developer uses it to keep the agent context window lean when answering architecture, debugging, or security questions.

  • Maps scenarios to specific notebooks (project_sot, debug_kb, security_handbook)
  • Notebook IDs read from .claude/notebooklm/notebooks.json, never fabricated

Notebooklm Second Brain by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #12,321 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cleanexpo/nodejs-starter-v1 --skill notebooklm-second-brain

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars1
Last updatedAugust 4, 2026
Repositorycleanexpo/nodejs-starter-v1

What it does

Enforce a Notebook First retrieval policy so the agent queries NotebookLM notebooks via the nlm CLI before web search or dumping full docs into context.

Files

SKILL.mdMarkdownGitHub ↗

NotebookLM Second Brain

Policy: Query the relevant NotebookLM notebook before web search or dumping full docs into context.

Description

This skill enforces a "Notebook First" retrieval policy. Instead of loading entire markdown files or running web searches for architecture decisions, debugging patterns, or security knowledge, the agent queries purpose-built NotebookLM notebooks via the nlm CLI. This keeps the agent context window lean and retrieval fast.

When to Apply

ScenarioNotebookWhy
"How does auth work?"project_sotArchitecture decisions live here
"Why is this test failing?"debug_kbError patterns and debugging playbooks
"Is this input sanitised?"security_handbookOWASP patterns and security reviews
"Explain the codebase"repo_onboardingCodebase atlas and mind maps
After successful build/verifyproject_sotAuto-sync implementation notes

Core Directives

1. Notebook ID Location

All notebook IDs are stored in .claude/notebooklm/notebooks.json. Never hard-code or fabricate IDs.

# Read current notebook config
cat .claude/notebooklm/notebooks.json

2. Notebook Routing

Query TypeTarget NotebookFallback
Architecture, feature specs, implementation historyproject_sotRead CLAUDE.md directly
Error patterns, test failures, debugging stepsdebug_kbSearch codebase with grep
OWASP, auth patterns, security reviewssecurity_handbookWeb search security docs
"How does X work?", codebase overview, onboardingrepo_onboardingRead source files directly

3. CLI Command Reference

# Authentication
nlm login                              # Browser cookie extraction (one-time)
nlm login --check                      # Verify auth status

# Notebook management
nlm notebook list                      # List all notebooks
nlm notebook create "Name"             # Create new notebook
nlm notebook query <notebook_id>       # Interactive query

# Source management
nlm source add <notebook_id> --file <path>    # Add file source
nlm source add <notebook_id> --url <url>      # Add URL source
nlm source add <notebook_id> --text "content" # Add text source
nlm source list <notebook_id>                 # List sources

# Notes and audio
nlm note create <notebook_id> "Title"         # Create note
nlm audio create <notebook_id> --confirm      # Generate audio overview

4. Deterministic Routine

When setting up a new notebook:

1. Createnlm notebook create "Name" 2. Add sources — Upload relevant files and URLs 3. Query — Verify the notebook returns useful answers 4. Export — Save notebook ID to notebooks.json

5. Post-Build Sync

After successful pnpm run verify or pnpm build, the sync hook (.claude/hooks/scripts/notebooklm-sync.ps1) automatically creates an implementation note in project_sot with:

  • Commit message and hash
  • Changed files list
  • Test results summary
  • Detected TODO items

Anti-Patterns

  • Never fabricate notebook IDs — only use IDs from notebooks.json (populated by /notebooklm-bootstrap)
  • Never dump full docs into context when a notebook query would suffice
  • Never skip the notebook and go straight to web search for project-specific knowledge
  • Never hard-code notebook IDs in scripts or commands — always read from config

Integration Points

SystemIntegration
BeadsSync completed Beads tasks as implementation notes
Council of LogicArchitecture queries route through project_sot first
HooksPost-verify sync hook adds notes automatically
SkillsOther skills can query notebooks for domain knowledge

Setup

Run the bootstrap command to install, authenticate, and create all notebooks:

/notebooklm-bootstrap

This installs notebooklm-mcp-cli, authenticates via browser, creates the 4 notebooks, seeds them with project sources, and writes IDs to notebooks.json.

Validation

python scripts/validate-notebooks.py              # Schema validation
python scripts/validate-notebooks.py --check-ids   # Verify IDs populated
python scripts/validate-notebooks.py --dry-run-sync # Preview sync note

Related skills

AI & Agent Buildingresearchagents

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.