A small read-only helper that lets an AI assistant answer Moodle questions from live Technion Moodle data.
- Lists your visible Moodle courses.
- Shows homework, lab, and assignment deadlines.
- Checks submission status.
- Reads course sections and forum posts.
- Lists assignment files and extracts text from PDFs.
Install the Python tools:
uv syncCreate your private config file:
cp config.ini.example config.iniOpen config.ini. It should look like this:
[moodle]
token=
domain=moodle25.technion.ac.il- Open this link in your browser:
https://moodle25.technion.ac.il/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=12345&urlscheme=moodlemobile
- Log in to Moodle if it asks.
- Moodle redirects you to a new page.
- Copy the long value after
token=in the redirected URL. - Paste it into
config.ini.
Example:
[moodle]
token=PASTE_YOUR_TOKEN_HERE
domain=moodle25.technion.ac.ilCheck that the skill can talk to Moodle:
python3 scripts/moodle_query.py initList your courses:
python3 scripts/moodle_query.py coursesShow all visible assignment deadlines:
python3 scripts/moodle_query.py assignmentsShow assignments for one course:
python3 scripts/moodle_query.py assignments --courseid 3621Read the course content page:
python3 scripts/moodle_query.py course-content --courseid 3621Check one assignment submission:
python3 scripts/moodle_query.py submission-status --assignid 14221List assignment files:
python3 scripts/moodle_query.py assignment-files --assignid 14221 --courseid 3621Extract text from an assignment PDF:
python3 scripts/moodle_query.py file-text --assignid 14221 --courseid 3621 --filename 'Homework'Run the tests:
uv run python -m unittest discover -s testsscripts/moodle_cli.pytalks to Moodle's web-service API.scripts/moodle_query.pygives simpler commands for assistants and humans.SKILL.mdtells Codex when to use the Moodle helper.config.ini.exampleshows the token config format.memory.mdstores local preferences, such as which courses to treat as current.
The tool is read-only. It can fetch Moodle data, but it does not submit assignments or change Moodle.
PDF text extraction needs pdftotext. On Ubuntu/Debian:
sudo apt install poppler-utils