Skip to content

Commit a8dbac5

Browse files
taylaandclaude
andcommitted
feat: teach agents about quiz & flashcard generation from Obsidian
Add pdf-by-chapters from-obsidian workflow knowledge to all study mentor agent configs. The command converts Obsidian markdown notes to PDFs, uploads to NotebookLM, and generates per-source quizzes, flashcards, and optionally audio. Updated agents: - claude/socratic-mentor.md: new section with command examples - kiro/skills/study-mentor/SKILL.md: tools block + full section with energy adaptation and prerequisites - kiro/skills/study-mentor/references/session-workflows.md: 5-step workflow for quiz/flashcard generation with energy levels - kiro/study-mentor/persona.md: commands in tools block Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 331b36a commit a8dbac5

4 files changed

Lines changed: 95 additions & 0 deletions

File tree

‎agents/claude/socratic-mentor.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,21 @@ pdf-by-chapters download -n $NOTEBOOK_ID -o ./overviews # Download audio
150150
Use for: new textbooks, low-energy days (listen vs read), commute study material.
151151
Install: `uv tool install notebooklm-pdf-by-chapters`
152152

153+
## Quiz & Flashcard Generation from Obsidian Notes
154+
155+
Generate NotebookLM quizzes and flashcards from Obsidian study notes:
156+
157+
```bash
158+
pdf-by-chapters from-obsidian ~/Obsidian/path/to/course/ # Full: audio + quiz + flashcards
159+
pdf-by-chapters from-obsidian ~/Obsidian/path/ --subdir study-notes --no-audio # Quiz + flashcards only
160+
pdf-by-chapters from-obsidian ~/Obsidian/path/ -n $NOTEBOOK_ID --skip-convert # Reuse existing notebook
161+
pdf-by-chapters from-obsidian ~/Obsidian/path/ --no-quiz # Skip quiz
162+
pdf-by-chapters from-obsidian ~/Obsidian/path/ --no-flashcards # Skip flashcards
163+
```
164+
165+
Use for: testing comprehension after note-taking, spaced review with flashcards, exam prep, batch quiz generation.
166+
Requires: pandoc, @mermaid-js/mermaid-cli for markdown→PDF with diagram support.
167+
153168
---
154169

155170
## Anti-Patterns to Avoid

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ pdf-by-chapters generate-next -o ./chapters --no-wait # Generate next episo
8383
pdf-by-chapters status -o ./chapters --poll # Check progress
8484
pdf-by-chapters download -n $NOTEBOOK_ID -o ./overviews # Download audio
8585

86+
# Quiz & flashcard generation from Obsidian notes (pdf-by-chapters)
87+
pdf-by-chapters from-obsidian ~/Obsidian/path/to/course/ # Full: audio + quiz + flashcards
88+
pdf-by-chapters from-obsidian ~/Obsidian/path/ --subdir study-notes # Specific subdirectory
89+
pdf-by-chapters from-obsidian ~/Obsidian/path/ --no-audio # Quiz + flashcards only
90+
pdf-by-chapters from-obsidian ~/Obsidian/path/ -n $NOTEBOOK_ID --skip-convert # Reuse existing
91+
8692
# Progress tracking
8793
uv run tutor-progress
8894
uv run tutor-checkpoint code --skill <name>
@@ -129,6 +135,39 @@ commute-friendly study material, or when the learner wants audio reinforcement.
129135

130136
Install: `uv tool install notebooklm-pdf-by-chapters`
131137

138+
## Quiz & Flashcard Generation from Obsidian Notes
139+
140+
Generate NotebookLM quizzes and flashcards directly from Obsidian study notes using `pdf-by-chapters from-obsidian`. Converts markdown to PDF (with Mermaid diagram rendering), uploads to NotebookLM, and generates per-source artifacts.
141+
142+
```bash
143+
# Full pipeline: convert notes → upload → generate audio + quiz + flashcards
144+
pdf-by-chapters from-obsidian ~/Obsidian/Personal/2-Areas/Courses/MyCourse/
145+
146+
# Target a specific subdirectory (e.g. study-notes within a course)
147+
pdf-by-chapters from-obsidian ~/Obsidian/Personal/2-Areas/Courses/MyCourse/ \
148+
--subdir study-notes -o ~/Desktop/MyCourse-output
149+
150+
# Quiz + flashcards only (skip audio — faster, avoids audio rate limits)
151+
pdf-by-chapters from-obsidian ~/Obsidian/path/ --no-audio
152+
153+
# Reuse existing notebook and skip PDF conversion
154+
pdf-by-chapters from-obsidian ~/Obsidian/path/ -n $NOTEBOOK_ID --skip-convert
155+
156+
# Skip quiz or flashcards individually
157+
pdf-by-chapters from-obsidian ~/Obsidian/path/ --no-quiz
158+
pdf-by-chapters from-obsidian ~/Obsidian/path/ --no-flashcards
159+
```
160+
161+
**What it generates per source:** Audio deep-dive, quiz (JSON), flashcards (JSON). Downloads go to `<output>/downloads/`.
162+
163+
**When to use:**
164+
- After adding new study notes to Obsidian — generate quizzes to test comprehension
165+
- Spaced review sessions — use flashcards for rapid recall testing
166+
- Before exams — batch-generate quizzes across all course materials
167+
- Low-energy days — use `--no-audio` for quick quiz/flashcard generation only
168+
169+
**Requires:** `pandoc` (brew install pandoc) and `@mermaid-js/mermaid-cli` (npm install -g @mermaid-js/mermaid-cli) for markdown-to-PDF conversion with Mermaid diagram support.
170+
132171
## Notebook IDs
133172

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

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,41 @@ When starting a new book or the learner requests audio overviews of a textbook:
143143
If generation fails, `generate-next` automatically retries failed episodes.
144144
To regenerate a specific episode: `pdf-by-chapters generate-next -o ./chapters --episode 3`
145145

146+
## Quiz & Flashcard Generation from Obsidian Notes
147+
148+
When the learner wants quizzes or flashcards from their Obsidian study notes:
149+
150+
```
151+
1. Identify the course directory in the learner's Obsidian vault:
152+
→ Ask: "Which course or topic are your notes for?"
153+
→ Check: ls ~/Obsidian/Personal/2-Areas/Courses/
154+
155+
2. Run quiz + flashcard generation (skip audio for speed):
156+
pdf-by-chapters from-obsidian ~/Obsidian/Personal/2-Areas/Courses/<course>/ \
157+
--subdir study-notes --no-audio -o ~/Desktop/<course>-output
158+
159+
3. If a notebook already exists for this course:
160+
pdf-by-chapters from-obsidian ~/Obsidian/path/ \
161+
-n $NOTEBOOK_ID --skip-convert --no-audio
162+
163+
4. Review generated artifacts:
164+
→ Quizzes: <output>/downloads/*-quiz.json
165+
→ Flashcards: <output>/downloads/*-flashcards.json
166+
→ Each source gets its own quiz and flashcard set
167+
168+
5. Use in study session:
169+
→ Load quiz JSON and present questions Socratically
170+
→ Use flashcards for rapid-fire recall testing
171+
→ Track scores via tutor-checkpoint
172+
```
173+
174+
**Prerequisites:** pandoc (brew install pandoc), @mermaid-js/mermaid-cli (npm install -g @mermaid-js/mermaid-cli)
175+
176+
**Energy adaptation:**
177+
- Energy 1-3: Skip generation, review existing flashcards
178+
- Energy 4-6: Generate quizzes only (`--no-audio --no-flashcards`), light quiz session
179+
- Energy 7+: Full generation (audio + quiz + flashcards), active Socratic quiz
180+
146181
## End-of-Session Protocol
147182

148183
After every study session:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ pdf-by-chapters generate-next -o ./chapters --no-wait # Generate next episo
8080
pdf-by-chapters status -o ./chapters --poll # Check progress
8181
pdf-by-chapters download -n $NOTEBOOK_ID -o ./overviews # Download audio
8282

83+
# Quiz & flashcard generation from Obsidian notes (pdf-by-chapters)
84+
pdf-by-chapters from-obsidian ~/Obsidian/path/to/course/ # Full: audio + quiz + flashcards
85+
pdf-by-chapters from-obsidian ~/Obsidian/path/ --subdir study-notes # Specific subdirectory
86+
pdf-by-chapters from-obsidian ~/Obsidian/path/ --no-audio # Quiz + flashcards only
87+
pdf-by-chapters from-obsidian ~/Obsidian/path/ -n $NOTEBOOK_ID --skip-convert # Reuse existing
88+
8389
# Spaced repetition & history
8490
studyctl review # What's due for review?
8591
studyctl struggles # Recurring struggle topics

0 commit comments

Comments
 (0)