quiz-from-glossarylisted
Install: claude install-skill rgglez/rgglez-dev-skills
# Quiz from glossary
Generate a quiz whose questions, correct answers, distractors, and explanations
come from the glossary alone. The glossary is the only source of truth: the
quiz tests what the glossary says, not what the agent knows about the topic.
## 1. Settle the inputs
- **Glossary**: a file or pasted text. Accept any layout (Markdown list or
table, definition list, headings, CSV, JSON, YAML).
- **Output format**: `json` or `ts`. If the request does not state it, ask the
user before generating. Do not pick one silently.
- **Number of questions**: use the requested count. Otherwise use 10, or the
number of glossary terms if smaller.
- **Destination**: use the requested path. Otherwise, when the glossary is a
file, write `<glossary-basename>.quiz.json` or `.quiz.ts` beside it; when it
was pasted, return the quiz in the reply.
## 2. Parse the glossary into entries
Build a list of entries `{ term, definition, section, related }`:
- `section`: the heading or category under which the term appears. If the
glossary has no sections, use its title; if it has no title, a short topic
name written in the glossary's language.
- `related`: terms the glossary itself links to the entry ("see also",
"compare", "opposite of", "not to be confused with", synonyms).
Detect the quiz language from the definitions (term names are often English
loanwords). Write every human-readable value in that language: `section`,
`prompt`, option `text`, `explanation`, and the true/f