rtk-ai/rtk
View on GitHubAdd rewrite rules for notebooklm CLI (source/artifact/generate/create/use/list)
Open
#1231 opened on Apr 11, 2026
effort-mediumenhancementgood first issue
Description
Context
rtk discover flagged notebooklm as the #1 unhandled command in my Claude Code usage — 37 invocations across 30 days, more than any other command without an RTK equivalent. Sharing the data in case it's useful for prioritization.
Breakdown (from rtk discover)
| Subcommand | Count | Example |
|---|---|---|
| `notebooklm source` | 13 | `notebooklm source add /path/to/file` |
| `notebooklm artifact` | 13 | `notebooklm artifact list --json` |
| `notebooklm generate` | 5 | `notebooklm generate slide-deck "..."` |
| `notebooklm create` | 2 | `notebooklm create "Notebook title"` |
| `notebooklm use` | 2 | `notebooklm use "Notebook name"` |
| `notebooklm list` | 1 | `notebooklm list` |
| `notebooklm notebook` | 1 | `notebooklm notebook info -n ""` |
What `notebooklm` is
Community CLI for Google NotebookLM exposing notebook CRUD, source management, and artifact generation/retrieval. Several subcommands emit verbose JSON or long source listings — good rewrite candidates for `--json` trimming or output summarization, similar to how `rtk npm` and `rtk git` work today.
Suggested prioritization
- Highest savings likely: `artifact list`, `source list`, `notebook info` — JSON-heavy, verbose output.
- Lower priority: `generate`, `create`, `use` — small output, rewrite probably not worth the maintenance cost.
- Rules would live in `src/discover/registry.rs` following the existing pattern.
Happy to contribute a PR if the direction is agreed — just flagging the usage data first.