Skip to content

feat(skills): bundled gmail skill (IMAP/SMTP via app password) - #107

Merged
cryptolir merged 1 commit into
mainfrom
feat/gmail-skill
Jul 24, 2026
Merged

cryptolir merged 1 commit into
mainfrom
feat/gmail-skill

Conversation

@cryptolir

Copy link
Copy Markdown
Owner

Step 1 of the Gmail-app-password rollout (docs/plans/gmail-app-password.md, in openclaw-dashboard).

Adds a bundled gmail skill — 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. No install block (python3 is in-image; a brew-only block is what killed himalaya).
  • skills/gmail/scripts/gmail.py — verbs list/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-unittest checks, no network: password normalization, TLS-actually-verifies, MIME decode, reply threading, clip, and the random-per-run fence() (a Subject carrying a forged END marker cannot escape the region).
  • skills/manifest.json — regenerated; gmail entry with auto-computed contentHash.

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's docker.env (Step 2+). Merging changes nothing at runtime.

Verified locally: python3 -m py_compile skills/gmail/scripts/gmail.py OK; python3 skills/gmail/scripts/test_gmail.py → 20/20 OK; import audit confirms stdlib-only.

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]>
@cryptolir
cryptolir merged commit 72d4637 into main Jul 24, 2026
17 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant