gws-classroom — Claude Code skill for Google Classroom
A skill that maps the Google Classroom API onto the gws CLI, so the agent can work with courses, rosters and coursework. Handy if you teach and want the admin parts handled for you.
npx skills add googleworkspace/cli --skill gws-classroom -a claude-codeWhat gws-classroom does
This skill hands the agent a working map of the Google Classroom API and the gws command that reaches it. Calls follow gws classroom [flags]. Before running anything the agent pulls the method schema, then fills in --params and --json, which keeps it from inventing endpoints.
Inside are method notes for courses — create, delete, get, list, patch, update, plus grading period settings. Subresources cover students, teachers, courseWork, topics and posts. invitations handle creating and accepting invites, and registrations push course events into a cloudPubSubTopic. Profiles live under userProfiles, guardians included. First call needs the shared gws-shared file with auth and security rules; if it is absent, the agent asks you to run gws generate-skills.
You bring the gws binary and Classroom access. Editing grading periods depends on licensing, so some methods will return an error without it. Install this if you run several courses and would rather not click through rosters and invitations by hand. For one grade fix, use the web UI.
What it helps with
- create a course and set its owner
- enroll students and a co-teacher in a course
- send invitations and accept them for the invitee
- post an assignment or announcement to the right course
- route course events into a Pub/Sub topic
Example prompts for the agent
- List my Classroom courses and show the ones I teach.
- Create a course and add the students from my roster.
- Post an announcement to that course and check that it went out.
How to install gws-classroom
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-classroom -a claude-code2Manually: put the files in place
~/.claude/skills/gws-classroom/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/gws-classroom/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-classroom -a codex2Manually: put the files in place
.agents/skills/gws-classroom/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-classroom -a cursor2Manually: put the files in place
.cursor/skills/gws-classroom/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install googleworkspace/cli gws-classroom2Manually: put the files in place
.github/skills/gws-classroom/SKILL.md1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-classroom -a gemini-cli2Platform CLI
gemini skills install https://github.com/googleworkspace/cli --path skills/gws-classroomManually: put the files in place
.devin/skills/gws-classroom/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-classroom -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set95
The whole set →Similar
Questions about gws-classroom
How do I install gws-classroom in Claude Code?
Run npx skills add googleworkspace/cli --skill gws-classroom -a claude-code. The skill lands in ~/.claude/skills/gws-classroom/SKILL.md. On GitHub Copilot use gh skill install googleworkspace/cli gws-classroom instead.
What does gws-classroom do?
It documents the Google Classroom API methods and how to call them through gws: courses, invitations, notification registrations and profiles. The agent reads the schema first, then passes --params and --json.
What do I need before using it?
The gws binary on your machine and the shared gws-shared/SKILL.md file holding auth and security rules. Create it with gws generate-skills if it is missing. Grading period edits require a matching license.
Source text
SKILL.md · Apache-2.0
---
name: gws-classroom
description: "Google Classroom: Manage classes, rosters, and coursework."
metadata:
version: 0.22.5
openclaw:
category: "productivity"
requires:
bins:
- gws
cliHelp: "gws classroom --help"
---
# classroom (v1)
> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.
```bash
gws classroom <resource> <method> [flags]
```
## API Resources
### courses
- `create` — Creates a course. The user specified in `ownerId` is the owner of the created course and added as a teacher. A non-admin requesting user can only create a course with themselves as the owner. Domain admins can create courses owned by any user within their domain. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create courses or for access errors. * `NOT_FOUND` if the primary teacher is not a valid user.
- `delete` — Deletes a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID.
- `get` — Returns a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID.
- `getGradingPeriodSettings` — Returns the grading period settings in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user isn't permitted to access the grading period settings in the requested course or for access errors. * `NOT_FOUND` if the requested course does not exist.
- `list` — Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. Returned courses are ordered by creation time, with the most recently created coming first. This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the query argument is malformed. * `NOT_FOUND` if any users specified in the query arguments do not exist.
- `patch` — Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied.
- `update` — Updates a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * CourseTitleCannotContainUrl
- `updateGradingPeriodSettings` — Updates grading period settings of a course. Individual grading periods can be added, removed, or modified using this method. The requesting user and course owner must be eligible to modify Grading Periods. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/grading-periods/manage-grading-periods#licensing_requirements).
- `aliases` — Operations on the 'aliases' resource
- `announcements` — Operations on the 'announcements' resource
- `courseWork` — Operations on the 'courseWork' resource
- `courseWorkMaterials` — Operations on the 'courseWorkMaterials' resource
- `posts` — Operations on the 'posts' resource
- `studentGroups` — Operations on the 'studentGroups' resource
- `students` — Operations on the 'students' resource
- `teachers` — Operations on the 'teachers' resource
- `topics` — Operations on the 'topics' resource
### invitations
- `accept` — Accepts an invitation, removing it and adding the invited user to the teachers or students (as appropriate) of the specified course. Only the invited user may accept an invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to accept the requested invitation or for access errors.
- `create` — Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION`: * if the requested user's account is disabled.
- `delete` — Deletes an invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested invitation or for access errors. * `NOT_FOUND` if no invitation exists with the requested ID.
- `get` — Returns an invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view the requested invitation or for access errors. * `NOT_FOUND` if no invitation exists with the requested ID.
- `list` — Returns a list of invitations that the requesting user is permitted to view, restricted to those that match the list request. *Note:* At least one of `user_id` or `course_id` must be supplied. Both fields can be supplied. This method returns the following error codes: * `PERMISSION_DENIED` for access errors.
### registrations
- `create` — Creates a `Registration`, causing Classroom to start sending notifications from the provided `feed` to the destination provided in `cloudPubSubTopic`. Returns the created `Registration`. Currently, this will be the same as the argument, but with server-assigned fields such as `expiry_time` and `id` filled in. Note that any value specified for the `expiry_time` or `id` fields will be ignored.
- `delete` — Deletes a `Registration`, causing Classroom to stop sending notifications for that `Registration`.
### userProfiles
- `get` — Returns a user profile. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access this user profile, if no profile exists with the requested ID, or for access errors.
- `guardianInvitations` — Operations on the 'guardianInvitations' resource
- `guardians` — Operations on the 'guardians' resource
## Discovering Commands
Before calling any API method, inspect it:
```bash
# Browse resources and methods
gws classroom --help
# Inspect a method's required params, types, and defaults
gws schema classroom.<resource>.<method>
```
Use `gws schema` output to build your `--params` and `--json` flags.
© googleworkspace · Apache-2.0 · googleworkspace/cli