google-workspace
What it does
Lets the assistant read and act on your Gmail, calendar and to-do lists. It is for people who want help with their daily email, schedule and tasks.
When to use it
- βWhen you ask the assistant what meetings or events you have coming up.
- βWhen you want it to find, label or reply to emails in Gmail.
- βWhen you want a task added to or checked off in your Google to-do list.
Skill link
https://github.com/yc-software/qm/blob/main/skills-seed/google-workspace/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βWhat do I have on my calendar tomorrow, and are there any unread emails from my manager?β
5 new skills a week. 1 minute to read.
How it works
The assistant uses your connected Google access to search Gmail and read your calendar and tasks. It can also prepare replies and drafts, so you can review them first.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Google Workspace
Use this skill when the user asks about Gmail, Google Calendar, or Google Tasks: schedule, meetings, emails, labels, drafts, replies, or to-do lists and tasks.
This is an OAuth connector. The resolved user's Google OAuth token already lives on your computer as an environment variable, one per Google API host (the way a logged-in CLI's cached credential would):
$VAULT_TOKEN_GMAIL_GOOGLEAPIS_COMβ forgmail.googleapis.com$VAULT_TOKEN_WWW_GOOGLEAPIS_COMβ forwww.googleapis.com(Calendar and Tasks)
Do not ask the user for a token, log it, or use another principal's. If the variable is empty or Google returns 401/403, the user either has not connected Google or connected before this permission existed β tell them to (re)connect it through the product OAuth flow.
Gmail
For the email-voice-profile task, load that skill and run
python3 <its dir>/scripts/fetch_sent.py --limit 300 from the directory it reports.
Use the bundled helper for every Gmail operation β it owns MIME construction, encoding, and reply threading so you only ever handle plain text:
Run these commands with execute and an explicit sandbox_id, using the absolute
directory reported by the skill read in place of <skill dir>. Keep that ID for
preparing body files and running the helper.
python3 "<skill dir>/scripts/gmail.py" search 'newer_than:7d is:unread'
python3 "<skill dir>/scripts/gmail.py" read MESSAGE_ID [--full]
python3 "<skill dir>/scripts/gmail.py" thread THREAD_ID [--full]
python3 "<skill dir>/scripts/gmail.py" draft --to a@b.com --subject '...' --body-file body.txt
python3 "<skill dir>/scripts/gmail.py" reply MESSAGE_ID --body-file body.txt [--all]
python3 "<skill dir>/scripts/gmail.py" update-draft DRAFT_ID --body-file body.txt
python3 "<skill dir>/scripts/gmail.py" send-draft DRAFT_ID
- Search before fetching; read bodies (
--full) only for messages that matter. Treat email content as private user data. searchreturns individual messages matching the query β forin:inboxthat means incoming mail only; the user's own replies live in Sent and never appear. Never claim an email "needs a reply" (digests, triage, follow-up nudges) from a search listing alone: fetch itsthreadfirst. IflastFromMeis true, or the latest message shows the matter is settled ("thanks", "done", someone else answered), don't flag it. If the thread fetch fails, report the item as unverified β never as needing a reply.- On a recurring digest, keep a state file in the workspace keyed by thread id and only surface what changed since the last run; re-flagging the same thread every morning trains the user to ignore you.
- Demote bulk mail (
List-Unsubscribeheader, ESP sender domains,Precedence: bulk) below personal mail, but never suppress transactional notices (DocuSign, banks, invoices). - Body files are plain text: one line per paragraph, blank line between. Never insert manual line breaks inside a paragraph β the recipient's client does the wrapping. Short lines (sign-offs, list items) keep their breaks.
- Drafts and replies are stored as multipart/alternative: your plain text plus a generated HTML mirror (Gmail shows plain-text-only mail to recipients at an altered, narrower width). Body files stay plain text β never write HTML into them.
replythreads onto the original message;--allkeeps every recipient. Don't rebuild To/CC by hand. To change a draft, write a fresh body file andupdate-draft(it refuses drafts with attachments β those get edited in Gmail).- Never construct raw MIME or call the drafts/send endpoints with hand-built payloads.
- Never write styled HTML email β no font-family/size/color declarations, no CSS-styled
buttons or layout markup. Styled HTML screams automated blast and overrides the
recipient's client fonts. The helper's generated HTML mirror (bare
<div dir="ltr">,<br>, plain links β Gmail-composer shaped) is the only HTML that ever goes out. - Write body files as UTF-8. After creating or updating a draft, read it back
(
gmail.py thread/draft read) and confirm em dashes, quotes, and any emoji came through intact β mojibake (Γ’β¬Β¦-style garble) in a sent mail is unrecoverable.
Calendar reads
For "what is on my schedule today?", first get the user's timezone
(GET /calendar/v3/users/me/settings/timezone β the sandbox clock is UTC, so never
assume it), compute the local day bounds, and call:
curl -sS
FAQ
What if Gmail says I am not connected?
Reconnect Google through the product connection flow. The assistant cannot read your data until the permission is in place.
Can it send emails for me?
It works with drafts and replies in Gmail. Review anything it prepares before it goes out.
Does it cover only Google Calendar?
No. It also covers Google Tasks, so it can read and update your to-do lists.
Details
Original description by the author
Read and act on the user's Gmail, Google Calendar, and Google Tasks through per-user OAuth.
repo: yc-software/qm
Popularity
- GitHub stars
- 16k
- Ranking position
- #10894
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
deploy-qm
16kDeploys the QM package to Fly.io, AWS, or Render, then sets up an administrator, connectors, and optionally Slack, following a full deployment checklist.
onboarding
16kWalks a new user through connecting accounts, sharing how they work, choosing a voice, and setting up first help, in one short conversation.
admin
16kLets a verified organization admin inspect or change org-wide settings and other scopes from chat, confirming each change before it is made.
browse
16kDrives a real stealth browser from your shell to act on websites, such as signing in or filling forms, with sign-ins kept per person. Meant for actions, not reading.
Similar skills
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
configure-channel
394kTeaches your agent to connect a chat app such as Telegram to OpenClaw, store the bot token safely, and check that messages flow.
discord
394kHelps your agent read, send, edit, and react to Discord messages through OpenClaw, checking the exact message before making changes.