claude/skills/gws-shared/SKILL.md
gws CLI: Shared patterns for authentication, global flags, and output formatting.
npx skillsauth add tbroadley/dotfiles gws-sharedInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
npm install -g @googleworkspace/cli
gws auth setup cannot automatically create OAuth clients. Instead, create one manually in the
Google Cloud Console
(Desktop app type), then set the env vars and login:
# In ~/.zshrc.local
export GOOGLE_WORKSPACE_CLI_CLIENT_ID="your-client-id"
export GOOGLE_WORKSPACE_CLI_CLIENT_SECRET="your-client-secret"
# Login (opens browser for OAuth consent)
gws auth login
# Or select specific services to stay under scope limits (unverified apps cap at ~25 scopes)
gws auth login -s drive,gmail,calendar,sheets,docs
Re-login if you see invalid_grant errors (tokens expired):
gws auth login
| Flag | Description |
|------|-------------|
| --format <FORMAT> | Output format: json (default), table, yaml, csv |
| --dry-run | Validate locally without calling the API |
gws <service> <resource> [sub-resource] <method> [flags]
| Flag | Description |
|------|-------------|
| --params '{"key": "val"}' | URL/query parameters |
| --json '{"key": "val"}' | Request body |
| -o, --output <PATH> | Save binary responses to file |
| --upload <PATH> | Upload file content (multipart) |
| --page-all | Auto-paginate (NDJSON output) |
| --page-limit <N> | Max pages when using --page-all (default: 10) |
| --page-delay <MS> | Delay between pages in ms (default: 100) |
# Browse resources and methods
gws <service> --help
# Inspect a method's required params, types, and defaults
gws schema <service>.<resource>.<method>
Use gws schema output to build your --params and --json flags.
tools
Add words to the Wispr Flow dictionary. Use when the user wants to add a word, phrase, or snippet to Wispr Flow for voice dictation.
documentation
Upload images to a GitHub PR description or comment using a shared gist as image hosting. Use when the user wants to add plots, screenshots, or other images to a PR.
testing
Manage tasks, projects, and productivity in Todoist. View tasks, add new items, check completed work, and organize projects.
data-ai
Use when working with stacked diffs (branch B based on branch A, which is based on main).