mcpbeat Sign in

Generating Practice Questions Agent Skill

Generate educational practice questions from lecture notes to test student understanding. Use when users request practice questions, exam preparation materials, study guides, or assessment items based on lecture content.

7k tokens
context cost
the whole folder, loaded on every use
4
files
instructions only
0
copies elsewhere
how many repositories repackaged it
1436
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/datawhalechina/agent-skills-with-anthropic --skill generating-practice-questions

The instruction itself

10 sections, as written by the author

Practice Question Generator

Generate comprehensive practice questions from lecture notes to test student understanding of learning objectives and key concepts.

Input

Supported formats: LaTeX (.tex), PDF, Markdown (.md), plain text (.txt)

  • PDF: Use pdfplumber for text extraction
  • LaTeX: Read as text, strip preamble (everything before \begin{document}), preserve math environments ($...$, \[...\], \begin{equation}, etc.)
  • Markdown/Text

Content to extract:

  • Learning objectives - Usually at beginning: "After this lecture, you should be able to..." or may be in section: "Learning Outcomes","Objectives", "Goals". If absent, derive from main topics.
  • Main topics - Section headings, bold terms, definitions, algorithms.
  • Examples - Use for realistic scenarios in questions.

Question Structure

Generate questions in this order:

  • True/False (one per learning objective, or 3-5 if no objectives)
  • Explanatory Questions (3-5 covering main topics)
  • Coding Question (1 algorithm implementation or concept simulation)
  • Use Case (1 realistic application)

For each question type, follow guidelines below, and never include answer key.

Question Guidelines

Type 1: True/False

Test factual understanding and common misconceptions.

Coverage:

  • One per learning objective, or 3-5 covering main topics if no objectives

Difficulty progression:

  • Start with 1-2 simple definitional questions
  • Include 2-3 reasoning-based questions requiring concept application or testing relationships between concepts

Quality criteria:

  • Unambiguous with one correct interpretation
  • Clear language without complex nested clauses
  • Answer directly found in lecture notes
  • Wrong answer reveals common misconception

Examples:

  • *Easy*: "In supervised learning, the training data includes both input features and their corresponding labels."
  • *Medium*: "A model with high training accuracy but low test accuracy is likely underfitting the data."

Type 2: Explanatory Questions

Test deeper understanding by requiring students to articulate concepts, compare approaches, and explain reasoning.

Topic selection:

  • Choose 3-5 main topics (key algorithms and their implementations, Advantages/limitations of approaches, Relationships between concepts)
  • Avoid repetition: If topic appears in T/F, ask about a *different aspect*

Question formulations:

  • "Explain..." - requires description in student's words
  • "Compare and contrast..." - tests understanding of differences
  • "Why does..." - tests causal reasoning
  • "What are the advantages/disadvantages..." - tests critical analysis
  • "Describe the steps..." - tests procedural knowledge

Quality criteria:

  • Open-ended but focused
  • Cannot be answered with simple yes/no
  • Requires 3-5 sentences to answer well

Examples:

  • "Explain the bias-variance tradeoff. How does increasing model complexity affect bias and variance?"
  • "Compare K-Nearest Neighbors and Decision Trees in terms of decision boundaries, training time, and prediction time."

Type 3: Coding Question

Test practical implementation through code.

Scope:

  • Implementation of an algorithm discussed in lecture
  • Simulation of a concept or process
  • Must be achievable with lecture knowledge only
  • Should take 15-30 minutes for prepared student

Required structure:

  • Clear objective
  • Step-by-step instructions (3-5 steps)
  • Function signature (if applicable)
  • Expected behavior with input/output examples
  • Hints (optional but helpful)

Language:

  • Python (default) with standard library.
  • If using external libraries: NumPy, pandas, matplotlib, scikit-learn.
  • Should not require advanced Python features

Type 4: Use Case Question

Test ability to apply concepts or algorithms explained in lecture notes to realistic scenarios.

Components:

  • Context - Realistic scenario description
  • Data description - What data is available (provide generation code if needed)
  • Task - What needs accomplishment
  • Constraints (optional) - Time, space, accuracy requirements
  • Hints (2-3) - Guidance without giving solution
  • Libraries - Can use scikit-learn, pandas, NumPy

Data generation: If needed, provide simple, clear code to generate appropriate data.

Output Format Guidelines

Output format depends on user request (LaTeX, PDF, Markdown, plain text).

General structure for all formats:

  • Title with document name
  • Instructions section
  • Part 1: True/False Questions (numbered sequentially)
  • Part 2: Explanatory Questions (numbered sequentially)
  • Part 3: Coding Question (with steps, signature, examples, hints)
  • Part 4: Use Case Application (with scenario, data, task, requirements, hints)

For specific formats: For LaTeX and Markdown document structures, use the following templates (in assets/ folder):

  • questions_template.tex - Complete LaTeX document structure with formatting
  • markdown_template.md - Complete Markdown document structure

Supporting Resources

References (in references/ folder):

  • examples_by_topic.md - Domain-specific question examples for ML topics (algorithms, preprocessing, evaluation, etc.)

Other skills for the same job

different authors, same section of the catalogue
Webapp Testing
by anthropics
vendor ×12

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

6k tokens scripts
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
Test Driven Development
by w95
×7

Use when implementing any feature or bugfix, before writing implementation code

2k tokens
Systematic Debugging
by ratacat
×7

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

10k tokens scripts
Verification Before Completion
by ZhanlinCui
×6

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always

1k tokens
Backtest Expert
by BaggaT236
×3

Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.

15k tokens scripts
Adaptyv
by christophacham
×3

Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays, expression testing, thermostability measurements, enzyme activity assays, or protein sequence optimization. Also use for submitting experiments via API, tracking experiment status, downloading results, optimizing protein sequences for better expression using computational tools (NetSolP, SoluProt, SolubleMPNN, ESM), or managing protein design workflows with wet-lab validation.

16k tokens
Aeon
by christophacham
×3

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

19k tokens

How to use it

Copy the folder

Take datawhalechina/generating-practice-questions from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.