AAC Moodle Integration — Documentation, Skills, Privacy & UX#381
Open
PaulaRecaj wants to merge 1 commit into
Open
AAC Moodle Integration — Documentation, Skills, Privacy & UX#381PaulaRecaj wants to merge 1 commit into
PaulaRecaj wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances the AAC (Agent-Assisted Creator) agent with full Moodle CLI integration, including discoverable documentation, a dedicated query skill, privacy safeguards, and automatic timestamp formatting.
Changes
1. New: docs/moodle-cli.md — Complete reference of all 16 moodle-cli command groups (courses, users, grades, enrolments, assignments, forums, quizzes, calendar, messages, completion, files, cohorts, roles, site, generic call). The agent can discover commands via [lamb docs read moodle-cli]. Includes privacy rules and usage tips.
2. New: [skills/query_moodle.md]— Specialized skill activated with [lamb skill load query-moodle]. Requires a configured Moodle integration. Classifies commands as READ (auto-execute) vs WRITE (ask confirmation). Includes privacy rules with example refusal responses.
3. System prompt updates ([agent/loop.py]:
4. Authorization fix ([authorization.py]: [resolve_action_key()] now correctly returns "moodle" for passthrough commands (instead of ["moodle.course"], ensuring the "moodle": "auto" policy applies properly.
5. Router update ([router.py]: Added session titles for setup-moodle and [query-moodle] skills.
6. Related skill updates:
[setup_moodle.md]: Now suggests loading [query-moodle] after setup; added privacy reminder
[about_lamb.md]: Added "Moodle data queries" with privacy notice to capabilities list
7. Docs index (docs/index.md): Added moodle-cli entry to the documentation index table.
Privacy Design
The moodle-cli runs with the authenticated user's Moodle token. The agent is instructed to:
UX Improvement
Unix timestamps ([duedate: 1744320000]) are now automatically converted to human-readable dates ("Apr 10, 2026 14:30") without asking the user.