agentleFS
Emmerson-MirandaEmmerson-Miranda/claude-skills/skills/quiz-generator/SKILL.md

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

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.
  • vishalsachdevSkill

    course-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

  • vishalsachdevSkill

    glossary-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

  • jasonatcbSkill

    faq-generator

    為文件新增常見問題 (FAQ) 區塊。當用戶說「為某個文檔添加 FAQ」、「在文件中加入常見問題」、「生成 FAQ」或類似意圖時觸發此技能。使用方式:提供文檔路徑(如 docpath.md),技能會分析文檔內容,生成 2-3 個與主題相關的常見問題,並使用 zensical quote callout 格式添加到 ## 常見問題區塊中。

    Also in 3 projects that use this

  • +1 more from vishalsachdev

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
  1. Distinctive:

    Coverage is the priority: Before writing any questions, do a full inventory of the document:

    line 29
  2. Distinctive:

    Only generate fewer questions if the document genuinely does not contain enough material (e.g.

    line 38
  3. Distinctive:

    If the user specifies a number explicitly, treat it as a minimum floor, not a ceiling.

    line 39
  4. Distinctive:

    Use the canonical schema below.

    line 54
  5. Distinctive:

    If running in Claude Code, save to the same directory as the source file unless told otherwise.

    line 103
  6. Distinctive:

    If in Claude.ai chat, present the YAML in a code block for the user to copy.

    line 104
  7. Distinctive:

    After saving the YAML, run the conversion script to produce the interactive HTML test:

    line 108
  8. Distinctive:

    After saving the YAML, run the conversion script to produce the summary:

    line 120

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 .md file, 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:

  1. List every distinct concept, definition, fact, process, list, and relationship in the document.
  2. Group them by section or topic.
  3. 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 → single answer
  • Lists, characteristics, steps, or multi-part concepts → multiple answer
  • 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 document

4. 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)
  • answers list matches valid option.id values
  • type: multiple questions have 2 or more correct answers
  • type: single questions 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.yaml

This 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.yaml

This 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

OptionDefaultExample
Number of questionsenough to cover all content (target ~40, no hard cap)"genera exactamente 35 preguntas"
Difficulty filtermixed (30% easy / 45% medium / 25% hard)"solo preguntas difíciles"
Question typemixed (~40% single / ~60% multiple)"solo multi-selección"
Language of outputsame as document"preguntas en inglés"
Output filename<source>-quiz.yaml"guárdalo como examen1.yaml"
Summary filealways generated alongside YAML"no generes el resumen"
HTML test filealways generated alongside YAML"no generes el HTML"
Tags/topics to focus onall"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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.