/solo:solo-gmail-clifrom solo
Gives a coding agent read-only access to Gmail/Google Workspace mailboxes via the gws CLI. Handles OAuth setup, multiple mailboxes, token refresh, and the invalid_grant error.
Ships in solo. 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.
Read when SKILL.md points to them; scripts run unread.
gws (npm @googleworkspace/cli, v0.22.5 verified) calls the Gmail API with your own OAuth client. The mailbox is picked by the env var GOOGLE_WORKSPACE_CLI_CONFIG_DIR; there is no --account flag, and userId of another address gives "Delegation denied". So: one config directory and one wrapper script per mailbox. Full write-up: https://rustman.org/wiki/gmail-cli-several-mailboxes-gws/
Placeholders below: [email protected], gws-personal, gws-work, ~/.config/gws-personal. Substitute the user's real names.
| Step | Who |
|---|---|
| Install, config dirs, wrappers, search, read | agent |
| Create Cloud project, enable Gmail API, Branding, Desktop client, download JSON, Publish app | human, in the browser (the API cannot create a Desktop client) |
auth login (opens a browser, picks the account) | human: ask them to run ! gws-personal auth login --readonly |
command -v gws || npm install -g @googleworkspace/cli; then gws --version. Do not upgrade mid-task: 0.4.x to 0.22.x moved the token into the keyring and old caches stop working.ls ~/.config/gws*/client_secret.json. If one does, skip to step 4 and copy it.mkdir -p ~/.config/gws-personal ~/.local/bin
cp ~/Downloads/client_secret_*.json ~/.config/gws-personal/client_secret.json
cat > ~/.local/bin/gws-personal <<'SH'
#!/usr/bin/env bash
exec env GOOGLE_WORKSPACE_CLI_CONFIG_DIR="$HOME/.config/gws-personal" gws "$@"
SH
chmod +x ~/.local/bin/gws-personal
Repeat per mailbox (gws-work, ...) with another name and directory; the same client_secret.json works in all. Ensure ~/.local/bin is on PATH.gws-personal auth login --readonly. On "Google hasn't verified this app": Advanced, Go to app. Expected for a personal app.gws-personal auth status. Confirm it is the mailbox you mean. An empty result from the wrong mailbox looks exactly like "nothing found".# list by Gmail query (newest first)
gws-personal gmail users messages list \
--params '{"userId":"me","q":"from:[email protected] after:2026/01/01","maxResults":20}'
# unread summary
gws-personal gmail +triage --max 20 --format table
# one message as text (+headers)
gws-personal gmail +read --id MESSAGE_ID --headers
# full JSON; attachment ids are in payload.parts[]
gws-personal gmail users messages get --params '{"userId":"me","id":"MESSAGE_ID","format":"full"}'
# one attachment (base64url in .data)
gws-personal gmail users messages attachments get \
--params '{"userId":"me","messageId":"MESSAGE_ID","id":"ATTACHMENT_ID"}'
Bundled helper, prints date | sender | subject oldest first, --body adds a text excerpt:
GWS_BIN=gws-personal uv run scripts/mail.py 'from:example.com has:attachment' 20
GWS_BIN=gws-personal uv run scripts/mail.py 'subject:"Invoice 42"' 4 --body
Query pieces: from:, subject:"exact phrase", has:attachment, after:2025/05/01 before:2025/07/01, -from:newsletter.
--body: see what exists and the date range.from:vendor.com beats the bare word by an order of magnitude).--body on 3 to 6 messages that settle the question. Each get is one API call (~2.5 s).An OAuth app in Testing issues refresh tokens that die after 7 days: invalid_grant every week. Fix:
auth login once. The old token is dead; the new one does not expire weekly.invalid_grant / invalid_rapt after an upgrade or old attempt: rm -rf ~/.config/gws-personal/credentials.enc ~/.config/gws-personal/cache, log in again. If it recurs weekly, the app is still in Testing.! gws-personal auth login --readonly.serviceusage after login: the account has no role in the project owning the OAuth client. Grant roles/serviceusage.serviceUsageConsumer on that project, or use a separate project for that account.before: hides early years. Dig in periods (before:2022/01/01, then earlier) until empty.internalDate, not the Date header (forwarded mail has a wrong one). format:"metadata" is about 3x faster than full.timeout command on macOS; set the limit on the Bash tool call.gws for work and personal alike: it uses the default ~/.config/gws. Keep the default directory empty or logged out and use named wrappers only.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fortunto2/solo-factory --plugin solo71 skills in this plugin
/solo-android-releaseShip an Android app to testers or to Google Play, or push an update to an app already listed there. Use when the user says "make the Android app available to testers", "internal/open testing link", "publish to Play", "release the APK/AAB", "Play Console", "upload a new version", wants install attribution set up (Play referrer UTMs, Install Referrer API, an in-app counter and the matching Data safety form), or hits a Play policy deadline ("app doesn't meet target API level requirements"). Leads with the MINIMAL tester-link workflow (fastest), then the FULL production listing, then UPDATE for an existing app. Carries the exact Play Console browser steps, signing/keystore setup, the testing-track comparison, required assets, and the gotchas (lintVitalRelease crash, 16 KB alignment, target API deadline) so you don't re-learn them./solo-apple-app-iconBuild an iOS 26+ layered app icon (.icon / Icon Composer) from a designer's SVG, generated by script rather than drawn by hand, and check every appearance without launching the app. Use when the user says "иконка приложения", "сделай иконку", "app icon", "Icon Composer", "layered icon", "иконка не как в фигме", "тёмная иконка выглядит плохо", or when an app still ships a folder of flattened PNGs. Do NOT use for in-app icons and SF Symbols (that is symbol work), or for the App Store screenshot set.Other plugins' skills for the same job