Manusで任意のスキルを実行
ワンクリックで
ワンクリックで
ワンクリックでManusで任意のスキルを実行
始める$pwd:
gws-shared
// gws CLI: Shared patterns for authentication, global flags, and output formatting.
$ git log --oneline --stat
stars:11
forks:2
updated:2026年4月5日 04:12
SKILL.md
// gws CLI: Shared patterns for authentication, global flags, and output formatting.
[HINT] SKILL.mdと関連ファイルを含む完全なスキルディレクトリをダウンロード
| name | gws-shared |
| description | gws CLI: Shared patterns for authentication, global flags, and output formatting. |
| metadata | {"version":"0.22.1","openclaw":{"category":"productivity","requires":{"bins":["gws"]}}} |
The gws binary must be on $PATH. See the project README for install options.
# Browser-based OAuth (interactive)
gws auth login
# Service Account
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
Authentication is pre-configured. Credentials are stored encrypted at ~/.config/gws/credentials.enc.
| Account | Config Dir | Use For |
|---|---|---|
braydon@lightforgeworks.com | ~/.config/gws (default) | LFW client work, Drive, Gmail, Calendar |
Multi-account: Set GOOGLE_WORKSPACE_CLI_CONFIG_DIR to switch accounts:
GOOGLE_WORKSPACE_CLI_CONFIG_DIR=~/.config/gws-mcco gws calendar events list ...
Other accounts (b@mcco.us, b@aclara.us, braydon@synthyra.com) require separate auth setup if needed.
LFW files live in shared drives, not personal Drive. Always include these flags for Drive operations:
--params '{"includeItemsFromAllDrives": true, "supportsAllDrives": true, ...}'
Omitting these returns an empty file list.
| Flag | Description |
|---|---|
--format <FORMAT> | Output format: json (default), table, yaml, csv |
--dry-run | Validate locally without calling the API |
--sanitize <TEMPLATE> | Screen responses through Model Armor |
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) |
--dry-run for destructive operations--sanitize for PII/content safety screening! expansion: Sheet ranges like Sheet1!A1 contain ! which zsh interprets as history expansion. Use double quotes with escaped inner quotes instead of single quotes:
# WRONG (zsh will mangle the !)
gws sheets +read --spreadsheet ID --range 'Sheet1!A1:D10'
# CORRECT
gws sheets +read --spreadsheet ID --range "Sheet1!A1:D10"
--params and --json values in single quotes so the shell does not interpret the inner double quotes:
gws drive files list --params '{"pageSize": 5}'
https://github.com/googleworkspace/clihttps://github.com/googleworkspace/cli/issues