Skip to content
sickn33 avatar

Moodle External Api Development

Developer guide for building custom Moodle external web service APIs that follow Moodle's external API framework.

CCM score
56 of 100
skills.sh installs
526
GitHub stars
50.5K
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating REST and AJAX endpoints for course management, quiz operations, user tracking, and reporting in Moodle plugins
  • Includes PHP fragments showing external_api parameter, execute, and returns structures with validate_parameters and validate_context calls
  • Enforces capability checks such as require_capability on course context, and warns against production admin tokens in shell arguments
  • Designed for plugin developers exposing Moodle functionality to external applications or building mobile app backends

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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 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)

<?php
namespace local_userlog\external;

defined('MOODLE_INTERNAL') || die();
require_once("$CFG->libdir/externallib.php");

use external_api;
use external_function_parameters;
use external_single_structure;
use external_value;

Details

Repository
github.com/sickn33/agentic-awesome-skills
Category
Backend & APIs
First seen
Jun 3, 2026

More from sickn33/agentic-awesome-skills

All 682

Similar to Moodle External Api Development

More Backend & APIs