# AI Quiz Generator

> Turn lesson notes and documents into professional, reviewed quiz questions for Moodle or print.

AI Quiz Generator is a paid AI agent skill on Agensi by Sehan Yasaru. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $10 (one-time purchase)
- Creator: [Sehan Yasaru](https://www.agensi.io/creators/sehan-yasaru)
- Version: 1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ai-quiz-generator
- Tags: moodle, php, learning-management-system, teaching-tools

## What it does

- Works with PDF, Word, and text files to find the best material for your test
- Follows grade-level and difficulty rules to keep the test fair for your students
- Checks for duplicate questions and errors before giving you the final file
- Exports to Moodle, GIFT, CSV, and printable formats for easy sharing

## Who it's for

- **Teachers and professors at all levels:** Turn your lesson notes and PDFs into high-quality exams without typing them by hand. Try: "Make a 20 question multiple choice quiz from my PDF for my 10th grade class."
- **Corporate trainers and HR managers:** Quickly create assessments from company handbooks or training slides for your LMS. Try: "Create a true or false quiz from this employee handbook for our new hires."
- **E-learning developers and site owners:** Generate thousands of questions for your Moodle or WordPress site in bulk. Try: "Turn these 5 chapters into a Moodle XML question bank with hard difficulty."

## About this skill

If you spend hours writing quiz questions for your students or team, this skill is for you. It reads your lesson plans, PDFs, or notes and creates professional test questions automatically. It does not just guess, it follows strict rules to make sure the questions are fair and the answers are correct. It can handle many types of questions, from simple true or false to complex matching and ordering tasks.

**How it works**

1. Upload your document or paste your teaching notes for your AI agent to read.
2. Choose what you need, like the number of questions, the difficulty, and the grade level.
3. Your AI agent reviews the draft to remove duplicates and check for errors.
4. Pick how you want the file, such as a printable worksheet or a file ready for Moodle.

**What you get:** A ready to use quiz file or a question bank that you can print or import into your learning platform.

## Requires

- PHP 7.4+ (command line)
- Optional: poppler-utils + tesseract-ocr (scanned PDFs)
- Optional: Shell access to your Moodle 4.1+ server (direct import)

No API key needed: your agent writes the questions. Check PHP with "php -v". Windows: install PHP from windows.php.net and add it to PATH. Without server access, import the XML via Moodle's Question bank Import.

## Known limitations

Requires PHP installed on the system where your agent runs. Scanned PDFs need OCR tools to be read properly.

## Technical details

Built with a standalone PHP library (QuizGen.php). Uses shell scripts to process documents via PHP CLI. Requires PHP 7.4+. Supports Moodle XML, GIFT, Aiken, CSV, and JSON exports. Includes a validation engine to de-duplicate and verify question schemas before export. Can use attached LLM tools or a direct OpenAI-compatible API for generation.

## 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 AI Quiz Generator skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill help me save time on lesson planning?

This skill scans your lesson plans, PDFs, or notes to build professional test questions. It automatically checks for duplicate questions and ensures the answers match the provided source material so you do not have to write them from scratch.

### Do I need any special accounts or software to use this?

You only need to provide your teaching materials, such as a PDF, Word document, or pasted text notes. Your AI agent handles the logic, though you can optionally provide your own OpenAI API key if you want the skill to use a specific external model.

### What kinds of questions can I create?

You can choose from nine different question types, including multiple choice, true or false, matching, and essay questions. You can also specify the difficulty level and the target grade level for the students.

### What file formats will I receive for my quiz?

The skill provides files ready for Moodle, such as Moodle XML, GIFT, and Aiken formats. It can also generate CSV and JSON files, or a simple HTML worksheet that you can print out for your students.

### How do I tell my agent to start making a quiz?

Simply tell your agent to make a quiz or question bank from a specific document. You should mention how many questions you want, the difficulty level, and which format you need, such as a printable worksheet or a Moodle file.

### Are there any limits on the types of documents I can upload?

The skill requires at least 50 characters of source text to work. If you provide a scanned PDF, the agent can try to read it using OCR tools, but it may ask for a text file or Word document if the scan is not readable.

---

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.
