question-generator

star 0

Generates quiz questions according to the template specification. Invoke when need to create quiz questions that follow the standard template or when teaching-content-generator requires questions.

imhaisu By imhaisu schedule Updated 3/2/2026

name: "question-generator" description: "Generates quiz questions according to the template specification. Invoke when need to create quiz questions that follow the standard template or when teaching-content-generator requires questions."

题目生成器

功能概述

根据模板标准与规范文档,自动生成符合规范的选择题。

参考文档

必须严格参考:/Users/edy/Documents/trae_projects/skills/模板标准与规范文档.md

功能特性

  1. 严格遵循模板:按照模板规范生成题目结构
  2. 题型多样:支持单选题、多选题等
  3. 完整解析:每道题都包含详细的解析步骤
  4. 老师总结:可选的老师总结内容
  5. 标注效果:支持圈选和波浪线标注

题目数据结构

按照模板文档第4节的规范,生成的题目数据结构如下:

{
  "id": "题目ID",
  "type": "题目类型",
  "question": "题目文字",
  "options": [
    {
      "label": "选项标签",
      "value": "选项内容",
      "correct": true/false
    }
  ],
  "steps": [
    {
      "index": 步骤编号,
      "summary": "步骤小结",
      "text": "步骤详细文字"
    }
  ],
  "correctAnswer": "正确答案",
  "teacherSummary": "老师总结文字",
  "teacherAvatar": "老师头像URL"
}

设计规范

必须遵循模板文档第2节的设计标准:

颜色系统

  • Primary Blue: #2A7EFE
  • Primary Green: #3BC144
  • Primary Purple: #9F66FF
  • Text Primary: #1D1D1F
  • Text Secondary: #2F75AA

排版系统

  • 题目文字:24px, 600字重
  • 选项文字:20px, 400字重
  • 解析文字:18px, 400字重

使用方法

输入

  • 知识点名称/主题
  • 需要生成的题目数量(默认2道)

输出

  • 符合模板规范的题目数据数组

示例

输入

知识点:一元二次方程的解法
题目数量:2

输出

生成2道符合模板规范的选择题,每道题包含完整的选项、解析步骤等。

Install via CLI
npx skills add https://github.com/imhaisu/teaching-content-generator --skill question-generator
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator