← 返回
未分类 Key 中文

Moodle Student Sync

Sync and summarize student Moodle data including courses, upcoming deadlines, grades, files, and announcements. Use this skill whenever a user asks for Moodl...
同步并汇总学生的Moodle数据,包括课程、即将到来的截止日期、成绩、文件和公告。当用户请求与Moodle相关的信息时使用此技能。
yerassyl-sailaubay yerassyl-sailaubay 来源
未分类 clawhub v2.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 376
下载
💾 0
安装
1
版本
#education#latest#moodle

概述

Moodle Student Sync

Use this skill to pull student-facing data from Moodle Web Services and turn it into useful outputs such as deadline lists, grade summaries, and study plans.

Required environment

Set these values before running commands:

export MOODLE_URL="https://moodle.example.edu"
export MOODLE_TOKEN="your_mobile_web_service_token"
export MOODLE_USER_ID="14042"  # optional

Workflow

  1. Verify API connectivity with core_webservice_get_site_info.
  2. Resolve user ID from MOODLE_USER_ID or site info response.
  3. Pull enrolled courses via core_enrol_get_users_courses.
  4. Pull high-value overview data:
    • core_calendar_get_calendar_upcoming_view
    • gradereport_overview_get_course_grades
    • message_popup_get_popup_notifications
  5. Optionally fetch per-course content (core_course_get_contents) for active courses.
  6. Format one of these outputs:
    • JSON sync snapshot
    • deadlines report
    • grades report
    • daily digest markdown
    • study plan markdown

Commands

python scripts/moodle_sync.py sync --include-contents --max-courses 5
python scripts/moodle_sync.py deadlines --limit 20
python scripts/moodle_sync.py grades
python scripts/moodle_sync.py digest --limit 10
python scripts/moodle_sync.py plan --days 7 --grade-threshold 70

Quality guardrails

  • Always check Moodle responses for exception and fail with a clear error.
  • Respect rate limiting between calls (default 15 seconds).
  • Prefer rawgrade values for calculations; treat formatted grade strings as display-only.
  • Handle nulls for progress, rawgrade, and missing dates.
  • Filter to active/current courses when computing plans and deadline alerts.

File map

  • scripts/moodle_client.py: API client, auth, error handling, parameter flattening.
  • scripts/moodle_sync.py: command entrypoint for sync/deadlines/grades/digest/plan.
  • scripts/digest.py: markdown digest generation.
  • scripts/study_planner.py: priority-based study plan generation.
  • templates/*.md: reusable output templates.
  • tests/: basic client tests and sample fixtures.

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-05-07 06:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

education

Interview Simulator

wscats
模拟各类职位和经验水平的面试,提供定制化的技术、行为及案例问题,并给予详细反馈与评分。
★ 23 📥 22,016
education

explain-code

edwininau
用可视化图表和类比解释代码。在解释代码如何工作、教授代码库或用户询问如何工作时使用
★ 5 📥 8,958
education

Thinking Partner

itsflow
通过提问探索复杂问题的协作思考伙伴
★ 49 📥 9,942