google-workspace
Read and act on Scott's Google account - Gmail, Drive, Calendar, Docs, and Sheets - through the Google REST APIs with his own OAuth client. Use when asked to…
от realness-online★ 20 звёзд на GitHub
Установить google-workspace в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Google Workspace
scripts/workspace.js signs in once for each account and runs a short script
against the Google REST APIs. Credentials and tokens live in
.pi/agent/state/google-workspace/, which git ignores. Never print a token.
Setup
- Save the OAuth "Desktop app" client JSON as
.pi/agent/state/google-workspace/credentials.json. node .pi/skills/google-workspace/scripts/workspace.js login --email <address>opens the browser and stores the token.
accounts lists signed-in addresses. Each call needs --email; if the user
did not name one, run accounts and confirm.
Calls
exec reads a script from stdin. It gets call(url, { method, params, data })
and auth, and prints what the script returns as JSON. One script per request;
use Promise.all for independent calls; ask only for the fields you need.
node .pi/skills/google-workspace/scripts/workspace.js exec --email [email protected] <<'JS'
const { messages } = await call('https://gmail.googleapis.com/gmail/v1/users/me/messages', {
params: { q: 'from:peter newer_than:7d', maxResults: 5 }
})
return Promise.all(messages.map(({ id }) =>
call(`https://gmail.googleapis.com/gmail/v1/users/me/messages/${id}`, {
params: { format: 'metadata', metadataHeaders: ['From', 'Subject', 'Date'] }
})
))
JS
Endpoints
- Gmail:
https://gmail.googleapis.com/gmail/v1/users/me/... - Drive:
https://www.googleapis.com/drive/v3/files - Calendar:
https://www.googleapis.com/calendar/v3/calendars/primary/events - Docs:
https://docs.googleapis.com/v1/documents/<id> - Sheets:
https://sheets.googleapis.com/v4/spreadsheets/<id>/values/<range>
Sending mail, deleting, or changing events and files needs the user's
approval first. A 401 or 403 means the token is stale or a scope is missing:
run login again.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/workspace.js
FAQ
Что делает скилл google-workspace?
Read and act on Scott's Google account - Gmail, Drive, Calendar, Docs, and Sheets - through the Google REST APIs with his own OAuth client. Use when asked to "check my calendar", "find that Doc", or "what did they email".
Как установить скилл google-workspace?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл google-workspace запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…