Agent skill
moodle-ai-subsystem
Moodle AI Subsystem integration for providers and actions. Use when integrating AI capabilities into Moodle, creating AI providers, or implementing AI actions.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/moodle-ai-integration
SKILL.md
Moodle AI Subsystem Integration
Integrate AI capabilities into Moodle 4.5+ using the AI Subsystem.
When to Use This Skill
- Creating AI providers (Ollama, Anthropic, OpenAI)
- Implementing AI actions
- Building AI placements in courses
- Text generation and summarization
See reference.md for complete patterns.
Provider Implementation
namespace aitool_ollama;
class provider extends \core_ai\provider {
public function get_action_list(): array {
return [
\core_ai\aiactions\generate_text::class,
\core_ai\aiactions\summarise_text::class,
];
}
}
Action Usage
$manager = \core_ai\manager::get_manager();
$action = new \core_ai\aiactions\generate_text(
contextid: $context->id,
userid: $USER->id,
prompttext: $prompt
);
$response = $manager->process_action($action);
Key Concepts
- Provider: Connection to AI service (API)
- Action: Specific AI capability (generate, summarize)
- Placement: Where AI appears in Moodle UI
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?