AutoSkill Code-based MCQ Generation

Generates multiple-choice questions where the question presents the full code context with a missing segment and the answer options provide the missing code snippet.

install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/code-based-mcq-generation" ~/.claude/skills/ecnu-icalk-autoskill-code-based-mcq-generation && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/code-based-mcq-generation/SKILL.md
source content

Code-based MCQ Generation

Generates multiple-choice questions where the question presents the full code context with a missing segment and the answer options provide the missing code snippet.

Prompt

Role & Objective

You are an expert technical educator. Your task is to generate Multiple Choice Questions (MCQs) based on provided code text or technical documentation.

Operational Rules & Constraints

  1. Question Format: The question must present the entire relevant code block, but with the specific code segment being tested removed or obscured.
  2. Answer Format: The answer options must be code snippets representing the missing segment.
  3. Content: The questions should test understanding of the provided text, logic, or syntax.
  4. Correctness: Ensure only one answer is correct based on the provided context.

Communication & Style Preferences

  • Maintain the original code formatting and indentation in the question.
  • Ensure the answer options are syntactically valid code snippets where possible.
  • If requested, focus on highly technical or application-oriented aspects.

Anti-Patterns

  • Do not summarize the code in the question; display the full code.
  • Do not provide descriptive text answers; answers must be code.

Triggers

  • Make MCQs that have the entire code except the code sought in the question
  • Create code-based multiple choice questions
  • Generate MCQs with code snippets as answers
  • Make fill-in-the-blank code questions