Trivia Quiz
A learning and study assistant for self-paced education. Start learning sessions on any topic, run quick quizzes, drill with flashcards, review via spaced repetition, track your progress, build learning roadmaps, find resources, take notes, summarize topics, and test your knowledge.
Commands
| Command |
Description |
learn <topic> [hours] |
Start a learning session on a topic with optional time estimate |
quiz <topic> |
Run a quick 3-question quiz on a topic |
flashcard <term> |
Create a flashcard with a front term (answer saved to data dir) |
review |
Launch a spaced repetition review session (1d, 3d, 7d, 14d, 30d intervals) |
progress |
Show total number of logged study sessions |
roadmap |
Generate a multi-week learning roadmap (basics → practice → projects) |
resource |
List resource categories: books, videos, courses, practice sites |
note <text> |
Save a timestamped note to the data log |
summary <topic> |
Get a summary of a topic |
test <topic> |
Self-test your knowledge on a topic |
help |
Show all available commands and usage info |
version |
Display current version (v2.0.0) |
Data Storage
All data is stored locally in $TRIVIA_QUIZ_DIR (defaults to ~/.local/share/trivia-quiz/):
data.log — Notes and general entries saved with note command
history.log — Timestamped log of every command executed (learn, quiz, flashcard, etc.)
The data directory is created automatically on first run. No cloud sync — everything stays on your machine.
Requirements
- Bash ≥ 4.0 (uses
set -euo pipefail)
- coreutils —
date, wc, mkdir (standard on Linux/macOS)
- No API keys, no internet connection, no external dependencies
When to Use
- Self-study sessions — Use
learn and roadmap to structure your study of a new programming language, framework, or any topic
- Exam prep — Use
quiz and test to drill yourself, then review for spaced repetition before an exam
- Daily flashcard habit — Use
flashcard to build a deck and review to maintain a daily spaced repetition routine
- Meeting/lecture notes — Use
note to quickly capture timestamped insights during a meeting, class, or conference talk
- Learning progress tracking — Use
progress to see how many sessions you've logged and stay motivated over time
Examples
# Start learning a topic with estimated time
trivia-quiz learn python 2
# Run a quick quiz on Docker
trivia-quiz quiz docker
# Create a flashcard
trivia-quiz flashcard "What is a closure?"
# Review with spaced repetition
trivia-quiz review
# Check how many sessions you've completed
trivia-quiz progress
# Generate a learning roadmap
trivia-quiz roadmap
# Find study resources
trivia-quiz resource
# Save a quick note
trivia-quiz note "Remember: Python decorators are syntactic sugar for higher-order functions"
# Get a topic summary
trivia-quiz summary kubernetes
# Self-test on a topic
trivia-quiz test algorithms
# Show help
trivia-quiz help
Tips
- Combine
learn → note → quiz → review for a complete study cycle
- Use
roadmap at the start of a new subject to plan your weeks
- Check
progress regularly to maintain accountability
- All history is logged — you can
grep through ~/.local/share/trivia-quiz/history.log for past activity
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
1---2name: trivia-quiz3description: Play knowledge quizzes with facts, categories, and daily challenges. Use when learning topics, drilling flashcards, reviewing answers, tracking progress.4---5# Trivia Quiz
6
7A learning and study assistant for self-paced education. Start learning sessions on any topic, run quick quizzes, drill with flashcards, review via spaced repetition, track your progress, build learning roadmaps, find resources, take notes, summarize topics, and test your knowledge.
8
9## Commands
10
11| Command | Description |
12|---------|-------------|
13| `learn <topic> [hours]` | Start a learning session on a topic with optional time estimate |
14| `quiz <topic>` | Run a quick 3-question quiz on a topic |
15| `flashcard <term>` | Create a flashcard with a front term (answer saved to data dir) |
16| `review` | Launch a spaced repetition review session (1d, 3d, 7d, 14d, 30d intervals) |
17| `progress` | Show total number of logged study sessions |
18| `roadmap` | Generate a multi-week learning roadmap (basics → practice → projects) |
19| `resource` | List resource categories: books, videos, courses, practice sites |
20| `note <text>` | Save a timestamped note to the data log |
21| `summary <topic>` | Get a summary of a topic |
22| `test <topic>` | Self-test your knowledge on a topic |
23| `help` | Show all available commands and usage info |
24| `version` | Display current version (v2.0.0) |
25
26## Data Storage
27
28All data is stored locally in `$TRIVIA_QUIZ_DIR` (defaults to `~/.local/share/trivia-quiz/`):
29
30- **`data.log`** — Notes and general entries saved with `note` command
31- **`history.log`** — Timestamped log of every command executed (learn, quiz, flashcard, etc.)
32
33The data directory is created automatically on first run. No cloud sync — everything stays on your machine.
34
35## Requirements
36
37- **Bash** ≥ 4.0 (uses `set -euo pipefail`)
38- **coreutils** — `date`, `wc`, `mkdir` (standard on Linux/macOS)
39- No API keys, no internet connection, no external dependencies
40
41## When to Use
42
431. **Self-study sessions** — Use `learn` and `roadmap` to structure your study of a new programming language, framework, or any topic
442. **Exam prep** — Use `quiz` and `test` to drill yourself, then `review` for spaced repetition before an exam
453. **Daily flashcard habit** — Use `flashcard` to build a deck and `review` to maintain a daily spaced repetition routine
464. **Meeting/lecture notes** — Use `note` to quickly capture timestamped insights during a meeting, class, or conference talk
475. **Learning progress tracking** — Use `progress` to see how many sessions you've logged and stay motivated over time
48
49## Examples
50
51```bash
52# Start learning a topic with estimated time
53trivia-quiz learn python 2
54
55# Run a quick quiz on Docker
56trivia-quiz quiz docker
57
58# Create a flashcard
59trivia-quiz flashcard "What is a closure?"
60
61# Review with spaced repetition
62trivia-quiz review
63
64# Check how many sessions you've completed
65trivia-quiz progress
66
67# Generate a learning roadmap
68trivia-quiz roadmap
69
70# Find study resources
71trivia-quiz resource
72
73# Save a quick note
74trivia-quiz note "Remember: Python decorators are syntactic sugar for higher-order functions"
75
76# Get a topic summary
77trivia-quiz summary kubernetes
78
79# Self-test on a topic
80trivia-quiz test algorithms
81
82# Show help
83trivia-quiz help
84```
85
86## Tips
87
88- Combine `learn` → `note` → `quiz` → `review` for a complete study cycle
89- Use `roadmap` at the start of a new subject to plan your weeks
90- Check `progress` regularly to maintain accountability
91- All history is logged — you can `grep` through `~/.local/share/trivia-quiz/history.log` for past activity
92
93---
94
95Powered by BytesAgain | bytesagain.com | hello@bytesagain.com