[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMCKQVQVMV66BB5F0HG4N2":3,"skill-same:01M7AMCKQVQVMV66BB5F0HG4N2":93},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7AMCKQVQVMV66BB5F0HG4N2","google-workspace-cli",null,"Google Workspace administration via the gws CLI (github.com\u002Fgoogleworkspace\u002Fcli). Install, authenticate, and automate Gmail, Drive, Sheets, Calendar, Docs, Chat, and Tasks. Run security audits and use local recipe templates and persona bundles. Use for Google Workspace admin, gws CLI setup, Gmail automation, Drive management, or Calendar scheduling.","Cyrilthetecchieee\u002Fcyril-code-","Cyrilthetecchieee","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219787998?v=4","01M7AF0MMMKRAA0H61XMJPV92H","Julian Cyril D ","01M7AF0MQ10AVG6QJQ1C2BC0F5",2,"MIT","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"google-workspace-cli\"\ndescription: \"Google Workspace administration via the gws CLI (github.com\u002Fgoogleworkspace\u002Fcli). Install, authenticate, and automate Gmail, Drive, Sheets, Calendar, Docs, Chat, and Tasks. Run security audits and use local recipe templates and persona bundles. Use for Google Workspace admin, gws CLI setup, Gmail automation, Drive management, or Calendar scheduling.\"\n---\n\n# Google Workspace CLI\n\nExpert guidance and automation for Google Workspace administration using the open-source `gws` CLI ([github.com\u002Fgoogleworkspace\u002Fcli](https:\u002F\u002Fgithub.com\u002Fgoogleworkspace\u002Fcli), Apache-2.0). The CLI builds its command surface dynamically from Google's Discovery Service, so it covers every supported Workspace API plus `+`-prefixed helper commands. This skill adds local Python tools (doctor, auth guide, recipe catalog, security audit, output analyzer).\n\n> **Verify before scripting:** `gws` generates commands at runtime from Google's API discovery documents, and the CLI is pre-v1.0. Always confirm a command's exact surface with `gws --help`, `gws \u003Cservice> --help`, or `gws schema \u003Cservice>.\u003Cresource>.\u003Cmethod>` before putting it in automation. Commands in this skill marked *(verify)* are illustrative of the `gws \u003Cservice> \u003Cresource> \u003Cmethod>` pattern and must be checked against your installed version.\n\n---\n\n## Quick Start\n\n### Check Installation\n\n```bash\n# Verify gws is installed and authenticated\npython3 scripts\u002Fgws_doctor.py\n```\n\n### Send an Email\n\n```bash\ngws gmail +send --to \"team@company.com\" \\\n  --subject \"Weekly Update\" --body \"Here's this week's summary...\"\n```\n\n### List Drive Files\n\n```bash\ngws drive files list --params '{\"pageSize\": 20}' | python3 scripts\u002Foutput_analyzer.py --select \"name,mimeType,modifiedTime\" --format table\n```\n\n---\n\n## Installation\n\n### npm (recommended; requires Node.js 18+)\n\n```bash\nnpm install -g @googleworkspace\u002Fcli\ngws --version\n```\n\n### Homebrew (macOS\u002FLinux)\n\n```bash\nbrew install googleworkspace-cli\n```\n\n### Cargo (from source)\n\n```bash\ncargo install --git https:\u002F\u002Fgithub.com\u002Fgoogleworkspace\u002Fcli --locked\ngws --version\n```\n\n### Pre-built Binaries\n\nDownload from [github.com\u002Fgoogleworkspace\u002Fcli\u002Freleases](https:\u002F\u002Fgithub.com\u002Fgoogleworkspace\u002Fcli\u002Freleases) for macOS, Linux, or Windows. Nix users: `nix run github:googleworkspace\u002Fcli`.\n\n### Verify Installation\n\n```bash\npython3 scripts\u002Fgws_doctor.py\n# Checks: PATH, version, auth status, service connectivity\n```\n\n---\n\n## Authentication\n\n### OAuth Setup (Interactive)\n\n```bash\n# Step 1: Create Google Cloud project and OAuth credentials\npython3 scripts\u002Fauth_setup_guide.py --guide oauth\n\n# Step 2: Run interactive auth setup (uses gcloud if available)\ngws auth setup\n\n# Step 3: Log in, requesting only the scopes you need\ngws auth login -s drive,gmail,sheets\n```\n\n### Headless\u002FCI\n\n```bash\n# Generate setup instructions\npython3 scripts\u002Fauth_setup_guide.py --guide service-account\n\n# Export credentials from an interactive machine, then point the CLI at them\ngws auth export --unmasked > credentials.json\nexport GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE=\u002Fpath\u002Fto\u002Fcredentials.json\n```\n\n### Environment Variables\n\n```bash\n# Generate .env template\npython3 scripts\u002Fauth_setup_guide.py --generate-env\n```\n\n| Variable | Purpose |\n|----------|---------|\n| `GOOGLE_WORKSPACE_CLI_CLIENT_ID` | OAuth client ID |\n| `GOOGLE_WORKSPACE_CLI_CLIENT_SECRET` | OAuth client secret |\n| `GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE` | Path to exported credentials JSON |\n| `GOOGLE_WORKSPACE_CLI_TOKEN` | Pre-obtained OAuth token |\n| `GOOGLE_WORKSPACE_CLI_CONFIG_DIR` | Override default config location |\n| `GOOGLE_WORKSPACE_CLI_LOG` | Enable debug logging |\n\n### Validate Authentication\n\n```bash\npython3 scripts\u002Fauth_setup_guide.py --validate --json\n# Tests each service endpoint\n```\n\n---\n\n## Workflow 1: Gmail Automation\n\n**Goal:** Automate email operations — send, search, label, and filter management.\n\n### Send, Reply, Forward (helper commands)\n\n```bash\n# Send a new email\ngws gmail +send --to \"client@example.com\" \\\n  --subject \"Proposal\" --body \"Please find attached...\"\n\n# Reply to a message (auto-threading); check exact flags with: gws gmail +reply --help\ngws gmail +reply ...\n\n# Forward a message; check exact flags with: gws gmail +forward --help\ngws gmail +forward ...\n\n# Unread inbox summary\ngws gmail +triage\n```\n\n### Search and Inspect (discovery commands)\n\nDiscovery commands follow `gws \u003Cservice> \u003Cresource> \u003Cmethod>` and take request\nparameters as JSON via `--params` (query\u002Fpath params) and `--json` (request body).\nInspect any method's exact schema first:\n\n```bash\n# What does messages.list accept? (verify)\ngws schema gmail.users.messages.list\n\n# Search emails (verify against the schema above)\ngws gmail users messages list --params '{\"userId\": \"me\", \"q\": \"from:client@example.com after:2025\u002F01\u002F01\"}' \\\n  | python3 scripts\u002Foutput_analyzer.py --count\n\n# List labels (verify)\ngws gmail users labels list --params '{\"userId\": \"me\"}'\n```\n\n### Bulk Operations\n\nUse `--dry-run` first, and `--page-all` to paginate (one JSON line per page):\n\n```bash\n# Preview, then archive read emails older than 30 days (verify method schema first)\ngws gmail users messages list --params '{\"userId\": \"me\", \"q\": \"is:read older_than:30d\"}' --page-all \\\n  | python3 scripts\u002Foutput_analyzer.py --select \"id\" --format json\n# Then feed ids to gmail users messages modify (see: gws schema gmail.users.messages.modify)\n```\n\n---\n\n## Workflow 2: Drive & Sheets\n\n**Goal:** Manage files, create spreadsheets, configure sharing, and export data.\n\n### File Operations\n\n```bash\n# List files\ngws drive files list --params '{\"pageSize\": 50}' \\\n  | python3 scripts\u002Foutput_analyzer.py --select \"name,mimeType,size\" --format table\n\n# Upload a file (helper)\ngws drive +upload .\u002Freport.pdf --name \"Q1 Report\"\n\n# Create a Google Sheet\ngws sheets spreadsheets create --json '{\"properties\": {\"title\": \"Budget 2026\"}}'\n\n# Download\u002Fexport — inspect the method first (verify)\ngws schema drive.files.export\n```\n\n### Sharing (verify schemas first)\n\n```bash\n# Inspect the permissions API surface\ngws schema drive.permissions.create\n\n# Share with user (verify against schema)\ngws drive permissions create --params '{\"fileId\": \"\u003CFILE_ID>\"}' \\\n  --json '{\"type\": \"user\", \"role\": \"writer\", \"emailAddress\": \"colleague@company.com\"}'\n\n# List who has access (verify)\ngws drive permissions list --params '{\"fileId\": \"\u003CFILE_ID>\"}'\n```\n\n### Sheets Data\n\n```bash\n# Read values (helper); check exact flags with: gws sheets +read --help\ngws sheets +read ...\n\n# Append a row (helper); check exact flags with: gws sheets +append --help\ngws sheets +append ...\n\n# Or use discovery methods (verify):\ngws schema sheets.spreadsheets.values.update\ngws sheets spreadsheets values get --params '{\"spreadsheetId\": \"\u003CSHEET_ID>\", \"range\": \"Sheet1!A1:D10\"}'\n```\n\n---\n\n## Workflow 3: Calendar & Meetings\n\n**Goal:** Schedule events, find available times, and generate standup reports.\n\n### Event Management\n\n```bash\n# Create an event (helper); check exact flags with: gws calendar +insert --help\ngws calendar +insert ...\n\n# Upcoming events (helper, timezone-aware)\ngws calendar +agenda\n\n# Or via discovery (verify):\ngws schema calendar.events.insert\ngws calendar events list --params '{\"calendarId\": \"primary\", \"maxResults\": 10}'\n```\n\n### Find Available Time\n\n```bash\n# Free\u002Fbusy via the Calendar API (verify schema first)\ngws schema calendar.freebusy.query\ngws calendar freebusy query --json '{\"timeMin\": \"...\", \"timeMax\": \"...\", \"items\": [{\"id\": \"alice@co.com\"}]}'\n```\n\n### Standup Report (workflow helpers)\n\n```bash\n# Today's meetings + tasks\ngws workflow +standup-report \\\n  | python3 scripts\u002Foutput_analyzer.py --format table\n\n# Next meeting prep; check exact flags with: gws workflow +meeting-prep --help\ngws workflow +meeting-prep\n```\n\n---\n\n## Workflow 4: Security Audit\n\n**Goal:** Audit Google Workspace security configuration and generate remediation commands.\n\n### Run Full Audit\n\n```bash\n# Full audit across all services\npython3 scripts\u002Fworkspace_audit.py --json\n\n# Audit specific services\npython3 scripts\u002Fworkspace_audit.py --services gmail,drive,calendar\n\n# Demo mode (no gws required)\npython3 scripts\u002Fworkspace_audit.py --demo\n```\n\n### Audit Checks\n\n| Area | Check | Risk |\n|------|-------|------|\n| Drive | External sharing enabled | Data exfiltration |\n| Gmail | Auto-forwarding rules | Data exfiltration |\n| Gmail | DMARC\u002FSPF\u002FDKIM records | Email spoofing |\n| Calendar | Default sharing visibility | Information leak |\n| OAuth | Third-party app grants | Unauthorized access |\n| Admin | Super admin count | Privilege escalation |\n| Admin | 2-Step verification enforcement | Account takeover |\n\n### Review and Remediate\n\n```bash\n# Review findings\npython3 scripts\u002Fworkspace_audit.py --json | python3 scripts\u002Foutput_analyzer.py \\\n  --filter \"status=FAIL\" --select \"area,check,remediation\"\n\n# Execute remediation (example: check current Drive settings first; verify)\ngws drive about get --params '{\"fields\": \"*\"}'\n# Follow remediation commands from audit output (verify each against gws --help)\n```\n\n---\n\n## Python Tools\n\n| Script | Purpose | Usage |\n|--------|---------|-------|\n| `gws_doctor.py` | Pre-flight diagnostics | `python3 scripts\u002Fgws_doctor.py [--json] [--services gmail,drive]` |\n| `auth_setup_guide.py` | Guided auth setup | `python3 scripts\u002Fauth_setup_guide.py --guide oauth` |\n| `gws_recipe_runner.py` | Recipe catalog & runner | `python3 scripts\u002Fgws_recipe_runner.py --list [--persona pm]` |\n| `workspace_audit.py` | Security\u002Fconfig audit | `python3 scripts\u002Fworkspace_audit.py [--json] [--demo]` |\n| `output_analyzer.py` | JSON\u002FNDJSON analysis | `gws ... --json \\| python3 scripts\u002Foutput_analyzer.py --count` |\n\nAll scripts are stdlib-only, support `--json` output, and include demo mode with embedded sample data.\n\n---\n\n## Best Practices\n\n### Security\n\n1. Use OAuth with minimal scopes — request only what each workflow needs\n2. Store tokens in the system keyring, never in plain text files\n3. Rotate service account keys every 90 days\n4. Audit third-party OAuth app grants quarterly\n5. Use `--dry-run` before bulk destructive operations\n\n### Automation\n\n1. All `gws` output is structured JSON — pipe it through `output_analyzer.py` for filtering and aggregation\n2. Use `gws workflow +*` helpers for multi-step operations instead of chaining raw commands\n3. Use the local recipe catalog (`gws_recipe_runner.py`) as command templates, then verify each against `gws --help`\n4. `--page-all` emits one JSON line per page (NDJSON) for streaming large result sets\n5. Use `--dry-run` to preview any request before executing it\n\n### Performance\n\n1. Request only needed fields via the API's `fields` parameter in `--params` (reduces payload size)\n2. Use `pageSize` in `--params` to cap results when browsing\n3. Use `--page-all` only when you need complete datasets; tune with `--page-limit` \u002F `--page-delay`\n4. Prefer `+` helpers (single optimized calls) over hand-chained API calls\n5. Cache frequently accessed data (e.g., label IDs, folder IDs) in variables\n\n---\n\n## Limitations\n\n| Constraint | Impact |\n|------------|--------|\n| OAuth tokens expire after 1 hour | Re-auth needed for long-running scripts |\n| API rate limits (per-user, per-service) | Bulk operations may hit 429 errors |\n| Scope requirements vary by service | Must request correct scopes during auth |\n| Pre-v1.0 CLI status | Breaking changes possible between releases |\n| Google Cloud project required | Free, but requires setup in Cloud Console |\n| Admin API needs admin privileges | Some audit checks require Workspace Admin role |\n\n### Required Scopes by Service\n\n```bash\n# List scopes for specific services\npython3 scripts\u002Fauth_setup_guide.py --scopes gmail,drive,calendar,sheets\n```\n\n| Service | Key Scopes |\n|---------|-----------|\n| Gmail | `gmail.modify`, `gmail.send`, `gmail.labels` |\n| Drive | `drive.file`, `drive.metadata.readonly` |\n| Sheets | `spreadsheets` |\n| Calendar | `calendar`, `calendar.events` |\n| Admin | `admin.directory.user.readonly`, `admin.directory.group` |\n| Tasks | `tasks` |\n","# Google Workspace CLI\n\nExpert guidance and automation for Google Workspace administration using the open-source `gws` CLI ([github.com\u002Fgoogleworkspace\u002Fcli](https:\u002F\u002Fgithub.com\u002Fgoogleworkspace\u002Fcli), Apache-2.0). The CLI builds its command surface dynamically from Google's Discovery Service, so it covers every supported Workspace API plus `+`-prefixed helper commands. This skill adds local Python tools (doctor, auth guide, recipe catalog, security audit, output analyzer).\n\n> **Verify before scripting:** `gws` generates commands at runtime from Google's API discovery documents, and the CLI is pre-v1.0. Always confirm a command's exact surface with `gws --help`, `gws \u003Cservice> --help`, or `gws schema \u003Cservice>.\u003Cresource>.\u003Cmethod>` before putting it in automation. Commands in this skill marked *(verify)* are illustrative of the `gws \u003Cservice> \u003Cresource> \u003Cmethod>` pattern and must be checked against your installed version.\n\n---\n\n## Quick Start\n\n### Check Installation\n\n```bash\n# Verify gws is installed and authenticated\npython3 scripts\u002Fgws_doctor.py\n```\n\n### Send an Email\n\n```bash\ngws gmail +send --to \"team@company.com\" \\\n  --subject \"Weekly Update\" --body \"Here's this week's summary...\"\n```\n\n### List Drive Files\n\n```bash\ngws drive files list --params '{\"pageSize\": 20}' | python3 scripts\u002Foutput_analyzer.py --select \"name,mimeType,modifiedTime\" --format table\n```\n\n---\n\n## Installation\n\n### npm (recommended; requires Node.js 18+)\n\n```bash\nnpm install -g @googleworkspace\u002Fcli\ngws --version\n```\n\n### Homebrew (macOS\u002FLinux)\n\n```bash\nbrew install googleworkspace-cli\n```\n\n### Cargo (from source)\n\n```bash\ncargo install --git https:\u002F\u002Fgithub.com\u002Fgoogleworkspace\u002Fcli --locked\ngws --version\n```\n\n### Pre-built Binaries\n\nDownload from [github.com\u002Fgoogleworkspace\u002Fcli\u002Freleases](https:\u002F\u002Fgithub.com\u002Fgoogleworkspace\u002Fcli\u002Freleases) for macOS, Linux, or Windows. Nix users: `nix run github:googleworkspace\u002Fcli`.\n\n### Verify Installation\n\n```bash\npython3 scripts\u002Fgws_doctor.py\n# Checks: PATH, version, auth status, service connectivity\n```\n\n---\n\n## Authentication\n\n### OAuth Setup (Interactive)\n\n```bash\n# Step 1: Create Google Cloud project and OAuth credentials\npython3 scripts\u002Fauth_setup_guide.py --guide oauth\n\n# Step 2: Run interactive auth setup (uses gcloud if available)\ngws auth setup\n\n# Step 3: Log in, requesting only the scopes you need\ngws auth login -s drive,gmail,sheets\n```\n\n### Headless\u002FCI\n\n```bash\n# Generate setup instructions\npython3 scripts\u002Fauth_setup_guide.py --guide service-account\n\n# Export credentials from an interactive machine, then point the CLI at them\ngws auth export --unmasked > credentials.json\nexport GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE=\u002Fpath\u002Fto\u002Fcredentials.json\n```\n\n### Environment Variables\n\n```bash\n# Generate .env template\npython3 scripts\u002Fauth_setup_guide.py --generate-env\n```\n\n| Variable | Purpose |\n|----------|---------|\n| `GOOGLE_WORKSPACE_CLI_CLIENT_ID` | OAuth client ID |\n| `GOOGLE_WORKSPACE_CLI_CLIENT_SECRET` | OAuth client secret |\n| `GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE` | Path to exported credentials JSON |\n| `GOOGLE_WORKSPACE_CLI_TOKEN` | Pre-obtained OAuth token |\n| `GOOGLE_WORKSPACE_CLI_CONFIG_DIR` | Override default config location |\n| `GOOGLE_WORKSPACE_CLI_LOG` | Enable debug logging |\n\n### Validate Authentication\n\n```bash\npython3 scripts\u002Fauth_setup_guide.py --validate --json\n# Tests each service endpoint\n```\n\n---\n\n## Workflow 1: Gmail Automation\n\n**Goal:** Automate email operations — send, search, label, and filter management.\n\n### Send, Reply, Forward (helper commands)\n\n```bash\n# Send a new email\ngws gmail +send --to \"client@example.com\" \\\n  --subject \"Proposal\" --body \"Please find attached...\"\n\n# Reply to a message (auto-threading); check exact flags with: gws gmail +reply --help\ngws gmail +reply ...\n\n# Forward a message; check exact flags with: gws gmail +forward --help\ngws gmail +forward ...\n\n# Unread inbox summary\ngws gmail +triage\n```\n\n### Search and Inspect (discovery commands)\n\nDiscovery commands follow `gws \u003Cservice> \u003Cresource> \u003Cmethod>` and take request\nparameters as JSON via `--params` (query\u002Fpath params) and `--json` (request body).\nInspect any method's exact schema first:\n\n```bash\n# What does messages.list accept? (verify)\ngws schema gmail.users.messages.list\n\n# Search emails (verify against the schema above)\ngws gmail users messages list --params '{\"userId\": \"me\", \"q\": \"from:client@example.com after:2025\u002F01\u002F01\"}' \\\n  | python3 scripts\u002Foutput_analyzer.py --count\n\n# List labels (verify)\ngws gmail users labels list --params '{\"userId\": \"me\"}'\n```\n\n### Bulk Operations\n\nUse `--dry-run` first, and `--page-all` to paginate (one JSON line per page):\n\n```bash\n# Preview, then archive read emails older than 30 days (verify method schema first)\ngws gmail users messages list --params '{\"userId\": \"me\", \"q\": \"is:read older_than:30d\"}' --page-all \\\n  | python3 scripts\u002Foutput_analyzer.py --select \"id\" --format json\n# Then feed ids to gmail users messages modify (see: gws schema gmail.users.messages.modify)\n```\n\n---\n\n## Workflow 2: Drive & Sheets\n\n**Goal:** Manage files, create spreadsheets, configure sharing, and export data.\n\n### File Operations\n\n```bash\n# List files\ngws drive files list --params '{\"pageSize\": 50}' \\\n  | python3 scripts\u002Foutput_analyzer.py --select \"name,mimeType,size\" --format table\n\n# Upload a file (helper)\ngws drive +upload .\u002Freport.pdf --name \"Q1 Report\"\n\n# Create a Google Sheet\ngws sheets spreadsheets create --json '{\"properties\": {\"title\": \"Budget 2026\"}}'\n\n# Download\u002Fexport — inspect the method first (verify)\ngws schema drive.files.export\n```\n\n### Sharing (verify schemas first)\n\n```bash\n# Inspect the permissions API surface\ngws schema drive.permissions.create\n\n# Share with user (verify against schema)\ngws drive permissions create --params '{\"fileId\": \"\u003CFILE_ID>\"}' \\\n  --json '{\"type\": \"user\", \"role\": \"writer\", \"emailAddress\": \"colleague@company.com\"}'\n\n# List who has access (verify)\ngws drive permissions list --params '{\"fileId\": \"\u003CFILE_ID>\"}'\n```\n\n### Sheets Data\n\n```bash\n# Read values (helper); check exact flags with: gws sheets +read --help\ngws sheets +read ...\n\n# Append a row (helper); check exact flags with: gws sheets +append --help\ngws sheets +append ...\n\n# Or use discovery methods (verify):\ngws schema sheets.spreadsheets.values.update\ngws sheets spreadsheets values get --params '{\"spreadsheetId\": \"\u003CSHEET_ID>\", \"range\": \"Sheet1!A1:D10\"}'\n```\n\n---\n\n## Workflow 3: Calendar & Meetings\n\n**Goal:** Schedule events, find available times, and generate standup reports.\n\n### Event Management\n\n```bash\n# Create an event (helper); check exact flags with: gws calendar +insert --help\ngws calendar +insert ...\n\n# Upcoming events (helper, timezone-aware)\ngws calendar +agenda\n\n# Or via discovery (verify):\ngws schema calendar.events.insert\ngws calendar events list --params '{\"calendarId\": \"primary\", \"maxResults\": 10}'\n```\n\n### Find Available Time\n\n```bash\n# Free\u002Fbusy via the Calendar API (verify schema first)\ngws schema calendar.freebusy.query\ngws calendar freebusy query --json '{\"timeMin\": \"...\", \"timeMax\": \"...\", \"items\": [{\"id\": \"alice@co.com\"}]}'\n```\n\n### Standup Report (workflow helpers)\n\n```bash\n# Today's meetings + tasks\ngws workflow +standup-report \\\n  | python3 scripts\u002Foutput_analyzer.py --format table\n\n# Next meeting prep; check exact flags with: gws workflow +meeting-prep --help\ngws workflow +meeting-prep\n```\n\n---\n\n## Workflow 4: Security Audit\n\n**Goal:** Audit Google Workspace security configuration and generate remediation commands.\n\n### Run Full Audit\n\n```bash\n# Full audit across all services\npython3 scripts\u002Fworkspace_audit.py --json\n\n# Audit specific services\npython3 scripts\u002Fworkspace_audit.py --services gmail,drive,calendar\n\n# Demo mode (no gws required)\npython3 scripts\u002Fworkspace_audit.py --demo\n```\n\n### Audit Checks\n\n| Area | Check | Risk |\n|------|-------|------|\n| Drive | External sharing enabled | Data exfiltration |\n| Gmail | Auto-forwarding rules | Data exfiltration |\n| Gmail | DMARC\u002FSPF\u002FDKIM records | Email spoofing |\n| Calendar | Default sharing visibility | Information leak |\n| OAuth | Third-party app grants | Unauthorized access |\n| Admin | Super admin count | Privilege escalation |\n| Admin | 2-Step verification enforcement | Account takeover |\n\n### Review and Remediate\n\n```bash\n# Review findings\npython3 scripts\u002Fworkspace_audit.py --json | python3 scripts\u002Foutput_analyzer.py \\\n  --filter \"status=FAIL\" --select \"area,check,remediation\"\n\n# Execute remediation (example: check current Drive settings first; verify)\ngws drive about get --params '{\"fields\": \"*\"}'\n# Follow remediation commands from audit output (verify each against gws --help)\n```\n\n---\n\n## Python Tools\n\n| Script | Purpose | Usage |\n|--------|---------|-------|\n| `gws_doctor.py` | Pre-flight diagnostics | `python3 scripts\u002Fgws_doctor.py [--json] [--services gmail,drive]` |\n| `auth_setup_guide.py` | Guided auth setup | `python3 scripts\u002Fauth_setup_guide.py --guide oauth` |\n| `gws_recipe_runner.py` | Recipe catalog & runner | `python3 scripts\u002Fgws_recipe_runner.py --list [--persona pm]` |\n| `workspace_audit.py` | Security\u002Fconfig audit | `python3 scripts\u002Fworkspace_audit.py [--json] [--demo]` |\n| `output_analyzer.py` | JSON\u002FNDJSON analysis | `gws ... --json \\| python3 scripts\u002Foutput_analyzer.py --count` |\n\nAll scripts are stdlib-only, support `--json` output, and include demo mode with embedded sample data.\n\n---\n\n## Best Practices\n\n### Security\n\n1. Use OAuth with minimal scopes — request only what each workflow needs\n2. Store tokens in the system keyring, never in plain text files\n3. Rotate service account keys every 90 days\n4. Audit third-party OAuth app grants quarterly\n5. Use `--dry-run` before bulk destructive operations\n\n### Automation\n\n1. All `gws` output is structured JSON — pipe it through `output_analyzer.py` for filtering and aggregation\n2. Use `gws workflow +*` helpers for multi-step operations instead of chaining raw commands\n3. Use the local recipe catalog (`gws_recipe_runner.py`) as command templates, then verify each against `gws --help`\n4. `--page-all` emits one JSON line per page (NDJSON) for streaming large result sets\n5. Use `--dry-run` to preview any request before executing it\n\n### Performance\n\n1. Request only needed fields via the API's `fields` parameter in `--params` (reduces payload size)\n2. Use `pageSize` in `--params` to cap results when browsing\n3. Use `--page-all` only when you need complete datasets; tune with `--page-limit` \u002F `--page-delay`\n4. Prefer `+` helpers (single optimized calls) over hand-chained API calls\n5. Cache frequently accessed data (e.g., label IDs, folder IDs) in variables\n\n---\n\n## Limitations\n\n| Constraint | Impact |\n|------------|--------|\n| OAuth tokens expire after 1 hour | Re-auth needed for long-running scripts |\n| API rate limits (per-user, per-service) | Bulk operations may hit 429 errors |\n| Scope requirements vary by service | Must request correct scopes during auth |\n| Pre-v1.0 CLI status | Breaking changes possible between releases |\n| Google Cloud project required | Free, but requires setup in Cloud Console |\n| Admin API needs admin privileges | Some audit checks require Workspace Admin role |\n\n### Required Scopes by Service\n\n```bash\n# List scopes for specific services\npython3 scripts\u002Fauth_setup_guide.py --scopes gmail,drive,calendar,sheets\n```\n\n| Service | Key Scopes |\n|---------|-----------|\n| Gmail | `gmail.modify`, `gmail.send`, `gmail.labels` |\n| Drive | `drive.file`, `drive.metadata.readonly` |\n| Sheets | `spreadsheets` |\n| Calendar | `calendar`, `calendar.events` |\n| Admin | `admin.directory.user.readonly`, `admin.directory.group` |\n| Tasks | `tasks` |\n",{"name":5,"description":7},"main","57e7aa6b6e03bce1a7d7862ba9c2ec312f7f19b5","src\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli",0,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee","https:\u002F\u002Fwithcyril.me\u002F","Hi, I’m Julian Cyril D, a Computer Science and Business Systems student at PSNACET.\r\nI’m passionate about full-stack development, UI\u002FUX design, and building sma","2026-11-04 23:28:50",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Cyrilthetecchieee\u002Fcyril-code- --skill google-workspace-cli",{"tool":39,"command":40},"bunx","bunx skills add Cyrilthetecchieee\u002Fcyril-code- --skill google-workspace-cli",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Cyrilthetecchieee\u002Fcyril-code- --skill google-workspace-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002FSKILL.md",true,[47,53,57,63,67,71,77,81,85,89],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"assets\u002Fpersona-profiles.md","ASSET","资产文件",8960,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002Fassets\u002Fpersona-profiles.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"assets\u002Fworkspace-config.json",1762,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002Fassets\u002Fworkspace-config.json",{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fgws-command-reference.md","REFERENCE","参考文档",11083,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002Freferences\u002Fgws-command-reference.md",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Frecipes-cookbook.md",9333,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002Freferences\u002Frecipes-cookbook.md",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Ftroubleshooting.md",7530,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002Freferences\u002Ftroubleshooting.md",{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fauth_setup_guide.py.txt","SCRIPT","脚本",13999,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002Fscripts\u002Fauth_setup_guide.py.txt",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fgws_doctor.py.txt",9219,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002Fscripts\u002Fgws_doctor.py.txt",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fgws_recipe_runner.py.txt",20923,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002Fscripts\u002Fgws_recipe_runner.py.txt",{"path":86,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Foutput_analyzer.py.txt",11580,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002Fscripts\u002Foutput_analyzer.py.txt",{"path":90,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fworkspace_audit.py.txt",11356,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fgoogle-workspace-cli\u002Fskills\u002Fgoogle-workspace-cli\u002Fscripts\u002Fworkspace_audit.py.txt",[94,103,110,118,125,132],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":98,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7AQV6CYX8RMC78420V9WZ62","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7AQV2895N3S1MEX6K76G6G2","youtube-downloader","Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fvideo-downloader\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":98,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7AQTRNX62DNKVZ5GXEHRBKB","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7AQTNNVHAAN9H6DA8T6ZVE0","template-skill","Replace with description of the skill and when Claude should use it.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftemplate-skill\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":19},"01M7AQTJ3MQ6AKX152MEX2MYCC","tailored-resume-generator","Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftailored-resume-generator\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":98,"licenseFileUrl":136,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":19},"01M7AQTD7D5MYET2YWG7HG9WM3","slack-gif-creator","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FSKILL.md",[],[]]