google-workspace
Use Google Workspace CLI (`gws`) for Drive, Docs, Sheets, Gmail, Calendar, Chat, and related Workspace API tasks.
适合你,如果经常在谷歌办公套件中处理重复任务
/ 通过 npx 安装 校验哈希
npx oh-my-skill add swarmclawai/swarmclaw/google-workspace/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- swarmclawai/swarmclaw/google-workspace/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify swarmclawai/swarmclaw/google-workspace安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
611GitHub stars
~605上下文体积 · 单文件
索引托管
怎么用
技能原文 SKILL.md
Google Workspace CLI
Use gws when the task is about Google Workspace resources or Google Workspace API automation.
Prefer gws over generic HTTP calls when possible because it already knows the Workspace API surface and returns structured JSON by default.
Rules
- Start with read/list/get commands before mutating Workspace state.
- Confirm IDs first: document IDs, spreadsheet IDs, file IDs, message IDs, calendar IDs, space IDs.
- Do not run interactive auth flows from an agent tool call. If auth is missing, report that
gwsneeds to be configured in plugin settings or via a manual terminal login. - Keep commands machine-readable. Prefer JSON output and parse it instead of scraping human text.
- For large list operations, limit the scope first, then page or filter.
Common Commands
Check installation and health:
gws doctor
Inspect help for a resource or method:
gws help gws drive help gws drive files help
Google Docs:
gws docs get --document-id <DOC_ID>
Google Drive:
gws drive files list --params '{"pageSize":10}'
gws drive files get --file-id <FILE_ID>
Google Sheets:
gws sheets spreadsheets get --spreadsheet-id <SPREADSHEET_ID>
Gmail:
gws gmail users messages list --user-id me --params '{"maxResults":10}'
gws gmail users messages get --user-id me --message-id <MESSAGE_ID>
Google Calendar:
gws calendar events list --calendar-id primary --params '{"maxResults":10,"singleEvents":true}'
Google Chat:
gws chat spaces messages list --parent spaces/<SPACE_ID>
Tool Usage In SwarmClaw
When using the google_workspace tool:
- Put the
gwscommand after the binary intoargs, for example:{"args":["drive","files","list"],"params":{"pageSize":5}} - Use
paramsfor--params - Use
jsonInputfor--json - Use
pageAll: truewhen you intentionally want all pages - Use
dryRun: truebefore risky mutations if you are unsure
Error Handling
- If
gwsis missing: tell the user to install Google Workspace CLI. - If auth is missing or expired: tell the user to configure the plugin settings or authenticate
gwsmanually. - If a command fails because an ID is missing: switch to a list/search command first and find the right ID.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…