Skip to content

Commit a64fd2b

Browse files
feat: teach study mentor agents about eBook audio overviews
Add pdf-by-chapters syllabus workflow knowledge to all study mentor agent configs so the agent can guide learners through generating chunked audio overviews of entire eBooks. Updated agents: - claude/socratic-mentor.md: eBook Audio Overviews section with commands - kiro/skills/study-mentor/SKILL.md: full eBook section with energy adaptation guidance, tools block updated - kiro/skills/study-mentor/references/session-workflows.md: 7-step eBook audio generation workflow - kiro/study-mentor/persona.md: pdf-by-chapters commands in tools block Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 99bd0f8 commit a64fd2b

4 files changed

Lines changed: 103 additions & 0 deletions

File tree

‎agents/claude/socratic-mentor.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,23 @@ Time-of-day aware: morning → afternoon, afternoon → tomorrow morning, evenin
135135

136136
---
137137

138+
## eBook Audio Overviews
139+
140+
For book-based study, use `pdf-by-chapters` to generate chunked audio overviews:
141+
142+
```bash
143+
pdf-by-chapters process "Book.pdf" -o ./chapters # Split + upload
144+
pdf-by-chapters syllabus -n $NOTEBOOK_ID -o ./chapters --no-video # Create episode plan
145+
pdf-by-chapters generate-next -o ./chapters --no-wait # Generate next episode
146+
pdf-by-chapters status -o ./chapters --poll # Check progress
147+
pdf-by-chapters download -n $NOTEBOOK_ID -o ./overviews # Download audio
148+
```
149+
150+
Use for: new textbooks, low-energy days (listen vs read), commute study material.
151+
Install: `uv tool install notebooklm-pdf-by-chapters`
152+
153+
---
154+
138155
## Anti-Patterns to Avoid
139156

140157
- **The Encyclopedia Response**: Too much information at once

‎agents/kiro/skills/study-mentor/SKILL.md‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ studyctl bridge list -s networking
7676
notebooklm ask "question" --notebook <id>
7777
notebooklm source list --notebook <id>
7878

79+
# eBook audio overviews (pdf-by-chapters)
80+
pdf-by-chapters process "Book.pdf" -o ./chapters # Split + upload
81+
pdf-by-chapters syllabus -n $NOTEBOOK_ID -o ./chapters --no-video # Episode plan
82+
pdf-by-chapters generate-next -o ./chapters --no-wait # Generate next episode
83+
pdf-by-chapters status -o ./chapters --poll # Check progress
84+
pdf-by-chapters download -n $NOTEBOOK_ID -o ./overviews # Download audio
85+
7986
# Progress tracking
8087
uv run tutor-progress
8188
uv run tutor-checkpoint code --skill <name>
@@ -89,6 +96,39 @@ studyctl schedule list # Show active jobs
8996
studyctl schedule install # Install all default jobs
9097
```
9198

99+
## eBook Audio Overviews (pdf-by-chapters)
100+
101+
For book-based study, generate chunked audio overviews of entire eBooks using `pdf-by-chapters`.
102+
This splits a PDF by chapter, uploads to NotebookLM, creates a syllabus, and generates audio
103+
episode-by-episode.
104+
105+
```bash
106+
# 1. Split eBook and upload chapters to a new NotebookLM notebook
107+
pdf-by-chapters process "Book Title.pdf" -o ./chapters
108+
109+
# 2. Generate a podcast syllabus (AI groups chapters into logical episodes)
110+
pdf-by-chapters syllabus -n $NOTEBOOK_ID -o ./chapters --no-video
111+
112+
# 3. Generate audio for the next episode (repeat until all done)
113+
pdf-by-chapters generate-next -o ./chapters --no-wait
114+
pdf-by-chapters status -o ./chapters --poll # check progress
115+
pdf-by-chapters generate-next -o ./chapters --no-wait
116+
# ... repeat for each episode
117+
118+
# 4. Download all completed audio
119+
pdf-by-chapters download -n $NOTEBOOK_ID -o ./overviews
120+
```
121+
122+
**When to use:** Starting a new textbook, low-energy days (listen instead of read),
123+
commute-friendly study material, or when the learner wants audio reinforcement.
124+
125+
**Energy adaptation:**
126+
- Energy 1-3: Suggest listening to already-generated episodes
127+
- Energy 4-6: Generate next episode, listen to previous ones
128+
- Energy 7+: Active study session with audio as supplementary material
129+
130+
Install: `uv tool install notebooklm-pdf-by-chapters`
131+
92132
## Notebook IDs
93133

94134
Run `studyctl config show` to see your configured notebook IDs.

‎agents/kiro/skills/study-mentor/references/session-workflows.md‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,45 @@
104104
5. Suggest: "New audio overview ready. Listen during commute/walk."
105105
```
106106

107+
## eBook Audio Overview Generation
108+
109+
When starting a new book or the learner requests audio overviews of a textbook:
110+
111+
```
112+
1. Check if pdf-by-chapters is installed:
113+
which pdf-by-chapters
114+
115+
2. Split the eBook and upload chapters to NotebookLM:
116+
pdf-by-chapters process "Book Title.pdf" -o ./chapters
117+
→ Note the NOTEBOOK_ID from the output table
118+
→ export NOTEBOOK_ID=<id>
119+
120+
3. Generate a podcast syllabus (groups chapters into logical episodes):
121+
pdf-by-chapters syllabus -n $NOTEBOOK_ID -o ./chapters --no-video
122+
→ Review the syllabus table with the learner
123+
→ Adjust --max-chapters if groupings don't suit
124+
125+
4. Generate episodes one at a time (rate limits apply):
126+
pdf-by-chapters generate-next -o ./chapters --no-wait
127+
→ Check progress: pdf-by-chapters status -o ./chapters --poll
128+
→ Wait for completion before generating the next episode
129+
130+
5. Check overall progress:
131+
pdf-by-chapters status -o ./chapters
132+
→ Shows completed/pending/failed episodes
133+
134+
6. Download completed audio:
135+
pdf-by-chapters download -n $NOTEBOOK_ID -o ./overviews
136+
137+
7. Suggest listening schedule:
138+
→ Match episodes to spaced repetition intervals
139+
→ Low-energy days: listen to audio instead of active study
140+
→ Commute time: queue up the next episode
141+
```
142+
143+
If generation fails, `generate-next` automatically retries failed episodes.
144+
To regenerate a specific episode: `pdf-by-chapters generate-next -o ./chapters --episode 3`
145+
107146
## End-of-Session Protocol
108147

109148
After every study session:

‎agents/kiro/study-mentor/persona.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ studyctl sync python # Sync specific topic
7373
studyctl status # Show sync state
7474
studyctl audio python -i "..." # Generate audio overview
7575

76+
# eBook audio overviews (pdf-by-chapters)
77+
pdf-by-chapters process "Book.pdf" -o ./chapters # Split + upload
78+
pdf-by-chapters syllabus -n $NOTEBOOK_ID -o ./chapters --no-video # Episode plan
79+
pdf-by-chapters generate-next -o ./chapters --no-wait # Generate next episode
80+
pdf-by-chapters status -o ./chapters --poll # Check progress
81+
pdf-by-chapters download -n $NOTEBOOK_ID -o ./overviews # Download audio
82+
7683
# Spaced repetition & history
7784
studyctl review # What's due for review?
7885
studyctl struggles # Recurring struggle topics

0 commit comments

Comments
 (0)