Skip to content

Commit 762e9cd

Browse files
committed
feat(cli): unify agent skill installation
1 parent 8f9dd3a commit 762e9cd

File tree

8 files changed

+344
-129
lines changed

8 files changed

+344
-129
lines changed

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
## What You Can Build
2929

30-
🤖 **AI Agent Tools** - Integrate NotebookLM into Claude Code or other LLM agents. Ships with [Claude Code skills](#agent-skills-claude-code) for natural language automation (`notebooklm skill install`), or build your own integrations with the async Python API.
30+
🤖 **AI Agent Tools** - Integrate NotebookLM into Claude Code, Codex, and other compatible agent-skill runtimes. Ships with a root [NotebookLM skill](SKILL.md) for GitHub and `npx skills add` discovery, plus `notebooklm skill install` for local agent directories.
3131

3232
📚 **Research Automation** - Bulk-import sources (URLs, PDFs, YouTube, Google Drive), run web/Drive research queries with auto-import, and extract insights programmatically. Build repeatable research pipelines.
3333

@@ -159,7 +159,7 @@ notebooklm language list # List supported output languages
159159
notebooklm metadata --json # Export notebook metadata and sources
160160
notebooklm share status # Inspect sharing state
161161
notebooklm source add-research "AI" # Start web research and import sources
162-
notebooklm skill status # Check Claude Code skill installation
162+
notebooklm skill status # Check local agent skill installation
163163
```
164164

165165
### Python API
@@ -195,18 +195,25 @@ async def main():
195195
asyncio.run(main())
196196
```
197197

198-
### Agent Skills (Claude Code)
198+
### Agent Skills
199199

200200
```bash
201-
# Install via CLI or ask Claude Code to do it
201+
# Install into local user-level Claude + .agents skill directories
202202
notebooklm skill install
203203

204-
# Then use natural language:
205-
# "Create a podcast about quantum computing"
206-
# "Download the quiz as markdown"
207-
# "/notebooklm generate video"
204+
# Install only the universal .agents/skills target in the current project
205+
notebooklm skill install --scope project --target agents
206+
207+
# Install from GitHub via the open skills ecosystem
208+
npx skills add teng-lin/notebooklm-py
208209
```
209210

211+
Supported paths:
212+
213+
- `notebooklm skill install` manages local `~/.claude/skills/notebooklm` and `~/.agents/skills/notebooklm` by default.
214+
- GitHub / `npx skills add` discover the canonical root [SKILL.md](SKILL.md).
215+
- Agents that honor `.agents/skills` can consume the universal install path; Claude Code also supports `.claude/skills`.
216+
210217
## Documentation
211218

212219
- **[CLI Reference](docs/cli-reference.md)** - Complete command documentation
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ pip install "git+https://github.com/teng-lin/notebooklm-py@${LATEST_TAG}"
2323

2424
⚠️ **DO NOT install from main branch** (`pip install git+https://github.com/teng-lin/notebooklm-py`). The main branch may contain unreleased/unstable changes. Always use PyPI or a specific release tag, unless you are testing unreleased features.
2525

26-
After installation, install the Claude Code skill:
26+
**Skill install methods:**
27+
28+
- `notebooklm skill install` installs this skill into the supported local agent directories managed by the CLI.
29+
- `npx skills add teng-lin/notebooklm-py` installs this skill from the GitHub repository into compatible agent skill directories.
30+
- If you are already reading this file inside an agent skill directory, the skill is already installed. You only need the Python package and authentication below.
31+
32+
**CLI-managed install:**
2733
```bash
2834
notebooklm skill install
2935
```
@@ -560,4 +566,4 @@ notebooklm language --help # Language settings
560566
**Diagnose auth:** `notebooklm auth check` - shows cookie domains, storage path, validation status
561567
**Re-authenticate:** `notebooklm login`
562568
**Check version:** `notebooklm --version`
563-
**Update skill:** `notebooklm skill install`
569+
**Refresh a CLI-managed install:** `notebooklm skill install`

docs/cli-reference.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,16 +195,23 @@ notebooklm metadata -n abc123 --json
195195

196196
### Skill Commands (`notebooklm skill <cmd>`)
197197

198-
Manage Claude Code skill integration.
198+
Manage NotebookLM agent skill integration.
199199

200200
| Command | Description | Example |
201201
|---------|-------------|---------|
202-
| `install` | Install/update skill to ~/.claude/skills/ | `skill install` |
203-
| `status` | Check installation and version | `skill status` |
204-
| `uninstall` | Remove skill | `skill uninstall` |
205-
| `show` | Display skill content | `skill show` |
202+
| `install` | Install/update the skill for `claude`, `.agents`, or both | `skill install --target all` |
203+
| `status` | Check installed targets and version info | `skill status --scope project` |
204+
| `uninstall` | Remove one or more installed targets | `skill uninstall --target agents` |
205+
| `show` | Display the packaged skill or an installed target | `skill show --target source` |
206206

207-
After installation, Claude Code recognizes NotebookLM commands via `/notebooklm` or natural language like "create a podcast about X".
207+
Defaults:
208+
209+
- `skill install` uses `--scope user --target all`
210+
- `claude` maps to `.claude/skills/notebooklm/SKILL.md`
211+
- `agents` maps to `.agents/skills/notebooklm/SKILL.md`
212+
- `show --target source` prints the canonical packaged skill file
213+
214+
The packaged wheel includes the repo-root `SKILL.md`, so the same skill content powers `notebooklm skill install`, GitHub discovery, and `npx skills add teng-lin/notebooklm-py`.
208215

209216
### Features Beyond the Web UI
210217

docs/releasing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Proceed with release preparation?
7777
| Doc | Update when... |
7878
|-----|----------------|
7979
| [README.md](../README.md) | New features, changed capabilities, Beyond the Web UI section |
80-
| [SKILL.md](../src/notebooklm/data/SKILL.md) | New CLI commands, changed flags, new workflows |
80+
| [SKILL.md](../SKILL.md) | New CLI commands, changed flags, new workflows |
8181
| [cli-reference.md](cli-reference.md) | Any CLI changes |
8282
| [python-api.md](python-api.md) | New/changed Python API |
8383
| [troubleshooting.md](troubleshooting.md) | New known issues, fixed issues to remove |

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ replacement = '](https://github.com/teng-lin/notebooklm-py/blob/v$HFPR_VERSION/L
8282

8383
[tool.hatch.build.targets.wheel]
8484
packages = ["src/notebooklm"]
85+
force-include = {"SKILL.md" = "src/notebooklm/data/SKILL.md"}
8586

8687
[tool.pytest.ini_options]
8788
testpaths = ["tests"]

0 commit comments

Comments
 (0)