moodle-cli

Route natural-language requests to narrow moodle CLI commands for Moodle LMS data.

5|2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/bunizao/moodle-cli --skill moodle-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moodle-cli
Source: https://github.com/bunizao/moodle-cli/tree/main
Command: npx skills add https://github.com/bunizao/moodle-cli --skill moodle-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the effort of manually figuring out which specific Moodle CLI subcommand and options to use by turning a natural-language request into the narrowest, agent-friendly moodle invocation.

Core Features & Use Cases

  • Command routing for common Moodle intents: select the best moodle ... command (e.g., user, courses, todo, alerts, activities, grades).
  • Forum-first agent workflows: prefer moodle forum find for discovery, then expand with --body or list shortlists only when needed.
  • Agent-ready structured output guidance: instruct using --json for machine consumption and returning concise summaries rather than raw dumps.

Quick Start

Use the skill when you want Moodle data via the local moodle CLI, for example: "Find the nearest unread deadline questions and summarize the best match from the parsed result."

Frequently Asked Questions about moodle-cli

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

FAQPage Schema
How do I route natural language requests to specific Moodle CLI commands?

You can translate natural language into specific Moodle CLI commands by routing requests to the narrowest subcommand, prioritizing `--json` for structured output and summarizing parsed results.

What is the best way to search Moodle forums and expand discussion threads via CLI?

For Moodle forum search, use `moodle forum find` for discovery, then expand relevant discussions with the `--body` flag while applying scan budgets to manage output length.

How do I retrieve upcoming deadlines and grades from Moodle using an agent workflow?

Retrieve upcoming deadlines and grades by routing agent requests to narrow `moodle todo` or `moodle grades` commands, returning concise summaries rather than broad raw data dumps.

Does the Moodle CLI agent routing avoid broad overview commands?

Yes, Moodle CLI agent routing avoids broad commands like `overview` unless explicitly requested, prioritizing narrow command selection for user info, course listings, and alerts.

Can I get JSON output from Moodle CLI for machine consumption in automated workflows?

Yes, you can get JSON output from Moodle CLI by instructing the agent to use the `--json` flag, enabling machine consumption and returning parsed concise summaries for automated workflows.

When should I not use broad Moodle overview commands in agent routing?

You should not use broad Moodle overview commands unless explicitly requested, because the routing prioritizes narrow command selection and scan budgets to avoid raw data dumps.