quiz-generator
Skill0 starsChanged 6 months agoMITView on GitHub
Generates multiple-choice study questions (single or multi-select) from Markdown documents, and outputs them in a structured YAML format. Use this skill whenever the user wants to create study questions, flashcards, quizzes, or practice tests from any document or notes — even if they say things like "generate questions from this", "make a quiz", "help me study this", "create practice questions", or "turn this into a test". Always use this skill when a Markdown (or any text) file is involved and the goal is learning or self-assessment.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- SkillMedev/educators-toolkittheir own version, first seen Oct 5, 2026
- sambessey/quiz-generatortheir own version, first seen Sep 30, 2026
- dmccreary/ibook-skillstheir own version, first seen Sep 27, 2026
- EtherealMingo/university-teacher-skillstheir own version, first seen Sep 10, 2026
- LingXi-Org/LingxiSkillstheir own version, first seen Aug 17, 2026
- vishalsachdev/claude-skillstheir own version, first seen Aug 12, 2026
Used with
Projects with it also use course-description-analyzer, glossary-generator and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
vishalsachdevSkillcourse-description-analyzer
This skill analyzes or creates course descriptions for intelligent textbooks by checking for completeness of required elements (title, audience, prerequisites, topics, Bloom's Taxonomy outcomes) and providing quality scores with improvement suggestions. Use this skill when working with course descriptions in /docs/course-description.md that need validation or creation for learning graph generation.
Also in 3 projects that use this
vishalsachdevSkillglossary-generator
This skill automatically generates a comprehensive glossary of terms from a learning graph's concept list, ensuring each definition follows ISO 11179 metadata registry standards (precise, concise, distinct, non-circular, and free of business rules). Use this skill when creating a glossary for an intelligent textbook after the learning graph concept list has been finalized.
Also in 3 projects that use this
jasonatcbSkillfaq-generator
為文件新增常見問題 (FAQ) 區塊。當用戶說「為某個文檔添加 FAQ」、「在文件中加入常見問題」、「生成 FAQ」或類似意圖時觸發此技能。使用方式:提供文檔路徑(如 docpath.md),技能會分析文檔內容,生成 2-3 個與主題相關的常見問題,並使用 zensical quote callout 格式添加到 ## 常見問題區塊中。
Also in 3 projects that use this
- +1 more from vishalsachdev
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- dmccreary/ibook-skills★ 105same name
- inbharatai/claude-skills★ 37same name
- mjunaidca/robolearn★ 9same name
- EtherealMingo/university-teacher-skills★ 8same name
- yaxingson/skills★ 4same name
- EnkrateiaLucca/skills★ 3same name
- vishalsachdev/claude-skills★ 2same name
- xiongxianfei/skillsmith★ 2same name
- SkillMedev/course-creator-launch-system★ 1same name
- SkillMedev/educators-toolkit★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- claude-skills-versionSkill
- pdf-to-markdownSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Coverage is the priority: Before writing any questions, do a full inventory of the document:
- Distinctive: line 38
Only generate fewer questions if the document genuinely does not contain enough material (e.g.
- Distinctive: line 39
If the user specifies a number explicitly, treat it as a minimum floor, not a ceiling.
- Distinctive: line 54
Use the canonical schema below.
- Distinctive: line 103
If running in Claude Code, save to the same directory as the source file unless told otherwise.
- Distinctive: line 104
If in Claude.ai chat, present the YAML in a code block for the user to copy.
- Distinctive: line 108
After saving the YAML, run the conversion script to produce the interactive HTML test:
- Distinctive: line 120
After saving the YAML, run the conversion script to produce the summary:
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Quiz Generator Skill
Generates structured multiple-choice study questions from a Markdown document and outputs them as a YAML file ready to use in study tools, scripts, or Claude Code pipelines.
Workflow
1. Read the source document
- Accept input as: uploaded
.mdfile, pasted Markdown text, or a file path. - Extract the main topics, concepts, definitions, processes, and facts.
- Identify natural groupings or sections to distribute questions evenly.
2. Analyse and plan questions
Coverage is the priority. Before writing any questions, do a full inventory of the document:
- List every distinct concept, definition, fact, process, list, and relationship in the document.
- Group them by section or topic.
- Assign at least one question per distinct concept — do not merge or skip concepts to stay under a number limit.
Question count rules:
- Target at least 2 questions per topic or concept or definition or fact or process for a typical document.
- Full knowledge coverage always wins over a round number.
- Only generate fewer questions if the document genuinely does not contain enough material (e.g. a very short or narrow document).
- If the user specifies a number explicitly, treat it as a minimum floor, not a ceiling.
Question type mapping:
- Key facts / definitions →
singleanswer - Lists, characteristics, steps, or multi-part concepts →
multipleanswer - Recommended split: ~40% single, ~60% multiple
Difficulty distribution:
- Aim for a balanced mix: ~30% easy, ~45% medium, ~25% hard
- Easy → recall / definitions
- Medium → comprehension / application
- Hard → analysis / edge cases / relationships between concepts
3. Generate the YAML output
Use the canonical schema below. Output only valid YAML — no prose before or after, no markdown code fences, unless the user asks to see it in the chat.
quiz:
title: "Topic Name" # derived from the document title or first heading
source: "filename.md" # original file name, or "pasted content" if no file
generated_at: "YYYY-MM-DD" # today's date
questions:
- id: 1
question: "Question text here?"
type: single # single | multiple
options:
- id: a
text: "Option A"
- id: b
text: "Option B"
- id: c
text: "Option C"
- id: d
text: "Option D"
answers: [b] # always a list, even for single-answer questions
explanation: "Brief explanation of why these answers are correct."
topic: "High-level subject grouping for this question." # E.g. 'OSI Model', 'TCP/IP', 'Security', 'DNS'. Used to group or filter questions by topic.
difficulty: medium # easy | medium | hard
tags: [tag1, tag2] # 1-3 relevant topic tags from the document4. Quality checks before outputting
Coverage:
- Every section of the document has at least one question
- No significant concept, definition, or fact from the document is left uncovered
- If concepts remain uncovered, add more questions until all are covered
Question quality:
- Every question has at least 3 options (4 preferred)
answerslist matches validoption.idvaluestype: multiplequestions have 2 or more correct answerstype: singlequestions have exactly 1 correct answer- Explanations are concise (1-3 sentences) and educational
- No duplicate questions
- Tags are lowercase, no spaces (use hyphens if needed)
5. Save the YAML output file
- Default filename:
<source-basename>-quiz.yaml
Example:redes.md→redes-quiz.yaml - If running in Claude Code, save to the same directory as the source file unless told otherwise.
- If in Claude.ai chat, present the YAML in a code block for the user to copy.
6. Generate the HTML test file
After saving the YAML, run the conversion script to produce the interactive HTML test:
python3 skills/quiz-generator/yaml_to_html.py <source-basename>-quiz.yamlThis produces <source-basename>-quiz.html alongside the YAML. Do not generate the HTML manually — always delegate to yaml_to_html.py.
7. Generate the summary Markdown file
After saving the YAML, run the conversion script to produce the summary:
python3 skills/quiz-generator/yaml_to_md.py <source-basename>-quiz.yamlThis produces <source-basename>-quiz-summary.md alongside the YAML. Do not generate the summary manually — always delegate to yaml_to_md.py.
Options the user can specify
| Option | Default | Example |
| Number of questions | enough to cover all content (target ~40, no hard cap) | "genera exactamente 35 preguntas" |
| Difficulty filter | mixed (30% easy / 45% medium / 25% hard) | "solo preguntas difíciles" |
| Question type | mixed (~40% single / ~60% multiple) | "solo multi-selección" |
| Language of output | same as document | "preguntas en inglés" |
| Output filename | <source>-quiz.yaml | "guárdalo como examen1.yaml" |
| Summary file | always generated alongside YAML | "no generes el resumen" |
| HTML test file | always generated alongside YAML | "no generes el HTML" |
| Tags/topics to focus on | all | "enfócate en el capítulo 3" |
Example invocations (Claude Code)
# Basic usage — generates YAML, then runs both scripts to produce HTML + summary MD
claude --file notas.md "Genera preguntas de estudio usando el quiz-generator skill"
# Custom quantity
claude --file notas.md "Genera 20 preguntas de estudio en YAML"
# Focus on a topic
claude --file notas.md "Genera 10 preguntas difíciles sobre el tema de redes"
# Skip the HTML or summary (scripts won't be run for the skipped output)
claude --file notas.md "Genera preguntas de estudio, no generes el resumen"The skill always runs yaml_to_html.py and yaml_to_md.py after saving the YAML unless the user explicitly asks to skip one of them.
Reference
See references/yaml-schema.md for the full annotated schema with all optional fields
and extended examples.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

