Repository navigation
feat(skills): bundled gmail skill (IMAP/SMTP via app password) - #107
Merged
Merged
Conversation
New skill `gmail`: list/read/send/reply over IMAP+SMTP using a Google
App Password. python3-stdlib-only (imaplib/smtplib/email/ssl) — the
container has python3 stdlib + curl but no jq/himalaya/msmtp. Ships:
- skills/gmail/SKILL.md (frontmatter + untrusted-email guard
rails + human-confirms-every-send rule)
- skills/gmail/scripts/gmail.py (verbs: list/read/send/reply)
- skills/gmail/scripts/test_gmail.py (20 stdlib-unittest checks, no network)
- skills/manifest.json (regenerated: gmail entry, auto hash)
Step 1 of the rollout in docs/plans/gmail-app-password.md. Inert until a
dashboard writes GMAIL_ADDRESS/GMAIL_APP_PASSWORD onto an agent's
docker.env: requires.env is unsatisfied on every agent today, so the
skill is invisible fleet-wide. Safe to merge with no dashboard.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 1 of the Gmail-app-password rollout (
docs/plans/gmail-app-password.md, in openclaw-dashboard).Adds a bundled
gmailskill — list / read / send / reply over IMAP + SMTP using a Google App Password (not OAuth).What ships
skills/gmail/SKILL.md— frontmatter (requires.env = [GMAIL_ADDRESS, GMAIL_APP_PASSWORD],bins = [python3],primaryEnv = GMAIL_APP_PASSWORD), the untrusted-email injection guard rails, and the "human confirms before every send" rule. Noinstallblock (python3 is in-image; a brew-only block is what killedhimalaya).skills/gmail/scripts/gmail.py— verbslist/read/send/reply. python3 stdlib only (imaplib/smtplib/email/ssl/secrets) — no third-party import. The container has python3 stdlib + curl, nothing pip.skills/gmail/scripts/test_gmail.py— 20 stdlib-unittestchecks, no network: password normalization, TLS-actually-verifies, MIME decode, reply threading,clip, and the random-per-runfence()(a Subject carrying a forged END marker cannot escape the region).skills/manifest.json— regenerated;gmailentry with auto-computedcontentHash.Safe to merge with no dashboard
The skill is inert everywhere today:
requires.env(GMAIL_ADDRESS / GMAIL_APP_PASSWORD) is unsatisfied on every agent, so the skill is invisible fleet-wide until a dashboard writes those vars onto an agent'sdocker.env(Step 2+). Merging changes nothing at runtime.Verified locally:
python3 -m py_compile skills/gmail/scripts/gmail.pyOK;python3 skills/gmail/scripts/test_gmail.py→ 20/20 OK; import audit confirms stdlib-only.