moodle-claw

Interact with Moodle LMS to browse courses, access learning materials, and answer questions about course content.

3,891 stars

Best use case

moodle-claw is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Interact with Moodle LMS to browse courses, access learning materials, and answer questions about course content.

Teams using moodle-claw should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/moodle-claw/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/4strium/moodle-claw/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/moodle-claw/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How moodle-claw Compares

Feature / Agentmoodle-clawStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Interact with Moodle LMS to browse courses, access learning materials, and answer questions about course content.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Moodle-Claw Skill

This skill allows you to interact with a Moodle learning management system (LMS) to help users with their courses, assignments, and learning materials.

## Setup
If `moodle-claw` binary is missing, download it:

URL="https://github.com/4strium/moodle-claw/releases/download/v1.0/moodle-claw"
SHA256="0ce9e6ad4e42c626ebe2c4ce79bde23da3386dc8e4b54a87da0a345a1a0252aa"

curl -L -o moodle-claw "$URL"
echo "$SHA256 moodle-claw" | sha256sum -c -
chmod +x moodle-claw

## Configuration

Before using moodle-claw commands, the user needs to configure their Moodle connection:

```bash
moodle-claw configure
```

This will interactively prompt for:
1. **Moodle server URL** - e.g., `https://moodle.university.edu`
2. **Authentication method** - Token (direct), SSO (redirect URL), or Username/Password
3. **Download path** - Where to save downloaded files

### Authentication Methods

#### Option 1: Direct Token
If you already have a 32-character hex token:
```bash
moodle-claw configure --url https://moodle.example.com --token YOUR_32_CHAR_TOKEN --path ~/Documents/Moodle
```

#### Option 2: SSO Authentication (recommended for universities)
For institutions using SSO (Single Sign-On):

1. **Log into your Moodle account** in a web browser
2. **Open the developer console** (press F12) and go to the **Network** tab
3. **Visit this URL** in the same browser tab (replace with your Moodle URL):
   ```
   https://YOUR_MOODLE_URL/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=12345&urlscheme=moodlemobile
   ```
4. **The page will fail to load** - this is expected! An error will occur.
5. **In the Network tab**, find the failed request (it should be red/failed)
6. **Right-click** on the failed request > **Copy** > **Copy link address**
   - The URL looks like: `moodlemobile://token=BASE64_ENCODED_STRING`
7. **Use the copied URL**:
   ```bash
   moodle-claw configure --url https://moodle.example.com --sso-url "moodlemobile://token=..." --path ~/Documents/Moodle
   ```

Or use interactive mode and select "SSO (redirect URL)":
```bash
moodle-claw configure
```

#### Option 3: Username/Password
For institutions allowing direct login:
```bash
moodle-claw configure --url https://moodle.example.com --username your_user --password your_pass --path ~/Documents/Moodle
```

## Available Commands

### Check Status
```bash
moodle-claw status [--output json]
```
Shows current configuration and connection status.

### List Courses
```bash
moodle-claw courses [--filter "math"] [--refresh] [--output json]
```
Lists all enrolled courses. Use `--refresh` to fetch latest from server.

### View Course Content
```bash
moodle-claw content "Course Name" [--section "TD2"] [--output json]
moodle-claw content 12345  # by course ID
```
Shows the structure of a course (sections, modules, files).

### Search Content
```bash
moodle-claw search "exercise" [--course "Physics"] [--type file] [--output json]
```
Searches for content across courses.

### Download Files
```bash
moodle-claw get "Course/Section/file.pdf" [--course "Math"] [--dest /tmp]
moodle-claw get --url "https://moodle.../pluginfile.php/..." [--dest /tmp]

# Extract text from PDF files (recommended for reading content)
moodle-claw get "file.pdf" --text --output json
```
Downloads a file and returns its local path. Use `--text` (`-t`) to automatically extract text content from PDF files.

### Sync Course
```bash
moodle-claw sync "Course Name" [--dest ~/Courses] [--no-confirm]
moodle-claw sync  # syncs all enabled courses
```
Downloads all files from a course.

## Usage Patterns

### When user asks about a course
1. First, list courses to find the right one: `moodle-claw courses --filter "keyword"`
2. Then get its content: `moodle-claw content "Course Name"`
3. If needed, download specific files: `moodle-claw get "path/to/file.pdf"`

### When user asks about specific content (e.g., "TD2", "exercise 3")
1. Search for the content: `moodle-claw search "TD2" --course "Course Name"`
2. Download and extract text from PDF: `moodle-claw get "path/to/file.pdf" --text`
3. The extracted text will be included in the output for you to analyze

### When user wants to work offline
1. Sync the entire course: `moodle-claw sync "Course Name" --no-confirm`
2. Files will be available locally for reading

## Output Formats

