自动化32k · #9213
recipe-create-classroom-course
它能做什么
这个工具可以创建一个 Google Classroom 课程,并邀请学生加入。你可以设置课程名称、班级和教室。
适用场景
- ✓新学期开始时。
- ✓需要把学生分到特定小组时。
- ✓想为某门学科创建一个线上学习空间时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/recipe-create-classroom-course/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/recipe-create-classroom-course/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add googleworkspace/cli --skill recipe-create-classroom-course
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/recipe-create-classroom-course/SKILL.md -o SKILL.md
可以这样问 AI
“创建一门名为 '编程入门' 的课程,班级为第1节,教室为101,并邀请学生 'student@school.com' 加入。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会使用一条命令,根据你提供的信息创建课程。然后再使用另一条命令,把学生邀请到刚创建好的课程中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Create a Google Classroom Course
PREREQUISITE: Load the following skills to execute this recipe:
gws-classroom
Create a Google Classroom course and invite students.
Steps
- Create the course:
gws classroom courses create --json '{"name": "Introduction to CS", "section": "Period 1", "room": "Room 101", "ownerId": "me"}' - Invite a student:
gws classroom invitations create --json '{"courseId": "COURSE_ID", "userId": "student@school.edu", "role": "STUDENT"}' - List enrolled students:
gws classroom courses students list --params '{"courseId": "COURSE_ID"}' --format table
常见问题
还需要安装其他工具吗?
需要,这个功能要求先安装并加载 'gws-classroom' 工具。
AI 怎么知道我是谁?
命令中使用 'me' 来表示你是课程的所有者,前提是你的账号已经设置好。
之后可以再添加学生吗?
示例只演示了邀请一名学生,但你可以多次使用这个工具来添加其他学生。
详情
热度
- GitHub 星标
- 32k
- 排名
- #9213
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …