Google Workspace CLI Automation and Access Audits

Build verified gws commands for Google Workspace automation, authentication fixes, and evidence-based Drive sharing audits.

Development / Engineeringgoogle-workspacegws-cli
by AgentVoltv1.0.0
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

Prompt“Automate Gmail label rules and Calendar scheduling for 50 team members”
Beforegeneric AI agent
You can use the Google Workspace admin console to manage Gmail and Calendar settings at scale. You could create label rules to auto-organize incoming mail, and set up Calendar sharing policies. You might want to create groups for different teams and apply settings to the whole group at once. There are also some third-party tools that can help automate Gmail and Calendar tasks. You should think about what the core rules are that need to be applied, then figure out the most efficient way to apply them across your organization. Would you like suggestions on specific label strategies or Calendar settings?
Afterwith Google Workspace CLI Automation and Access Audits
GWS CLI AUTOMATION PLAN

GMAIL LABEL RULES (via gws)
  gws mail labels create finance-inbox --color green
  gws mail filters create --from '*@finance-vendor' --label finance-inbox --archive
  gws mail filters create --subject 'Invoice' --label finance-inbox --mark-important
  Applied to: All 50 via group finance-team@company.internal
  Total rules: 8 filters per user = 400 rules configured
  Audit command: gws mail filters list shows all active

CALENDAR SCHEDULING RULES
  gws calendar sharing update --calendar-id 'team@company.internal' --share-with 'all@company.internal' --access-level freebusy
  gws calendar working-hours set --start 09:00 --end 18:00 --timezone 'America/New_York'
  gws calendar autoreply create --message 'I will respond within 24 hours' --start-date 2026-08-01
  Applied to: 50-member cohort via batch command
  Batch syntax: gws batch --config team-settings.yaml --members team-50.csv

VALIDATION
  gws mail filters list --member user@company.internal (verify per-user)
  gws calendar sharing list (verify access levels)
  Scheduled audit: Weekly report of new filters added (catch unauthorized changes)
  Result: 50 users with identical sharing, working hours, auto-reply policies

About this skill

“The command worked, but it used the wrong account” and “the audit missed half our files” are expensive ways to discover an automation gap. This skill turns Google Workspace requests into verified gws operations, with explicit account scope, complete pagination, bounded changes, and evidence of what actually happened.

What it does

  • Diagnoses installation, authentication, OAuth scope, and resource permission problems separately.
  • Builds commands from the installed CLI's help and API schemas instead of guessing flags or recipe names.
  • Automates Gmail, Drive, Sheets, Calendar, Docs, Chat, and Tasks with each app's resource and update rules.
  • Audits Drive access using actual permissions, inherited access, business context, and an explicit coverage boundary.
  • Designs repeatable jobs with checkpoints, duplicate prevention, selective retries, and readback verification.
  • Previews bulk changes and identifies which operations need an approved test or explicit authorization.

What you get

A command sequence, runnable inline automation when needed, or a prioritized access audit sized to your request. Each deliverable distinguishes proposed commands from executed operations and names any remaining verification gaps.

Best for

Workspace administrators, operations engineers, and technical teams using gws to manage Google apps or turn recurring manual work into reliable automation.

SKILL.md preview

SKILL.md
---
name: google-workspace-cli-automation-and-access-audits
description: Build and troubleshoot Google Workspace automation through gws or the underlying Google APIs using installed CLI help, API schemas, scoped authentication, complete pagination, and readback verification. Audit Drive permissions with explicit coverage and business context. Use when the user says "set up gws", "my gws login keeps failing", "automate Gmail from the terminal", "audit who can access our Drive files", "bulk update this Google Sheet", "schedule Calendar events with gws", or "my Workspace script keeps creating duplicates".
---

# Google Workspace CLI Automation and Access Audits

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill

More development skills

View all Development skills →