gws-account-switch
БесплатноБез исполняемых скриптовНе проверенChoose a named Google Workspace account alias (`work`, `personal`, `columbia`) for `gws` and switch agents onto the matching exported credentials file. Use…
от ma08★ 31 звезда на GitHubОб этом скилле
gws Account Switch
Use this alongside gws-shared, gws-gmail, gws-drive, and gws-calendar-safe when the user cares about which account gws should target.
Aliases
work->[email protected]personal->[email protected]columbia-> authenticated mailbox[email protected]; normal outbound From identity[email protected]
Workflow
- Confirm which alias the user wants if it is not already clear.
- Check whether
~/.config/gws/accounts/<alias>.jsonexists. - If the alias file is missing, tell the user the account must be initialized first:
gws auth login --scopes https://www.googleapis.com/auth/drive.readonly,https://www.googleapis.com/auth/gmail.readonly,https://www.googleapis.com/auth/gmail.composegws-save-account <alias>
- For commands against a specific mailbox, use:
gws-account <alias> gmail +triagegws-account <alias> gmail +read --id <message-id>gws-gmail-draft <alias> --to <address> --subject <subject> --body-file <path>gws-account <alias> drive files list --params '{"pageSize": 5, "q": "trashed=false"}' --format jsongws-calendar-safe calendars --account <alias>for Calendar inventorygws-calendar-safe auth-plan --account <alias>before Calendar reauthorizationgws-account <alias> <service> <resource> ...for raw commands
Notes
gws-accountworks by settingGOOGLE_WORKSPACE_CLI_CREDENTIALS_FILEto the alias file before executinggws.- Named alias state uses a private file-backed token cache by default so non-interactive Mac SSH sessions do not depend on GUI keychain access. Set
GWS_ACCOUNT_KEYRING_BACKEND=keyringonly when an interactive keychain is available. gws-save-accountexports the currently active decrypted credentials into~/.config/gws/accounts/<alias>.json.- On this machine, the saved aliases are expected to carry both Gmail read and Drive read scopes.
- Draft-enabled aliases additionally need
gmail.compose; this scope also technically permits sending. - After the alias exists, Calendar-enabled aliases use exactly
calendar.eventspluscalendar.calendarlist.readonly; preserve all existing non-Calendar scopes throughgws-calendar-safe auth-plan. - Calendar writes must use
gws-calendar-safe, never a rawgws calendarmutation. - The
columbiacredential still targets the[email protected]mailbox, while new drafts should normally use its accepted default send-as address[email protected]in the From header. - Prefer read-only Gmail and Drive flows unless the user explicitly asks to create a Gmail draft or perform another mutation.
- A vague request to “draft an email” means local text only. Gmail creation requires explicit Gmail-draft intent.
- Sending remains separate and always requires explicit confirmation.
- Never expose raw credential contents in chat or logs.
Установить gws-account-switch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл gws-account-switch?
Choose a named Google Workspace account alias (`work`, `personal`, `columbia`) for `gws` and switch agents onto the matching exported credentials file. Use when a user wants Gmail, Drive, or guarded Calendar access from a specific account or needs the multi-account googleworkspace/cli workflow on this machine.
Как установить скилл gws-account-switch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gws-account-switch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic