android-google-workspace-expert
Installation
SKILL.md
Google Workspace Integration Expert 📅🔐
A robust guideline for implementing Google Workspace APIs (Calendar, Drive) in modern Android applications using Android's Credential Manager and secure OAuth scopes.
⚡ When to Use
- Google Sign-In: Authenticating users securely.
- Calendar Sync: Reading/writing events to the user's Google Calendar.
- Drive Backup: Saving or restoring app data via Google Drive.
🔑 Rule 1: Modern Authentication (Credential Manager)
Google has deprecated legacy Google Sign-In (GoogleSignInClient). You MUST use Android's CredentialManager API for requesting permissions and access tokens.
Scopes for Calendar
If an agent needs to add a Todo item to a calendar, request:
private val SCOPES = listOf("https://www.googleapis.com/auth/calendar.events")