# Quiz Site Generator: Turn Any Question Bank into a Practice

> Turn a question bank (docx or JSON) into a self-contained quiz website with instant grading, mock exams, wrong-answer review, and local progress tracking.

Quiz Site Generator: Turn Any Question Bank into a Practice is a free AI agent skill on Agensi by wing1107, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [wing1107](https://www.agensi.io/creators/wing1107)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/quiz-site-generator-turn-any-question-bank-into-a-practice
- Tags: automation, python, static-site-generator, education, documentation

## About this skill

Teachers and trainers already have question banks — in Word documents, exported spreadsheets, plain JSON. What they don't have is an easy way to turn them into something students can actually practice with.

This skill does exactly that: it takes your question bank and builds a **single, self-contained HTML quiz site**. No server, no framework, no CDN. Double-click the file and it works — offline, forever.

### What the skill does

1. **Parses your question bank** from a Word document (or accepts JSON directly), with a quality report: missing answers, multi-select answers with fewer than 2 options, malformed items — all flagged before anything ships.
2. **Builds the site** from a proven single-page template, embedding all questions into one portable HTML file.
3. **Verifies the output** with a syntax check so the delivered page never silently breaks.

### The generated site includes

- **Practice mode** — questions grouped by type and chapter-sized batches (configurable), with instant grading and correct-answer reveal
- **Mock exam** — configurable paper composition (e.g. 50 single + 30 true/false + 20 multi = 100-point exam), scored on submit
- **Wrong-answer review** — mistakes are collected automatically for targeted re-drilling
- **Local progress** — completion and accuracy per group persist in localStorage; close the browser, come back later, nothing is lost

### Question types

True/false, single-choice (A–H), multi-choice (multiple correct answers, A–H). Works with both Chinese and English banks:

- Chinese markers: `参考答案：C`, `【答案】A，B，C`, `答案:AB`, `正确答案：A、C`, answer-before-number `（ √ ）1. …`, options `A. xxx` / `A、xxx`
- English markers: `Answer: C`, `Correct Answer: A, C`, `Answers: AB`, `[Answer] T`, answer-before-number `(T) 1. …` / `(C) 2. …`, options `A. xxx` / `A) xxx` / `(A) xxx`, sections like "Part I: True or False Questions" / "Multiple Response Questions"

### Requirements

- Python 3.9+ with `python-docx` (`pip install python-docx`)
- Node.js (optional, only for the post-build syntax check)

### What's inside

`SKILL.md` (the full agent workflow, in English), `scripts/parse_docx.py` (docx → unified JSON parser with quality report, understands Chinese and English bank formats), `scripts/build.py` (JSON + template → self-contained HTML, site UI in English or Chinese via `--lang`), `index.tpl.html` (the site template), `demo.html` (a working sample site built from the bundled example data), plus example JSON for both languages and the MIT license.

### Perfect for

Certification prep, corporate training, classroom review, driving-school theory tests, HR assessments — anywhere a static question bank needs to become a website students can drill on.

## Requires

- Python
- Git

## Known limitations

Requires Python 3.9 and python-docx. Browser local storage progress is tied to static question IDs. Document parsing assumes standard section headers for question types.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Quiz Site Generator: Turn Any Question Bank into a Practice skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What file formats and question types can I use as source material?

The skill supports .docx (Word) and .JSON files, with specialized parsing logic for single-choice, multiple-choice, and true/false question types, even from complex formatting like nested tables.

### What exactly is included in the purchase of this skill?

You receive the complete automation pipeline, including the docx-to-JSON parsing engine, the static site builder, and the HTML/JS templates used to generate the interactive quiz interface.

### Does the generated quiz website require a backend server or internet connection to function?

The output is a single, self-contained HTML file that runs entirely in the browser without a database, making it perfect for offline use or hosting on static platforms like GitHub Pages.

### How does the skill handle errors or missing information in my source document?

The skill includes a 'Quality Audit' phase that automatically flags missing answers, malformed options, or syntax errors before the final site is built, ensuring your exam data is accurate.

### Can this skill handle question banks written in languages other than English?

Yes, while it handles standard English patterns, it includes built-in regex variants specifically optimized for common Chinese question bank structures often found in academic materials.

### Are there any specific technical requirements for the AI agent running this skill?

The skill is designed for AI agents with a Python 3.9+ environment and Node.js access; it requires the 'python-docx' library to be installed for document processing.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
