moodle-external-api-development
Create custom external web service APIs for Moodle LMS. Use when implementing web services for course management, user tracking, quiz operations, or custom…
от Dokhacgiakhoa★ 513 звёзд на GitHub
Установить moodle-external-api-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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.
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
Core Architecture Pattern
Moodle external APIs follow a strict three-method pattern:
execute_parameters()- Defines input parameter structureexecute()- Contains business logicexecute_returns()- Defines return structure
Step-by-Step Implementation
🧠 Knowledge Modules (Fractal Skills)
1. Step 1: Create the External API Class File
2. Step 2: Define Input Parameters
3. Step 3: Implement Business Logic
4. Step 4: Define Return Structure
5. Step 5: Register the Service
6. Step 6: Implement Error Handling & Logging
7. Complex Database Operations
8. Working with Course Modules
9. Access Restrictions (Groups/Availability)
10. Random Question Selection with Tags
11. 1. Via Moodle Web Services Test Client
12. 2. Via curl
13. 3. Via JavaScript (AJAX)
14. 1. "Function not found" Error
15. 2. "Invalid parameter value detected"
16. 3. SQL Injection Vulnerabilities
17. 4. Permission Denied Errors
18. 5. Transaction Deadlocks
19. Simple Read API (Get Quiz Attempts)
20. Complex Write API (Create Quiz from Categories)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- sub-skills/1-function-not-found-error.md
- sub-skills/1-via-moodle-web-services-test-client.md
- sub-skills/2-invalid-parameter-value-detected.md
- sub-skills/2-via-curl.md
- sub-skills/3-sql-injection-vulnerabilities.md
- sub-skills/3-via-javascript-ajax.md
- sub-skills/4-permission-denied-errors.md
- sub-skills/5-transaction-deadlocks.md
- sub-skills/access-restrictions-groupsavailability.md
- sub-skills/complex-database-operations.md
- sub-skills/complex-write-api-create-quiz-from-categories.md
- sub-skills/random-question-selection-with-tags.md
- sub-skills/simple-read-api-get-quiz-attempts.md
- sub-skills/step-1-create-the-external-api-class-file.md
- sub-skills/step-2-define-input-parameters.md
- sub-skills/step-3-implement-business-logic.md
- sub-skills/step-4-define-return-structure.md
- sub-skills/step-5-register-the-service.md
- sub-skills/step-6-implement-error-handling-logging.md
- sub-skills/working-with-course-modules.md
FAQ
Что делает скилл moodle-external-api-development?
Create custom external web service APIs for Moodle LMS. Use when implementing web services for course management, user tracking, quiz operations, or custom plugin functionality. Covers parameter validation, database operations, error handling, service registration, and Moodle coding standards.
Как установить скилл moodle-external-api-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл moodle-external-api-development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…