跳到正文
cccskills
免费在 GitHub 公开

gws-shared

gws CLI shared patterns for authentication, global flags, and output formatting. Read this before using any other gws-* skill.

中文简介正在准备中。当前显示原文说明。

集成工具Gmail
查看安装方法

包含的文件(1)

  • SKILL.md3.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

gws — Shared Reference

gws is a unified CLI for all Google Workspace APIs. It reads Google's Discovery Service at runtime, so every Workspace API endpoint is available without custom integration code.

Installation

npm install -g @googleworkspace/cli
gws --version

Authentication

Interactive (desktop / laptop)

gws auth setup    # One-time: creates Cloud project, enables APIs, logs you in (requires gcloud)
gws auth login    # Subsequent scope selection and login

Log in with specific services to stay within testing-mode scope limits:

gws auth login -s drive,gmail,calendar,sheets

Service Account (server / CI)

export GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE=/path/to/service-account.json
gws drive files list   # Works without interactive login

Pre-obtained access token

export GOOGLE_WORKSPACE_CLI_TOKEN=$(gcloud auth print-access-token)

Headless / CI export flow

# On machine with browser
gws auth export --unmasked > credentials.json

# On headless machine
export GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE=/path/to/credentials.json

CLI Syntax

gws <service> <resource> [sub-resource] <method> [flags]

Global Flags

FlagDescription
--format <FORMAT>Output format: json (default), table, yaml, csv
--dry-runValidate request locally without calling the API
--sanitize <TEMPLATE>Screen responses through Model Armor

Method Flags

FlagDescription
--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-allAuto-paginate (NDJSON output)
--page-limit <N>Max pages when using --page-all (default: 10)
--page-delay <MS>Delay between pages in ms (default: 100)

Discovering Commands

# Browse all services
gws --help

# Browse a service's resources
gws drive --help

# Inspect a specific method's schema
gws schema drive.files.list
gws schema gmail.users.messages.send

Shell Tips

zsh ! expansion in ranges

Sheet ranges like Sheet1!A1 contain ! which zsh interprets as history expansion. Use double quotes:

# WRONG (zsh mangles the !)
gws sheets +read --spreadsheet ID --range 'Sheet1!A1:D10'

# CORRECT
gws sheets +read --spreadsheet ID --range "Sheet1!A1:D10"

JSON with inner double quotes

gws drive files list --params '{"pageSize": 5}'

Security Rules

  • Never output secrets, tokens, or API keys in responses
  • Always confirm with the user before executing write or delete commands
  • Prefer --dry-run for any destructive or sending operation
  • Use --sanitize for PII screening when processing user-generated content

MCP Server (for AI agents)

# Start a built-in MCP server exposing selected APIs
gws mcp -s drive,gmail,calendar,sheets

This exposes all methods of the selected services as MCP tools, giving any MCP-compatible AI agent direct Workspace access without additional integration code.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月22日 更新

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月22日 更新

Control a headless browser to navigate URLs, click elements, fill forms, extract content from JavaScript-rendered pages, take screenshots, and automate end-to-end web workflows.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月22日 更新

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月22日 更新

Review code for quality, simplicity, and maintainability. Identifies unnecessary abstractions, duplicated logic, oversized functions, missing error handling, and naming issues — then fixes them automatically before presenting the result.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月22日 更新

WooCommerce store operations through NV oOS Pro — product research, catalog cross-referencing, inventory lookups, and Shopify or Flowhub comparisons where integrations are configured.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月22日 更新

查看 nvdigitalsolutions 的全部技能

报告此技能的问题