moodle-admin

Automate Moodle LMS course, user, enrollment, and grade management via REST API.

1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/xukrutdonut/openclaw-skills --skill moodle-admin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moodle-admin
Source: https://github.com/xukrutdonut/openclaw-skills/tree/main/moodle-admin
Command: npx skills add https://github.com/xukrutdonut/openclaw-skills --skill moodle-admin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

Administrators often perform repetitive Moodle LMS tasks manually. This Skill automates Moodle LMS administration via REST API to streamline course, user, enrollments, and content management across Moodle installations.

Core Features & Use Cases

  • Course management: List, create, modify courses and manage sections.
  • User and enrollment management: List users, create/modify profiles, enroll students, and adjust roles.
  • Grades and content handling: Retrieve grades, update grades, and manage course contents and activities.
  • Use Case: An admin needs to provision a new course for a semester, enroll students in bulk, and distribute course materials automatically through API calls.

Quick Start

Export environment variables and run the CLI: export MOODLE_URL="https://your-moodle-site" export MOODLE_TOKEN="your_moodle_token" python3 scripts/moodle_admin.py --list-courses python3 scripts/moodle_admin.py --course-id 12 --list-students Note: Replace tokens with valid credentials.

Frequently Asked Questions about moodle-admin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Moodle LMS administration tasks like course and user management?

Moodle LMS administration tasks are automated by calling Moodle REST API web service functions to manage courses, users, and enrollments. This process requires setting the MOODLE_URL and MOODLE_TOKEN environment variables to authenticate and execute operations.

How do I bulk enroll students into Moodle courses via REST API?

Bulk student enrollment in Moodle courses is handled by executing REST API calls that list users and adjust their roles. Administrators provide the course ID and target user details to the script, which leverages Moodle web service functions to modify enrollment records.

Do I need a specific Moodle token to manage course content and grades through the API?

A valid Moodle token is required alongside the MOODLE_URL environment variable to manage course content and grades through the API. These credentials authenticate the REST API requests, allowing the script to retrieve and update grade data and course activities securely.

What's the best way to provision a new Moodle course and distribute materials automatically?

Provisioning a new Moodle course and distributing materials automatically is achieved by running Python scripts that call Moodle REST API functions. Administrators trigger creation and modification operations to establish the course structure and populate it with content without manual interface interaction.

Can I use Python requests to retrieve and update Moodle LMS grades?

Python requests are used to retrieve and update Moodle LMS grades by sending REST API calls to the configured Moodle installation. The script relies on the requests dependency to handle HTTP interactions with Moodle web services for grade management operations.