All commands support `--output json` for structured output, or the default markdown format for human readability.

## Example Interactions

**User**: "Explique-moi le cours de mécanique"
```bash
# 1. Find the course
moodle-claw courses --filter "mécanique" --output json

# 2. Get course structure
moodle-claw content "Mécanique" --output json

# 3. Download relevant materials and explain
moodle-claw get "Mécanique/Chapitre 1/cours.pdf" --output json
```

**User**: "Quel est l'exercice 3 du TD2 en maths?"
```bash
# 1. Search for TD2 in math course
moodle-claw search "TD2" --course "maths" --output json

# 2. Download the TD2 file and extract text
moodle-claw get "TD2.pdf" --course "maths" --text --output json

# The text content will be in the JSON output for you to analyze
```

**User**: "Télécharge tous les fichiers du cours de physique"
```bash
moodle-claw sync "Physique" --no-confirm
```

## Notes

- Files are cached locally after first download
- Use `--refresh` on `moodle-claw courses` to update the course list from server
- Course names support fuzzy matching (partial names work)
- The `--output json` flag is useful for parsing structured data
- Use `--text` with `moodle-claw get` to extract text from PDF files directly

## Security / Vetting

- Source code fully open-source
- SHA256 checksum verified before execution
- Token, credentials and configuration saved locally on this machine

Related Skills

openclaw-youtube

3891
from openclaw/skills

YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.

Content & Documentation

openclaw-search

3891
from openclaw/skills

Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.

Data & Research

openclaw-media-gen

3891
from openclaw/skills

Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.

Content & Documentation

OpenClaw Mastery — The Complete Agent Engineering & Operations System

3891
from openclaw/skills

> Built by AfrexAI — the team that runs 9+ production agents 24/7 on OpenClaw.

DevOps & Infrastructure

clawrouter

3891
from openclaw/skills

Smart LLM router — save 67% on inference costs. Routes every request to the cheapest capable model across 41 models from OpenAI, Anthropic, Google, DeepSeek, and xAI.

AI Optimization & Cost Savings

openclaw-safe-change-flow

3891
from openclaw/skills

Safe OpenClaw config change workflow with backup, minimal edits, validation, health checks, and rollback. Single-instance first; secondary instance optional.

DevOps & Infrastructure

jqopenclaw-node-invoker

3891
from openclaw/skills

统一通过 Gateway 的 node.invoke 调用 JQOpenClawNode 能力(file.read、file.write、process.exec、process.manage、system.run、process.which、system.info、system.screenshot、system.notify、system.clipboard、system.input、node.selfUpdate)。当用户需要远程文件读写、文件移动/删除、目录创建/删除、进程管理(列表/搜索/终止)、远程进程执行、命令可执行性探测、系统信息采集、截图采集、系统弹窗、系统剪贴板读写、输入控制(鼠标/键盘)、节点自更新、节点命令可用性排查或修复 node.invoke 参数错误时使用。

DevOps & Infrastructure

alphaclaw

3891
from openclaw/skills

AlphaClaw 是 SkillHub 技能商店的 CLI 工具,用于搜索、安装、发布和管理 Claude Code 技能。支持 AK/SK 登录、关键词搜索技能、一键安装/发布技能包、收藏和评论等完整功能。

openclaw-stock-skill

3891
from openclaw/skills

使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。

Data & Research

clawdnet

3891
from openclaw/skills

Register and manage AI agents on ClawdNet, the decentralized agent registry. Use when you need to register an agent, send heartbeats, update agent status, invoke other agents, or discover agents on the network.

Agent Management & Personalization

claw2ui

3891
from openclaw/skills

Generate interactive web pages (dashboards, charts, tables, reports) and serve them via public URL. Use this skill when the user explicitly asks for data visualization, dashboards, analytics reports, comparison tables, status pages, or web-based content. Also triggers for: "draw me a chart", "make a dashboard", "show me a table", "generate a report", "visualize this data", "render this as a page", "publish a page", "claw2ui". If the response would benefit from charts, sortable tables, or rich layout, **suggest** using Claw2UI and wait for user confirmation before publishing. Chinese triggers: "做个仪表盘", "画个图表", "做个报表", "生成一个页面", "做个dashboard", "数据可视化", "做个网页", "展示数据", "做个表格", "做个图", "发布一个页面", "做个看板". Additional English triggers: "create a webpage", "show analytics", "build a status page", "make a chart", "data overview", "show me stats", "create a board", "render a page", "comparison chart", "trend analysis", "pie chart", "bar chart", "line chart", "KPI dashboard", "metrics overview", "weekly report", "monthly report".

Data Visualization

openclaw-whatsapp

3891
from openclaw/skills

WhatsApp bridge for OpenClaw — send/receive messages, auto-reply agents, QR pairing, message search, contact sync

Workflow & Productivity