moodle-external-api-development

This skill guides you through creating custom external web service APIs for Moodle LMS, following Moodle's external API framework and coding standards.

By sickn33 · 547 installs

npx skills add sickn33/agentic-awesome-skills --skill moodle-external-api-development

Source repository · Upstream listing

Moodle External API Development This skill guides you through creating custom external web service APIs for Moodle LMS, following Moodle's external API framework and coding standards. Detailed Guide Read [the detailed guide](references/detailed guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end to end work, read the guide completely. When to Use This Skill Creating custom web services for Moodle plugins Implementing REST/AJAX endpoints for course management Building APIs for quiz operations, user tracking, or reporting Exposing Moodle functionality to external applications Developing mobile app backends using Moodle Illustrative Implementation Fragments Simple Read API (Get Quiz Attempts) Complex Write API (Create Quiz from Categories) The referenced create quiz from categories.php is not bundled. Do not claim it was read, executed or transaction tested. Use the installed Moodle release's activity/question APIs with context/capability checks, group visibility, bounded input and rollback tests; direct insertion fragments in the guide are historical schema illustrations, not a complete quiz builder. Use least privilege test roles and synthetic learner data, never production admin tokens in shell arguments. Limitations Use this skill only when the task clearly matches the scope described above. Do not treat the output as a substitute for environment specific validation, testing, or expert review. Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.