This skill helps educators generate chapter-specific interactive quizzes aligned to learning graphs and Bloom’s levels to assess understanding.
npx playbooks add skill vishalsachdev/claude-skills --skill quiz-generator
Version: 0.2
This skill automates quiz creation for intelligent textbooks by analyzing chapter content to generate contextually relevant multiple-choice questions. Each quiz is aligned to specific concepts from the learning graph, distributed across Bloom's Taxonomy cognitive levels, and formatted using mkdocs-material question admonitions with upper-alpha (A, B, C, D) answer choices. The skill ensures quality distractors, balanced answer distribution, and comprehensive explanations for educational value.
Use this skill after:
Trigger this skill when:
The skill can run incrementally (chapter by chapter) or in batch mode (entire textbook).
Indicate to the user that the Quiz Generator Skill (version) is running.
Calculate content readiness score (1-100) for each target chapter:
Quality Checks:
Content Readiness Ranges:
User Dialog Triggers:
Based on chapter type (introductory, intermediate, advanced), set target Bloom's Taxonomy distribution:
Introductory Chapters:
Intermediate Chapters:
Advanced Chapters:
Determine chapter type by:
Target question count: 8-12 per chapter (default: 10)
Analyze chapter content and learning graph to prioritize concepts:
Priority 1 (Must Test):
Priority 2 (Should Test):
Priority 3 (May Test):
Aim for 80%+ coverage of Priority 1 concepts.
For each concept selected for testing, generate question at appropriate Bloom's level following target distribution.
IMPORTANT FORMATTING REQUIREMENT:
All questions MUST use the mkdocs-material question admonition format with upper-alpha list styling:
#### 1. What is the primary purpose of a learning graph?
<div class="upper-alpha" markdown>
1. To create visual decorations for textbooks
2. To map prerequisite relationships between concepts
3. To generate random quiz questions
4. To organize files in a directory structure
</div>
??? question "Show Answer"
The correct answer is **B**. A learning graph is a directed graph that maps prerequisite relationships between concepts, showing which concepts must be learned before others. This ensures proper scaffolding in educational content.
**Concept Tested:** Learning Graph
**See:** [Learning Graph Concept](../concepts/learning-graph.md)
Formatting Rules:
<div class="upper-alpha" markdown> wrapper??? question "Show Answer" admonitionQuestion Writing Guidelines:
Remember Level:
Understand Level:
Apply Level:
Analyze Level:
Evaluate Level:
Create Level:
For each incorrect answer option (distractors), ensure:
Plausibility:
Educational Value:
Common Distractor Patterns:
Avoid:
For each question, write explanation that:
Confirms Correct Answer:
Teaches (Optional but Recommended):
Example Explanation:
The correct answer is **B**. A learning graph is a directed graph that maps
prerequisite relationships between concepts. Option A is incorrect because
learning graphs serve a structural purpose, not decorative. Option C is
incorrect because quiz generation is not the primary purpose. Option D
confuses learning graphs with file systems.
**Concept Tested:** Learning Graph
**See:** [Learning Graph Concept](../concepts/learning-graph.md#definition)
Check that correct answers are distributed evenly across A, B, C, D:
Target Distribution:
Avoid Patterns:
Randomization Strategy:
Generate quiz file with proper structure:
Option 1: Separate Quiz File (docs/[section]/[chapter-name]-quiz.md):
# Quiz: [Chapter Name]
Test your understanding of [chapter topic] with these questions.
---
#### 1. [Question text]?
<div class="upper-alpha" markdown>
1. [Option 1]
2. [Option 2]
3. [Option 3]
4. [Option 4]
</div>
??? question "Show Answer"
The correct answer is **[LETTER]**. [Explanation]
**Concept Tested:** [Concept Name]
**See:** [Link to chapter section]
---
#### 2. [Question text]?
[Continue for all questions...]
Option 2: Embedded in Chapter (append to chapter file):
[Chapter content...]
---
## Chapter Quiz
Test your understanding with these review questions.
#### 1. [Question text]?
[Continue with quiz questions...]
Formatting Requirements:
Create docs/learning-graph/quizzes/[chapter-name]-quiz-metadata.json:
{
"chapter": "Chapter Name",
"chapter_file": "docs/section/chapter-name.md",
"quiz_file": "docs/section/chapter-name-quiz.md",
"generated_date": "YYYY-MM-DD",
"total_questions": 10,
"content_readiness_score": 85,
"overall_quality_score": 78,
"questions": [
{
"id": "ch1-q001",
"number": 1,
"question_text": "What is the primary purpose of a learning graph?",
"correct_answer": "B",
"bloom_level": "Understand",
"difficulty": "medium",
"concept_tested": "Learning Graph",
"source_link": "../concepts/learning-graph.md",
"distractor_quality": 0.85,
"explanation_word_count": 67
}
],
"answer_distribution": {
"A": 2,
"B": 3,
"C": 3,
"D": 2
},
"bloom_distribution": {
"Remember": 2,
"Understand": 4,
"Apply": 3,
"Analyze": 1,
"Evaluate": 0,
"Create": 0
},
"concept_coverage": {
"total_concepts": 12,
"tested_concepts": 10,
"coverage_percentage": 83
}
}
Create or update docs/learning-graph/quiz-bank.json with all questions:
{
"textbook_title": "Building Intelligent Textbooks",
"generated_date": "YYYY-MM-DD",
"total_chapters": 20,
"total_questions": 187,
"questions": [
{
"id": "ch1-q001",
"chapter": "Introduction to Learning Graphs",
"question_text": "What is the primary purpose of a learning graph?",
"options": {
"A": "To create visual decorations for textbooks",
"B": "To map prerequisite relationships between concepts",
"C": "To generate random quiz questions",
"D": "To organize files in a directory structure"
},
"correct_answer": "B",
"explanation": "A learning graph is a directed graph...",
"bloom_level": "Understand",
"difficulty": "medium",
"concept": "Learning Graph",
"chapter_file": "docs/concepts/learning-graph.md",
"source_section": "#definition",
"tags": ["graph", "prerequisites", "scaffolding"]
}
]
}
Use Cases for Quiz Bank:
Create docs/learning-graph/quiz-generation-report.md:
# Quiz Generation Quality Report
Generated: YYYY-MM-DD
## Overall Statistics
- **Total Chapters:** 20
- **Total Questions:** 187
- **Avg Questions per Chapter:** 9.4
- **Overall Quality Score:** 76/100
## Per-Chapter Summary
| Chapter | Questions | Quality Score | Bloom's Score | Coverage |
|---------|-----------|---------------|---------------|----------|
| Ch 1: Introduction | 10 | 82/100 | 24/25 | 83% |
| Ch 2: Learning Graphs | 12 | 78/100 | 22/25 | 90% |
| ... | ... | ... | ... | ... |
## Bloom's Taxonomy Distribution (Overall)
| Level | Actual | Target | Deviation |
|-------|--------|--------|-----------|
| Remember | 22% | 25% | -3% ✓ |
| Understand | 28% | 30% | -2% ✓ |
| Apply | 27% | 25% | +2% ✓ |
| Analyze | 18% | 15% | +3% ✓ |
| Evaluate | 4% | 4% | 0% ✓ |
| Create | 1% | 1% | 0% ✓ |
**Bloom's Distribution Score:** 24/25 (excellent)
## Answer Balance (Overall)
- A: 24% (45/187)
- B: 26% (49/187)
- C: 25% (47/187)
- D: 25% (46/187)
**Answer Balance Score:** 15/15 (perfect distribution)
## Concept Coverage
- **Total Concepts:** 198
- **Tested Concepts:** 156
- **Coverage:** 79%
**Coverage Score:** 16/20 (good)
## Question Quality Analysis
- **Well-formed questions:** 92% (172/187)
- **Quality distractors:** 88% avg
- **Clear explanations:** 100%
- **Valid links:** 98%
**Question Quality Score:** 28/30 (excellent)
## Recommendations
### High Priority
1. Increase coverage for 15 untested high-centrality concepts
2. Add 2-3 more Remember-level questions (+3%)
3. Fix 3 questions with ambiguous phrasing
### Medium Priority
1. Improve distractors for 12 questions (quality < 80%)
2. Add more Apply-level questions for Ch 5, 8, 12
3. Verify and update 3 broken links
### Low Priority
1. Add alternative questions for popular concepts
2. Create study guide versions
3. Export to LMS-compatible formats
## Gaps by Chapter
**Chapters with low coverage (<70%):**
- Ch 7: Advanced Concepts (64% coverage) - Missing questions for: [list]
- Ch 14: Integration Patterns (58% coverage) - Missing questions for: [list]
Perform comprehensive validation:
1. No Ambiguity:
2. Distractor Quality:
3. Grammar & Clarity:
4. Answer Balance:
5. Bloom's Distribution:
6. Concept Coverage:
7. No Duplicates:
8. Explanation Quality:
9. Link Validation:
10. Bias Check:
Success Criteria:
Create docs/learning-graph/quizzes/alternative-questions.json with 2-3 alternative questions per concept:
{
"alternatives": [
{
"concept": "Learning Graph",
"questions": [
{
"question_text": "Which data structure is used to represent a learning graph?",
"options": {
"A": "Linked list",
"B": "Directed acyclic graph",
"C": "Binary tree",
"D": "Hash table"
},
"correct_answer": "B",
"bloom_level": "Remember"
},
{
"question_text": "What problem does a learning graph solve?",
"options": {
"A": "Organizing files alphabetically",
"B": "Determining concept learning order",
"C": "Generating quiz questions",
"D": "Creating visual diagrams"
},
"correct_answer": "B",
"bloom_level": "Understand"
}
]
}
]
}
Use for:
#### 3. Given a course with 50 concepts, what is the most important factor in organizing the learning graph?
<div class="upper-alpha" markdown>
1. Alphabetical order of concept names
2. Prerequisite relationships between concepts
3. The length of concept definitions
4. The visual appearance of the graph diagram
</div>
??? question "Show Answer"
The correct answer is **B**. Prerequisite relationships are the most important factor because they determine the order in which concepts must be learned. A learning graph maps these dependencies to ensure students learn foundational concepts before advanced ones. Alphabetical order (A) and visual appearance (D) are organizational preferences, not educational requirements. Definition length (C) does not affect concept sequencing.
**Concept Tested:** Learning Graph Structure
**See:** [Learning Graph](../concepts/learning-graph.md#prerequisites)
<div class="upper-alpha" markdown> wrapper</div> tag??? question "Show Answer" admonitionFormat Errors:
<div class="upper-alpha" markdown> wrapper</div> tagQuestion Quality:
Distractor Quality:
Explanation Quality:
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.