If you need to expose Moodle LMS functionality through REST or AJAX endpoints, this walks you through the framework's strict three-method pattern: define your input parameters with proper validation types, implement the business logic with capability checks and database operations, then define your return structure. It covers the full registration process in services.php and includes practical error handling with file-based logging. The parameter validation and context checking here are non-negotiable in Moodle development, so following this pattern saves you from security headaches. Most useful when building custom plugin APIs, mobile app backends, or external integrations that need to pull course data, manage users, or handle quiz operations while respecting Moodle's permission system.
npx skills add https://github.com/davila7/claude-code-templates --skill moodle-external-api-development