moodle-dev
The most complete Moodle development toolkit for AI coding assistants — skills, slash commands, and subagents that turn your assistant into a Moodle expert.
Native plugin for Claude Code; ships with adapters for Cursor, GitHub Copilot, Aider, Continue, and a paste-anywhere bundle.

Scaffolds plugins, writes XMLDB upgrades, audits privacy/security, generates PHPUnit + Behat tests, builds AMD modules, reviews PRs — all following official Moodle coding standards (PSR-4, frankenstyle, MOODLE_INTERNAL, GPL headers, get_string, $DB).
🔌 Companion MCP server: moodle-mcp — live moodledev.io documentation search inside Claude Desktop / Code, Cursor, Continue, Cline. pipx install moodle-mcp.
Why this plugin
Claude already knows PHP. It does not know:
- Moodle's frankenstyle conventions (
local_<name>, mod_<name>, block_<name>, ...)
- XMLDB editor workflow +
upgrade_plugin_savepoint rules
- Privacy API contracts (
null_provider vs request\plugin\provider)
- Capability + sesskey +
require_login security pattern
- Moodle 4.4+ Hooks API vs legacy
lib.php callbacks
pluginfile.php file-serving callback
- Behat + PHPUnit Moodle harness (
resetAfterTest, generators, tags)
- AMD/RequireJS + grunt build
- Mobile app remote templates +
get_remote_addons
This plugin teaches Claude all of it. Auto-activates when Claude detects Moodle work.
Install
Claude Code (native plugin)
/plugin marketplace add https://github.com/SaadRahman01/claude-moodle-dev
/plugin install moodle-dev@moodle-dev
(If [email protected] SSH auth fails, use the full https:// URL as shown above.)
Local dev: /plugin marketplace add /absolute/path/to/claude-moodle-dev.
Verify: /plugin list.
One-liner installer (any non-Claude assistant)
./install.sh <cursor|copilot|aider|continue|generic> [--dest <path>]
Defaults to current directory. Or copy manually as below.
Cursor
Copy adapters/cursor/.cursor/ into your project (or ~/.cursor/ for global use). Each skill becomes an on-demand rule; agents and commands surface via @<name> mentions in chat.
GitHub Copilot
Copy adapters/copilot/.github/ into your repo. copilot-instructions.md is applied to every chat in the repo; per-skill chatmodes appear in the chat-mode picker.
Aider
Drop adapters/aider/CONVENTIONS.md into your project root and add it to .aider.conf.yml:
read:
- CONVENTIONS.md
Load individual skills on demand with /read-only adapters/aider/skills/<name>.md.
Continue.dev
Copy adapters/continue/ into ~/.continue/ (merge with existing config.yaml). Skills load as rules; commands appear as slash prompts.
Any other assistant
Paste relevant sections from adapters/generic/PROMPTS.md — it's one self-contained markdown file with every skill, agent, and command. Works with anything that takes a system prompt.
Companion MCP server: live Moodle docs
moodle-mcp is a separate Model Context Protocol server that gives any MCP-capable client (Claude Desktop / Code, Cursor, Continue, Cline, Windsurf) live access to the canonical Moodle developer documentation. The skills here teach conventions; the MCP server provides authoritative lookups.
What it adds