/asb-core:gmail-connectorfrom ASB Core
Reads, searches, and organizes Gmail through the Gmail API. Use to sweep the inbox, read a thread in full, or archive. Sending stays approval-gated.
Ships in ASB Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Manage the owner's Gmail account (connected to [email protected]) for reading, searching, and organizing emails.
This skill allows the assistant to interact with the Gmail API. It supports fetching recent emails, searching using standard Gmail queries, reading full content, and archiving messages.
profileGet the user's Gmail profile (email address and message counts).
python .agent/skills/gmail-connector/gmail_manager.py profilelist-emailsList recent emails or search with a query.
python .agent/skills/gmail-connector/gmail_manager.py list--query: Gmail search string (e.g., from:work, is:unread, subject:urgent).--limit: Number of results to return (default 10).get-emailRetrieve the full content of a specific email.
python .agent/skills/gmail-connector/gmail_manager.py get <msg_id>archive-emailMove an email from Inbox to Archive.
python .agent/skills/gmail-connector/gmail_manager.py archive <msg_id>sendSend a plain-text email from [email protected] (appears in Sent). The gmail.modify scope already permits sending. Always confirm with the owner before sending.
--approved is mandatory (since 15 Oct 2026). Without it the script refuses before any network call, with the same wording as slack_client.py. Add --approved only at the post-approval step, after the owner has signed off on this exact draft. A recipient outside yourcompany.com needs two approvals in two separate turns (content first, then the final text with To/Cc); --approved goes on the command only after the second. There is no environment bypass for it. Do not retry with --approved on a guess. The examples below show the command as it runs at that step.
Command:
python .agent/skills/gmail-connector/gmail_manager.py send \
--to "[email protected]" \
--cc "[email protected], [email protected]" \
--subject "Subject" \
--body-file /tmp/body.txt \
--approved
Arguments:
--to: recipient(s), comma-separated (required).--cc: cc recipient(s), comma-separated (optional).--subject: subject line (required unless --reply-to is used).--reply-to: Gmail message id to reply INTO. The new message inherits that message's threadId, subject, and In-Reply-To/References chain, so Gmail and Outlook both keep it inside the existing thread. --subject is ignored in this mode.--approved: required. Set it only after the owner approved this exact draft (see above).--body OR --body-file: inline text, or a file with the body (use --body-file for multi-line to avoid shell escaping).--attach: path to a file to attach. Repeat the flag once per file. MIME type is guessed from the extension; a missing path or a total over Gmail's 35 MB message limit fails before any network call.
python .agent/skills/gmail-connector/gmail_manager.py send \
--to "[email protected]" \
--subject "Travel documents" \
--body-file /tmp/body.txt \
--attach /tmp/eticket.pdf --attach /tmp/voucher.pdf \
--approved
Threading gotcha: without --reply-to, Gmail starts a new thread even when the subject matches the original character for character. Any reply on a live client thread must pass --reply-to <last_message_id>, or the client sees a second, orphaned thread. To reply-all, copy the To/Cc set off the message you are replying to (get <msg_id> prints them) and pass them explicitly; the script does not expand reply-all for you.
python .agent/skills/gmail-connector/gmail_manager.py send \
--reply-to <last_message_id> \
--to "[email protected]" \
--cc "[email protected],[email protected]" \
--body-file /tmp/body.txt \
--approved
The skill uses the Work project's credentials.json (located in .agent/skills/work-drive-connector/) and saves token_gmail_work.json in the skill directory.
Interactive (WSL/terminal with stdin): Run any command; it triggers an OAuth flow. Copy the code from the browser address bar and paste it when prompted.
Headless (two-step, for non-interactive shells):
python .agent/skills/gmail-connector/gmail_manager.py auth-url → open the printed URL signed in as [email protected], approve, copy the code= value from the (failed-to-load) localhost:8080 redirect URL.python .agent/skills/gmail-connector/gmail_manager.py auth-save --code "PASTE_CODE_HERE" → saves the token.If a send fails with "Gmail API has not been used in project ... or it is disabled," enable the Gmail API once in the Google Cloud project tied to the Work OAuth client, then retry.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
66 skills in this plugin
/access-watchFinds every request for access that is waiting on the owner, from both places they arrive, and verifies each one against the live permission state before reporting it./achievements-trackerFinds the owner's product wins in real data each month, drafts CV bullets with caveats and the decisions behind them, messages the owner, and adds them to the CV after a grace period (silence = approved). Use when the owner says "review my CV wins", "approve ACH-xxxx", "reject ACH-xxxx", asks what wins are pending, or asks to add an achievement to their CV./agy-bridgeOptional cost saver that routes bulk mechanical work to a non-Claude model. Use for harvest, critic, and research offload; never for synthesis or strategy. Fully skippable, the harness works without it.npx claudepluginhub brianarfi/ai-second-brain --plugin asb-coreOther plugins' skills for the same job