Claude Code hook

Claude Moodle Dev

Moodle development toolkit for AI coding assistants. Skills for XMLDB, Hooks API, PHPUnit, Behat, AMD, privacy/GDPR, security, accessibility. Native Claude Code plugin + adapters.

42 stars 7 forksHooks Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add https://github.com/SaadRahman01/claude-moodle-dev

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/SaadRahman01/claude-moodle-dev.git

From the README

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_, mod_, block_, ...)
- 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)

(If git@github.com 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)

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…
Read the full README on GitHub

How hooks work

  • Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
  • They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
  • A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Claude Code docs

Details

Type
Hooks
Language
Python
License
MIT
Last updated
22 June 2026
Topics
ai-coding-assistantclaudeclaude-plugincluade-aiedtechlmsmoodlemoodle-pluginphp

FAQ

What is Claude Moodle Dev?

Moodle development toolkit for AI coding assistants. Skills for XMLDB, Hooks API, PHPUnit, Behat, AMD, privacy/GDPR, security, accessibility. Native Claude Code plugin + adapters. It is a hook for Claude Code, from SaadRahman01/claude-moodle-dev on GitHub.

How do I install Claude Moodle Dev?

Run /plugin marketplace add https://github.com/SaadRahman01/claude-moodle-dev inside Claude Code, then follow the setup in the README.

Is Claude Moodle Dev popular?

SaadRahman01/claude-moodle-dev has 42 GitHub stars and 7 forks. It was last updated on 22 June 2026.

More hooks

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.