gws CLI: Shared patterns for authentication, global flags, and output formatting.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install gws-shared或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install gws-shared⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/gws-shared/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: gws-shared description: "gws CLI: Shared patterns for authentication, global flags, and output formatting." metadata: version: 0.22.5 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
| Flag | Description | |------|-------------| | --format | Output format: json (default), table, yaml, csv | | --dry-run | Validate locally without calling the API | | --sanitize | 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 | Save binary responses to file | | --upload | Upload file content (multipart) | | --page-all | Auto-paginate (NDJSON output) | | --page-limit | Max pages when using --page-all (default: 10) | | --page-delay | 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:```bash # 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:```bash gws drive files list --params '{"pageSize": 5}' ```
https://github.com/googleworkspace/clihttps://github.com/googleworkspace/cli/issues安装 Gws Shared 后,可以对 AI 说这些话来触发它
Help me get started with Gws Shared
Explains what Gws Shared does, walks through the setup, and runs a quick demo based on your current project
Use Gws Shared to gws CLI: Shared patterns for authentication, global flags, and outp...
Invokes Gws Shared with the right parameters and returns the result directly in the conversation
What can I do with Gws Shared in my developer & devops workflow?
Lists the top use cases for Gws Shared, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/gws-shared/ 目录(个人级,所有项目可用),或 .claude/skills/gws-shared/(项目级)。重启 AI 客户端后,用 /gws-shared 主动调用,或让 AI 根据上下文自动发现并使用。
Gws Shared 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Gws Shared 可免费安装使用。请查阅仓库了解许可证信息。
gws CLI: Shared patterns for authentication, global flags, and output formatting.
Gws Shared 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Gws Shared
Identifies repetitive steps in your workflow and sets up Gws Shared to handle them automatically