Generate multiple choice quizzes for NeuroCards from PDF or Markdown study materials. Use when the user asks for multiple choice questions, a multiple choice quiz, or a NeuroCards quiz file from source material, or for changes to a NeuroCards quiz file they already have. Outputs a NeuroCards quiz file in TOML.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Quiz Generator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/maaarcooo-quiz-generator-agent-skills)
---
name: quiz-generator
description: Generate multiple choice quizzes for NeuroCards from PDF or Markdown study materials. Use when the user asks for multiple choice questions, a multiple choice quiz, or a NeuroCards quiz file from source material, or for changes to a NeuroCards quiz file they already have. Outputs a NeuroCards quiz file in TOML.
---
# Quiz Generator
Generate multiple choice questions from PDF or Markdown content, as a quiz file NeuroCards imports. Each question tests one idea, is fair to someone who knows the topic, and is answered at a glance. The learner answers by picking from the choices, which are shown in a new order each time. A quiz is for fast recognition: someone who has studied the topic sees the correct choice stand out, and picking it fixes it in memory. Flashcards are where recall is tested hard. A quiz asks about what is worth remembering for the exam and leaves out the rest.
## Process
1. Read the source file (PDF or Markdown) thoroughly
2. Verify accuracy. Where the material names or clearly implies a qualification and exam board (for example OCR A Level Computer Science), treat that specification as the authority on content and terminology. Where the source is wrong and you are confident of the correct version, use the corrected version and list the fix in the chat response. An error the material itself reveals counts as clear: a swapped table, a mislabelled diagram, a claim the rest of the material contradicts. Where you are not confident of the correct version, leave that content out and say why. Never mark a choice correct that you believe to be wrong, and never silently rewrite source content. Keep the source's wording only where it is a legitimate syllabus-level simplification, and leave out content the specification does not require (see Coverage)
3. Identify the content worth remembering: definitions, laws, equations, units, the values candidates must know, conditions, named processes, and common explain/justify points. Treat bolded or highlighted text as a strong signal where formatting survives extraction. Set it apart from the background and illustration around it, which gets no questions
4. Write questions covering the content worth remembering (see Coverage)
5. Reread the finished quiz and fix exactly three things: a question that is only true with context it does not state, a wrong choice that is arguably correct, and choices that are slow to read (see Final Check)
6. Mark the Core questions (see Core Questions)
7. Output the quiz file (see Output Format)
If the user gives instructions with the material (for example restricting to one topic), follow them. The coverage and exclusions then apply to the selected scope only.
If the user gives a quiz file they already have and asks for changes, see Editing a Quiz.
## Question Style
- **One idea per question.** The question makes sense and has one clear answer before the choices are read. Not "Which of these is true?", but "What does the mitochondrion release energy from?"
- **Clearly different wrong choices.** Take each wrong choice from a neighbouring idea in the same topic: the definition of a related term, a different law, the formula of a sibling function, a value from another part of the topic. Never write a near-copy of the correct choice with one word, sign or factor changed, except for the one tempting slip below. Each wrong choice is plainly wrong to someone who has studied the topic, and is the same kind of answer as the correct one (a term, a value, a formula), so none can be ruled out for being off the question
- **At most one tempting slip.** One wrong choice may be the mistake learners really make, such as $\sin$ for $\cos$, a swapped pair or a forgotten square, when that mistake is the point of the question. The other wrong choices are obviously off
- **No "all of the above" or "none of the above"**, since the choices are reordered. Never ask "which of these is NOT"
- **Two to four choices, four by default.** Use fewer only when there are not three clearly different wrong choices
- **More than one correct choice only when the question's wording asks for several**, as in "Which of these are found in plant cells but not animal cells?". Never add "(Select all that apply)" or a count of correct choices to the question, since NeuroCards says so itself when a question has more than one. Never mark a choice correct that is only partly true, and never write two choices that mean the same
- **Short choices.** The key word, phrase or value, not a sentence. Aim for 40 characters and keep to 60, except a formula that cannot be shorter. Never more than 500 characters
- **No repeated wording.** Words every choice would share belong in the question, not in each choice: "How far above its base is the centre of mass of a uniform conical shell of height $h$?" with choices such as $\frac{1}{3}h$, not "On its axis, $\frac{1}{3}h$ above the base" four times
- **Lengths may differ.** The choices do not have to match each other in length or detail. A correct choice that is a little longer or more precise is acceptable
- **Explanation.** One or two sentences on why the correct choice is correct and, where it helps, why the tempting slip is wrong. Leave it out for plain recall, where the answer is its own explanation
- **True as phrased.** Every question is true read on its own, with no page around it. Name in the question the condition the answer depends on: "What happens to the internal energy of an insulated gas when it expands?", not "What happens to the internal energy of a gas when it expands?"
- **Punctuation.** No em-dashes or semicolons in a question, choice or explanation. Use a comma, a colon before a list of values, or two sentences
- **Plain language.** Simple, direct wording. Match the source's syllabus level
- **LaTeX for equations.** Write all mathematical expressions using standard LaTeX notation: inline with `$...$` and display with `$$...$$`. For example, `$E_k = \frac{1}{2}mv^2$` rather than `Ek = ½mv²`
## Question Types
Pick the best fit per piece of knowledge:
- **Definition**: What is X?
- **Recall**: single facts, values, units, equations
- **Single-step application**: a value calculated in one step, with one wrong choice from the usual slip, such as a forgotten square, and the others plainly off. Never multi-step
- **Cause and effect**: what happens to one quantity when another changes, under a stated condition
- **Classification**: which of these are X, all that apply
## Coverage
A quiz asks about what a learner needs to remember for the exam, not everything the source mentions. Notes and textbooks surround the key content with background, asides and illustrative detail that no exam asks for, and a question that is reviewed for months has to be worth it. Quiz size is determined by how much of the material is worth remembering.
- **A question earns its place** when the specification requires the fact or an exam question could reasonably ask for it. Without a named specification, it earns its place when it is a core idea of the material or a point the material treats as important, not a detail mentioned in passing
- **Leave out the noise**: figures quoted only to illustrate (the number of ion pairs alpha radiation makes per cm of air), dates and the names of discoverers, further examples once a point has the one or two it needs (which organ takes up iodine-131), the history and anecdotes around an idea, and detail deeper than the specification goes. Keep any of these the specification asks for, as a history course asks for dates and a geography course for case-study figures
- **When unsure, ask whether a learner who could not answer the question would lose a mark.** If not, leave it out. Do not list each detail left out. Flag only a topic the material covers at length that the specification does not require
## Final Check
After writing the quiz, check for three failure modes only:
1. **Unstated context**: a question that is only true with context it does not state. Name the condition in the question (see True as phrased)
2. **Arguably correct wrong choices**: a wrong choice that someone who knows the topic could defend. Replace it. A neighbouring idea can turn out to be true as well (1 Wb per m$^2$ is also a tesla), so check each one
3. **Slow choices**: more than one wrong choice that is a near-copy of the correct one, a choice over 60 characters that is not a formula, or wording every choice repeats. Rewrite the choices
## Core Questions
A question is Core when it checks a core idea directly: the basic fact of the topic's foundation, or the common mistake on it. The foundation is the definitions, key facts, equations and methods that a pass-grade answer can't do without. NeuroCards puts Core questions first among a learner's new ones.
- About a quarter of the questions are Core
- A question that applies an idea to a new case, or contrasts two finer points, is not Core
- Content the material marks as higher tier, extension or optional is never Core
## Exclusions
Do not create:
- Questions requiring a diagram or visual to answer
- Multi-step calculations
- Trick questions that turn on a word
- Questions for constants and data values the exam supplies
- Questions on background, history or illustrative detail an exam would not ask for (see Coverage)
- Questions for content the source does not adequately explain
## Output Format
A TOML file named after the source file, ending `.toml` (e.g. Physics_Chapter_5.pdf → Physics_Chapter_5.toml):
- The first line is `name = "..."`, a short name for the quiz taken from the material, at most 50 characters
- Then one `[[questions]]` table per question, with `question`, `correct` (a list of the correct choices), `wrong` (a list of the wrong choices), where there is one, `explanation`, and on a Core question `tags = ["Core"]`
- Write each text between double quotes. A text with a backslash, such as LaTeX, or with a double quote goes between triple single quotes instead: `'''$E_k = \frac{1}{2}mv^2$'''`
- No comments or other text in the file
- Accuracy flags go in the chat response, never in the file, as a bullet list in the manner of release notes: one line per item, each starting with `Fixed:`, `Skipped:`, `Kept:` or `Flagged:`, the point stated directly, no paragraphs
**Example output:**
```toml
name = "Cell biology"
[[questions]]
question = "Which organelle releases most of a cell's energy by aerobic respiration?"
correct = ["Mitochondrion"]
wrong = ["Ribosome", "Golgi body", "Nucleus"]
tags = ["Core"]
[[questions]]
question = "Which of these are found in plant cells but not animal cells?"
correct = ["Cell wall", "Chloroplasts"]
wrong = ["Ribosomes", "Cell membrane"]
explanation = "Animal cells have ribosomes and a membrane too, but no wall or chloroplasts."
[[questions]]
question = "What is the kinetic energy of a 2 kg mass moving at 3 m/s?"
correct = ['''$9\;\text{J}$''']
wrong = ['''$18\;\text{J}$''', '''$1.5\;\text{J}$''', '''$36\;\text{J}$''']
explanation = '''$E_k = \frac{1}{2}mv^2 = \frac{1}{2} \times 2 \times 3^2 = 9\;\text{J}$. 18 J leaves out the half.'''
```
## Editing a Quiz
When the user gives a NeuroCards quiz file they already have, pasted or attached, and asks for changes, such as new questions, better wrong choices or questions taken out:
- Change what the user asks for, and mistakes you are confident of (see Process step 2). Leave everything else as it is
- Keep the `name` line, and a `description` line if there is one, exactly as they are
- Copy every question you are not changing word for word and in its place, so NeuroCards can tell what changed and keep each question's review history. The order of a question's choices does not matter
- Keep a question's own text when you change only its choices or explanation. NeuroCards recognises a question by its text, so a question whose text changes starts with no review history
- Leave out the questions the user asks to remove
- New and edited questions follow Question Style, Question Types and Exclusions, and get the Final Check
- Output the whole quiz file, not only the changed questions, under the same file name and in the same format: TOML as in Output Format, or JSON with the same fields where the file was JSON
- In the chat response, list the changes in the manner of release notes: one line per change, each starting with `Added:`, `Edited:` or `Removed:`, after any accuracy flags
The user brings the file back with Update from file in the quiz's menu in NeuroCards, which shows every change before it is made.