소스 정보
- 저장소
- ma08/botfiles
- 최근 소스 활동
- 2026년 8월 24일 20:58
- 감지된 SKILL.md 언어
- 영어
- 스타
- 28
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ma08/botfiles --skill gws-shared명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | gws-shared |
| description | gws CLI: Shared patterns for authentication, global flags, and output formatting. |
| metadata | {"openclaw":{"category":"productivity","requires":{"bins":"[Truncated]"}}} |
The gws binary must be on $PATH. On this machine, ~/pro/botfiles/bin/gws is the preferred wrapper because it can locate the installed CLI even when the NVM bin path is missing.
# Browser-based OAuth (interactive) for the current session
gws auth login --readonly --services drive,gmail
# Exact scopes for Gmail/Drive read access plus Gmail draft creation.
# gmail.compose also technically permits sending.
gws auth login --scopes https://www.googleapis.com/auth/drive.readonly,https://www.googleapis.com/auth/gmail.readonly,https://www.googleapis.com/auth/gmail.compose
# Save the refreshed login into a named account alias
gws-save-account work
For Calendar access or any Calendar write, use gws-calendar-safe. Before a
human reauthorization, run gws-calendar-safe auth-plan --account <alias> so
the exact existing non-Calendar scopes are preserved and the Calendar portion
is replaced with only calendar.events plus calendar.calendarlist.readonly.
Prefer named aliases over bare gws whenever mailbox or Drive ownership matters:
gws-account work gmail +triage --max 5 --format json
gws-account personal drive files list --params '{"pageSize": 5, "q": "trashed=false"}' --format json
Saved aliases live under ~/.config/gws/accounts/ and currently map to:
work -> sourya4@trymyzone.compersonal -> sourya4@gmail.comcolumbia -> sk5057@columbia.edu| 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) |
gmail.compose also grants send capability.gws-calendar-safe; do not use raw Calendar mutation commands.auth-plan output first.--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}'
q expressions often need single quotes inside the query itself. In that case, wrap the whole JSON blob in double quotes and escape the inner JSON quotes:
gws-account personal drive files list --params "{\"pageSize\": 5, \"q\": \"name contains 'tax' and trashed=false\"}"
https://github.com/googleworkspace/clihttps://github.com/googleworkspace/cli/issues