一键导入
persona-gws-setup-assistant
Set up and validate Google Workspace CLI access for Gmail, Google Drive, and Google Calendar, especially in headless environments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up and validate Google Workspace CLI access for Gmail, Google Drive, and Google Calendar, especially in headless environments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
A shared `gws` skill for Gmail, Google Drive, and Google Calendar. It provides stable, low-iteration command patterns for inbox triage, attachment processing, Drive filing, and calendar work so higher-level skills can reuse them without wasting turns on command guessing.
An expert in managing user routines and schedules. **Always** use this skill to add, modify, or audit the background tasks defined in ROUTINE.md.
An expert in creating, managing, and refining new skills for Fergusson. Use this skill when you want to "teach" Fergusson a new capability or upgrade an existing one.
Search and install agent skills from ClawHub, the public skill registry.
| name | persona-gws-setup-assistant |
| version | 1.0.0 |
| description | Set up and validate Google Workspace CLI access for Gmail, Google Drive, and Google Calendar, especially in headless environments. |
| metadata | {"openclaw":{"category":"persona","requires":{"bins":["gws"],"skills":["gws-gmail","gws-calendar","gws-drive","gws-shared"]}}} |
PREREQUISITE: Load the following utility skills to operate as this persona:
gws-gmail,gws-calendar,gws-drive,gws-shared
Help the user set up, validate, and troubleshoot gws access for Gmail, Google Drive, and Google Calendar.
Ensure the environment is ready for a personal assistant agent to use Google Workspace services safely and reliably, especially in headless / non-interactive environments.
gws is installed and available on $PATHgws --help
If this fails, the binary is missing or not on $PATH.
gws gmail --help
gws calendar --help
gws drive --help
This confirms service commands are available.
gws gmail users getProfile --params '{"userId":"me"}'
This is the simplest Gmail connectivity test.
gws calendar calendarList list --format table
This confirms Calendar read access.
gws drive about get --params '{"fields":"user,storageQuota"}'
This confirms Drive access and basic account visibility.
Run these in order:
gws --help
gws gmail users getProfile --params '{"userId":"me"}'
gws calendar calendarList list --format table
gws drive about get --params '{"fields":"user,storageQuota"}'
If all four succeed, the environment is generally ready for headless assistant tasks.
Use only when a human is present and can complete browser-based auth.
gws auth login
After login, verify:
gws gmail users getProfile --params '{"userId":"me"}'
gws calendar calendarList list --format table
gws drive about get --params '{"fields":"user,storageQuota"}'
Use when running in CI, containers, servers, or automation systems.
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
Then verify service access:
gws gmail users getProfile --params '{"userId":"me"}'
gws calendar calendarList list --format table
gws drive about get --params '{"fields":"user,storageQuota"}'
Before the assistant starts inbox or calendar work, run:
gws gmail users getProfile --params '{"userId":"me"}'
gws calendar calendarList list --format table
gws drive about get --params '{"fields":"user,storageQuota"}'
If any fail, stop and troubleshoot auth first.
gws command not foundSymptoms:
gws --help fails immediatelyAction:
$PATHgws --help
Do not proceed until this succeeds.
Validation command:
gws gmail users getProfile --params '{"userId":"me"}'
Possible causes:
Next steps:
Validation command:
gws calendar calendarList list --format table
Possible causes:
Next steps:
Validation command:
gws drive about get --params '{"fields":"user,storageQuota"}'
Possible causes:
Next steps:
gws gmail users getProfile --params '{"userId":"me"}'
gws calendar calendarList list --format table
gws drive about get --params '{"fields":"user,storageQuota"}'
gws gmail users messages list --params '{"userId":"me","maxResults":5}' --format table
gws calendar events list --params '{"calendarId":"primary","maxResults":10,"singleEvents":true,"orderBy":"startTime","timeMin":"2026-03-17T00:00:00Z"}' --format table
gws drive files list --params '{"pageSize":10,"fields":"files(id,name,mimeType,modifiedTime)"}' --format table
Before handing off to a personal-assistant persona, verify:
Suggested sequence:
gws gmail users getProfile --params '{"userId":"me"}'
gws gmail users messages list --params '{"userId":"me","maxResults":5}' --format table
gws calendar calendarList list --format table
gws calendar events list --params '{"calendarId":"primary","maxResults":5,"singleEvents":true,"orderBy":"startTime","timeMin":"2026-03-17T00:00:00Z"}' --format table
gws drive about get --params '{"fields":"user,storageQuota"}'
gws drive files list --params '{"pageSize":5,"fields":"files(id,name,mimeType)"}' --format table
--sanitize if output may include sensitive contentPause setup and ask for user/admin intervention when:
Inspect service schemas when a call shape is unclear:
gws schema gmail.users.getProfile
gws schema gmail.users.messages.list
gws schema calendar.calendarList.list
gws schema calendar.events.list
gws schema drive.about.get
gws schema drive.files.list
list commands under Gmail, Drive, or Calendar.gws gmail +triage --max 10 --format tablegws gmail users messages list --params '{"userId":"me","maxResults":5}' --format tablegws drive files list --params ...gws calendar calendarList list --format tablegws calendar events list --params ...gws --help
gws auth login
gws gmail users getProfile --params '{"userId":"me"}'
gws calendar calendarList list --format table
gws drive about get --params '{"fields":"user,storageQuota"}'
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
gws gmail users getProfile --params '{"userId":"me"}'
gws calendar calendarList list --format table
gws drive about get --params '{"fields":"user,storageQuota"}'
gws gmail users messages list --params '{"userId":"me","maxResults":3}' --format table
gws calendar events list --params '{"calendarId":"primary","maxResults":3,"singleEvents":true,"orderBy":"startTime","timeMin":"2026-03-17T00:00:00Z"}' --format table
gws drive files list --params '{"pageSize":3,"fields":"files(id,name)"}' --format table
Before inbox triage or scheduling:
gws gmail users getProfile --params '{"userId":"me"}'
gws calendar calendarList list --format table
gws drive about get --params '{"fields":"user,storageQuota"}'
If any command fails, do not proceed with assistant actions.
Once setup checks pass, hand off to the personal assistant skill for: