测验生成器:自动创建评估 - Openclaw Skills
什么是 测验生成器?
测验生成器是 Openclaw Skills 库中的一个专门组件,旨在简化教育内容创作和知识验证。它允许开发人员、教育工作者和团队负责人将技术文档、研究论文或一般主题转化为结构化的评估。通过利用 Openclaw Skills 的力量,该工具确保测验不仅仅是一组问题,而是完整的学习体验,具有不同的难度级别、多种格式以及强化理解的详细教学解释。
下载入口:https://github.com/openclaw/skills/tree/main/skills/ahmed181283/quiz-creator
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install quiz-creator
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
<project>/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 quiz-creator。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
测验生成器 应用场景
- 为开发人员和工程师构建技术认证模拟测试。
- 为新员工创建自动化的入职评估,以验证知识转移。
- 从长篇文档或书籍中生成学习材料和知识检查。
- 生成 JSON 格式的评估数据,以便集成到学习管理系统 (LMS) 中。
- 该技能分析提供的源材料,以提取关键概念、事实和关系。
- 它规划问题的均衡分布,通常目标是 40% 简单、40% 中等和 20% 困难级别。
- 它使用多种格式(如多选题、判断题和填空题)生成问题,以确保彻底的测试。
- 为每个问题编写详细的解释,以澄清为什么正确答案是正确的以及为什么干扰项是错误的。
- 该技能在交付最终输出之前,会根据质量检查清单进行最终审查,以确保准确性和清晰度。
测验生成器 配置指南
要将测验生成器集成到您的工作流程中,请确保您的代理已配置为使用 Openclaw Skills。您可以通过 CLI 命令或代理提示提供源主题或文档来触发生成过程。
# Example: Generating a quiz from a specific topic
openclaw-agent run quiz-generator --topic "React Server Components" --questions 10
测验生成器 数据架构与分类体系
该技能生成结构化数据,可以作为 Markdown 或程序化 JSON 使用。该架构按如下方式组织内容:
| Component | Description |
|---|---|
| Quiz Metadata | 包括标题、描述、目标受众和预计完成时间。 |
| Question Object | 包含问题文本、难度级别(easy/medium/hard)和类型。 |
| Options/Responses | 包含可能答案的列表,以及多选题格式中合理的干扰项。 |
| Answer Key | 问题 ID 与正确答案的快速参考映射。 |
| Explanations | 提供每个正确答案背后的“原因”的详细上下文。 |
name: quiz-generator
description: Generate quizzes and assessments from any topic or content. Create questions of varying difficulty (easy, medium, hard), multiple formats (multiple choice, true/false, fill-in-blank), with answers and detailed explanations. Use when the user asks to create a quiz, test knowledge, generate questions, or build assessments.
Quiz Generator
Overview
Generate comprehensive quizzes from topics, documents, or learning materials. Include questions of varying difficulty, different question formats, correct answers, and detailed explanations to reinforce learning.
Quiz Structure
Required Elements
-
Quiz Title and Description
- Clear, descriptive title
- Topic focus
- Target audience level
- Estimated completion time
- Question count
-
Questions Each question must include:
- Question text
- Question difficulty (easy/medium/hard)
- Question type (see formats below)
- Correct answer(s)
- Detailed explanation
- Optional: reference to source material
-
Answer Key
- Quick reference for all correct answers
- Usually at the end of the quiz
-
Scoring Guide (optional)
- How many points per question
- What score indicates mastery
- Recommended follow-up based on score ranges
Question Formats
Multiple Choice (default)
- 3-5 answer options (1 correct, others plausible distractors)
- Label options A, B, C, D, E
- Distractors should be common misconceptions
True/False
- Statement to evaluate
- Explanation for why it's true or false
Fill-in-the-Blank
- Sentence or statement with blank(s)
- Case-insensitive matching preferred
- List acceptable alternative answers
Short Answer
- Open-ended question
- Provide example acceptable answers
- Explain key points that should be included
Matching
- Two columns to match (terms to definitions, dates to events, etc.)
- Indicate the relationship clearly
Difficulty Guidelines
Easy
- Basic facts, definitions, terminology
- Direct recall from source material
- Should be answerable after one pass through material
- Example: "What does API stand for?"
Medium
- Requires understanding concepts, not just facts
- Inference or application of knowledge
- May require connecting multiple pieces of information
- Example: "Which HTTP method would you use to update an existing resource?"
Hard
- Requires synthesis, analysis, or critical thinking
- Complex scenarios or edge cases
- Comparison or evaluation of options
- Example: "Compare REST and GraphQL architectures for a real-time chat application."
Writing Guidelines
Question Quality
- Ensure each question tests something meaningful
- Avoid ambiguous phrasing
- Make questions independent (don require previous answers)
- Balance question types and difficulty levels
- Include 10-20 questions for a comprehensive quiz
Explanations
- Explain not just the correct answer, but why alternatives are wrong
- Reference the source material when applicable
- Add additional context or related concepts
- Help the learner understand, not just memorize
Distractor Generation
- Create plausible wrong answers
- Use common misconceptions or errors
- Avoid "all of the above" or "none of the above" (become guesswork)
- Keep distractors similar in length and tone to correct answer
Example Question
### Question 3 (Medium)
What is the primary purpose of environment variables in application configuration?
A) To store sensitive credentials securely
B) To configure application behavior across environments
C) To manage database connections
D) To handle user authentication
**Correct Answer:** B
**Explanation:** Environment variables allow applications to be configured differently across development, testing, and production environments without changing code. While they can store credentials (A), their primary purpose is configuration flexibility. Database connections (C) and authentication (D) are specific use cases, not the primary purpose.
Generation Workflow
-
Understand the Source
- Read the topic or provided material
- Identify key concepts, facts, and relationships
- Note common pitfalls or misconceptions
-
Plan Question Distribution
- Target: 40% easy, 40% medium, 20% hard
- Mix question types based on content
- Ensure coverage of all key topics
-
Generate Questions
- Draft questions with answers and explanations
- Review for clarity and accuracy
- Check that explanations actually explain
-
Review and Refine
- Remove redundant or overlapping questions
- Ensure difficulty is consistent
- Verify all answers are correct
- Add a practice question or bonus if appropriate
Output Format
Deliver the quiz in the user's preferred format:
- Markdown (default) - with sections clearly marked
- JSON - for programmatic use or quiz platforms
- Plain text - for simple assessments
JSON Format Example
{
"title": "Web Development Fundamentals Quiz",
"description": "Test your knowledge of HTML, CSS, and JavaScript basics",
"questions": [
{
"id": 1,
"difficulty": "easy",
"type": "multiple_choice",
"question": "What does HTML stand for?",
"options": [
"Hyper Text Markup Language",
"High Tech Modern Language",
"Hyper Transfer Markup Language",
"Home Tool Markup Language"
],
"correct_answer": 0,
"explanation": "HTML stands for Hyper Text Markup Language. It's the standard markup language for creating web pages."
}
],
"answer_key": {
"1": "A"
}
}
Quality Checklist
Before finalizing a quiz, verify:
- All questions are clear and unambiguous
- Correct answers are accurate
- Explanations are helpful and educational
- Difficulty levels are appropriate for audience
- Question types are varied
- Key topics from source are covered
- Distractors are plausible but clearly wrong
- Quiz title and description are informative
- Answer key is complete and accurate