/gws:gws-setupfrom gws
Safely inspect, preview, and configure optional GWS authentication and session-context hooks for time and Workspace context.
Ships in gws. 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.
Use this workflow to inspect and configure gws and its optional context hooks. Installation is inert: no Workspace API calls or context injection occur until the user explicitly approves an --apply command.
gwsis not the official Google CLI and is not endorsed by or affiliated with Google.
Run only read-only checks:
command -v gws
gws version
gws hooks status
If the user is considering Workspace context, also run gws auth status. Report paths, enabled providers, timezone, auth readiness, source gaps, and duplicate time injectors without including credentials or cached context.
Use --format json for structured automation, --format yaml for readable structured output, or --format text for a concise terminal view. Hook status and health output never includes cached Workspace content in any format.
Configuration precedence is: built-in defaults, user config ~/.config/gws/hooks.json, workspace config .gws/hooks.json, then GWS_HOOKS_ENABLED and GWS_HOOKS_TIMEZONE environment overrides. The user config exclusively owns the global hook gate and both provider enablement settings. Workspace config contains only allowlisted, consent-free preferences such as timezone, Workspace refresh TTL, and source settings; it cannot activate a provider, private reads, credentials, tokens, or cached content.
Ask the user to choose one or both providers:
time: computes current local time for every supported event; no Google auth required.workspace: reads only configured Calendar, Gmail, sent-mail, Tasks, and explicit Chat sources, refreshing only on an event after its TTL expires.Preview every mutation without --apply:
gws hooks enable --time --scope user
gws hooks enable --workspace --scope user
gws hooks enable --time --workspace --scope user
gws hooks configure --scope user --enabled=true --time=true --workspace=false
gws hooks configure --scope workspace --calendar=false --gmail=false --sent-mail=false --tasks=true --chat=false
gws hooks configure --scope workspace --timezone America/New_York --refresh-minutes 5 --calendar-lookahead-days 7 --gmail-limit 8 --sent-lookback-days 7 --sent-limit 5 --task-discovery-limit 3 --task-limit 10
gws hooks configure --scope workspace --task-list TASK_LIST_ID --chat-space spaces/SPACE_ID --chat-limit 5
Review the exact path and requested keys. Existing configuration values are deliberately not echoed; use gws hooks status to inspect the safe effective provider state and auth requirement.
Only after the user explicitly approves the exact preview, repeat that command with --apply:
gws hooks enable --time --workspace --scope user --apply
gws hooks configure --scope workspace --timezone America/New_York --refresh-minutes 5 --apply
Writes are atomic, merge-only, and mode-restricted. They never write secret material. Do not use workspace scope for hooks enable, hooks disable, or hooks configure --enabled/--time/--workspace: those consent controls are user-scope only.
Applying GWS configuration makes the providers eligible, but it does not by itself activate a lifecycle hook in the host. The host must also review and approve the packaged hook entrypoints.
/hooks, inspect the gws SessionStart and UserPromptSubmit entries, and explicitly approve them when the user approves that separate host action.See the focused hook command reference for the user-facing command surface and safety constraints.
Run a safe health check after an approved change:
gws hooks status
gws hooks test --event UserPromptSubmit
The test reports provider state, resolved timezone, auth/source diagnostics, source availability, and refresh metadata without printing cached Workspace or message content. It does not mutate Workspace state. For reconfiguration, preview gws hooks configure and get new approval before --apply. To stop all hook fetches immediately while retaining normal gws commands and authentication:
gws hooks disable --scope user
gws hooks disable --scope user --apply
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/gws-authGoogle Workspace CLI authentication setup and management. Use when users need to set up OAuth credentials, authenticate with Google APIs, or troubleshoot authentication issues. Triggers: gws auth, google workspace setup, oauth, credentials, client id, api setup./gws-calendarGoogle Calendar CLI operations via gws. Use when users need to list calendars, view events, create/update/delete events, RSVP to invitations, manage calendar CRUD, subscriptions, ACL, free/busy queries, colors, and settings. Triggers: calendar, events, meetings, schedule, rsvp, invite, share, freebusy./gws-chatGoogle Chat CLI operations via gws. Use when users need to list/create/manage chat spaces, read/send messages, manage members, track read state, handle attachments, or monitor space events. Triggers: google chat, gchat, chat spaces, chat messages.Other plugins' skills for the same job
npx claudepluginhub omriariav/workspace-cli --plugin gws