google-classroom
Skill9 starsChanged 6 months agoMITView on GitHub
Google Classroom — read and write courses, coursework, materials, and student submissions via the Google Classroom API for K-12 workflows.
- Reads credentials
In this repository11 other files it gives its agents.
- canvasSkill
- classdojoSkill
- ebscoSkill
- edulasticSkill
- frontlineSkill
- google-workspace-eduSkill
- ireadySkill
- khan-academySkill
- nwea-mapSkill
- parentsquareSkill
- powerschoolSkill
The file
Files
Google Classroom
What it is
Google Classroom is Google's free LMS integrated into Google Workspace for Education, widely adopted in K-12 for assignment distribution, submission collection, grading, and class communication. It is accessed via the Google Classroom REST API and Google Drive API for attached files.
When to use this skill
- Fetching classwork titles, descriptions, due dates, and attached materials for tutoring context
- Retrieving student submission documents (linked Google Docs) for writing feedback
- Publishing teacher-created materials or assignments to a class topic
- Reading teacher comments and prior feedback to inform writing portfolio analysis
- Looking up course roster and topic structure for lesson-planning alignment
Credentials
This skill authenticates using env vars declared in the frontmatter metadata and provided via ~/.openclaw/.env (see .env.example at the segment root). Required variables:
GOOGLE_CLIENT_ID- OAuth2 client ID from the Google Cloud projectGOOGLE_CLIENT_SECRET- OAuth2 client secretGOOGLE_REFRESH_TOKEN- long-lived refresh token obtained via the OAuth2 authorization flow
Key operations
GET /v1/courses— list active courses for the authenticated teacher or studentGET /v1/courses/{id}/courseWork— retrieve all assignments and materials with due datesGET /v1/courses/{id}/courseWork/{cwId}/studentSubmissions— read student submission status and attached file IDsPOST /v1/courses/{id}/courseWorkMaterials— publish a new material item to a topicPATCH /v1/courses/{id}/courseWork/{cwId}/studentSubmissions/{sid}— return a grade or drafted feedbackGET /v1/userProfiles/{id}— look up name, email, and role for identity resolution
Notes
- The Classroom API requires appropriate OAuth2 scopes; use the least-privileged scope for each operation.
- Google Drive API is needed separately to read or write the content of attached Docs/Slides files.
- Tokens expire after 1 hour; always use the refresh token flow rather than prompting for re-authorization.
- Student submission data is FERPA-protected; do not cache submission content outside the sandbox workspace.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

