Packs / education-public
quiz-from-question-bank
generate randomised, reproducible quiz versions and answer keys from a question bank
Install
logicpacks pack use education-public/quiz-from-question-bankget_pack education-public/quiz-from-question-bankThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
python-stdlib - Checks: 2 in
outcome/checks.yaml - Code:
quiz.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Generate randomised, reproducible quiz versions and answer keys from a question bank.
Steps
- Keep the question bank as JSON with the correct answer text.
- Run quiz.py with a seed per class/section; store the seed.
- Print versions; mark with the KEY line.
Edge cases
- Options like 'All of the above' must not be shuffled; keep them out of shuffled banks.
- Bank smaller than --n errors out.
Don'ts
- Don't publish the bank or keys where students can find them.
Routes (free first)
python-stdlib:code/quiz.py(no install).