google-workspace
Skill by graniet
Connects an AI assistant to Gmail, Calendar, Drive, Contacts, Sheets, and Docs through Google's gws CLI. It uses OAuth2 with automatic token refresh and suits users who need more than email. Requires the gws binary.
Install google-workspace
Built from the published package, never by AI.
git clone --depth 1 https://github.com/graniet/kheish /tmp/kheish && mkdir -p ~/.claude/skills && cp -r /tmp/kheish/skills/productivity/google-workspace ~/.claude/skills/google-workspaceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/graniet/kheish /tmp/kheish && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kheish/skills/productivity/google-workspace ~/.gemini/antigravity-cli/skills/google-workspaceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
google-workspace is an agent skill that gives an AI assistant access to Gmail, Calendar, Drive, Contacts, Sheets, and Docs. It runs on gws, which the source describes as Google's official Rust CLI. A Python wrapper (google_api.py) keeps the same command interface as an earlier version and delegates to gws. The bridge script (gws_bridge.py) refreshes the OAuth token and passes it to gws through an environment variable.
Setup is a step-by-step OAuth2 flow run through setup.py, which the source says works headless on CLI, Telegram, and Discord. Users who only need email are pointed to the himalaya skill instead. The source says the assistant must get confirmation before sending email or creating or deleting calendar events.
Written from the project's SKILL.md and checked against it.
What it can do
- GmailSearch, read, send, and reply to messages, list labels, and modify message labels.
- CalendarList calendars, create events with attendees, and delete events.
- DriveSearch files, with an option for raw Drive query strings.
- ContactsList contacts with names, emails, and phone numbers.
- SheetsGet, update, and append cell values in spreadsheets.
- DocsGet a document as JSON for text extraction.
- Direct gws accessRun gws_bridge.py for operations the wrapper does not cover.
What you need
- Google account with OAuth2 desktop client credentials from Google Cloud Console
- gws CLI installed (npm, cargo, or Homebrew)
- Python 3 to run the setup and API scripts
Try asking
- Show me my unread Gmail messages from this week.
- Create a 30 minute standup on my calendar tomorrow at 10:00 with a timezone.
- Append these rows to my Sheets budget and confirm the range first.
Good to know
- Advanced Protection accounts need a Workspace admin to allow the OAuth client ID first.
- Missing scopes cause HttpError 403 and require revoking access and repeating setup.
- Email and calendar create or delete actions need user confirmation before running.
- Users are asked to avoid rapid sequential API calls.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/productivity/google-workspace/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to google-workspace
All alternatives →Ask-user-question lets an AI assistant ask the user questions through a modal in the UI. It suits tasks that need clarification, preferences, or approval before the assistant proceeds.
Beads is a Dolt-backed issue tracker that gives AI assistants persistent task memory. It tracks dependencies and notes across sessions and conversation compaction. It is for developers and agents managing multi-session work.
Manages the user's Google Tasks from an AI assistant. It reads task lists and tasks, adds, edits, completes and organizes them, and clears finished items from view. Built for people who keep their to-dos in Google Tasks.
Rebuilds your recent working context before you start or resume work. It reads your chat history and the shared record, then returns a short current-state brief for developers.
Build Agent turns a task a business owner repeats by hand into a named, reusable skill. It can be triggered by name or put on a schedule, and it adds approval checkpoints at consequential steps.
Lark-approval is a Feishu (Lark) skill for querying, handling and starting native approval workflows. It is for users who need to work through approval todos, review submitted approvals, or search and submit approval requests.
Compare with ask-user-question, beads or google_tasks
google-workspace: common questions
Does google-workspace need a Google Cloud project?
Yes. The source says users create OAuth credentials in Google Cloud Console, enable the needed APIs, and download a client secret JSON file.
Can I use only Gmail with this skill?
The source recommends the himalaya skill for email-only use because its setup is simpler. This skill covers Calendar, Drive, Sheets, and Docs as well.
How is the token kept valid?
The gws_bridge.py script refreshes the token and injects it into gws, so the source says it refreshes automatically after setup.
How do I install google-workspace?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is google-workspace free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is google-workspace safe to use?
It scores 64 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to google-workspace?
Similar skills: ask-user-question, beads, google_tasks, recall.
