gws-events-subscribe
하는 일
이 도구는 Google Chat의 새 메시지처럼 Google Workspace 서비스에서 일어나는 일에 대한 실시간 알림을 받도록 합니다. 알림은 다른 프로그램이 쉽게 이해하는 형식으로 보내집니다.
사용하는 경우
- ✓특정 Google Chat 채널에 누군가 메시지를 올리면 알림을 받을 때.
- ✓공유 문서의 새 활동에 대한 경고를 받을 때.
- ✓캘린더 일정의 변경을 모니터링할 때.
스킬 링크
https://github.com/googleworkspace/cli/blob/main/skills/gws-events-subscribe/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“‘Project X’ Google Chat 채널에 새 메시지가 올라오면 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
알림을 받고 싶은 Google Workspace 서비스와 관심 있는 이벤트 유형을 지정합니다. 그러면 도구가 통신 채널을 설정해 이 정보를 일이 일어나는 대로 보내 줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
events +subscribe
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Subscribe to Workspace events and stream them as NDJSON
Usage
gws events +subscribe
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
--target |
— | — | Workspace resource URI (e.g., //chat.googleapis.com/spaces/SPACE_ID) |
--event-types |
— | — | Comma-separated CloudEvents types to subscribe to |
--project |
— | — | GCP project ID for Pub/Sub resources |
--subscription |
— | — | Existing Pub/Sub subscription name (skip setup) |
--max-messages |
— | 10 | Max messages per pull batch (default: 10) |
--poll-interval |
— | 5 | Seconds between pulls (default: 5) |
--once |
— | — | Pull once and exit |
--cleanup |
— | — | Delete created Pub/Sub resources on exit |
--no-ack |
— | — | Don't auto-acknowledge messages |
--output-dir |
— | — | Write each event to a separate JSON file in this directory |
Examples
gws events +subscribe --target '//chat.googleapis.com/spaces/SPACE' --event-types 'google.workspace.chat.message.v1.created' --project my-project
gws events +subscribe --subscription projects/p/subscriptions/my-sub --once
gws events +subscribe ... --cleanup --output-dir ./events
Tips
- Without --cleanup, Pub/Sub resources persist for reconnection.
- Press Ctrl-C to stop gracefully.
[!CAUTION] This is a write command — confirm with the user before executing.
See Also
- gws-shared — Global flags and auth
- gws-events — All subscribe to google workspace events commands
자주 묻는 질문
알림 받기를 어떻게 중지하나요?
Ctrl+C를 누르면 중지됩니다. 도구가 임시 리소스를 만들도록 설정했다면 자동으로 삭제됩니다.
‘NDJSON’이란 무엇인가요?
각 줄이 완전하고 독립적인 JSON 객체인 텍스트 형식입니다. 컴퓨터가 한 줄씩 쉽게 읽고 처리할 수 있습니다.
미리 설정해야 할 것이 있나요?
네, Google Workspace 서비스를 쓰기 위한 인증과 보안 규칙을 설정해야 합니다. 자세한 내용은 `gws-shared/SKILL.md` 문서를 참고하세요.
상세 정보
작성자의 원본 설명
Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.
repo: googleworkspace/cli
인기도
- GitHub 스타
- 32k
- 순위
- #9164
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 6.
댓글
- …
이 저장소의 다른 스킬
gws-admin-reports
32k에이전트가 Google Workspace의 활동 보고서를 가져오도록 돕습니다. 감사 및 사용 데이터를 수집합니다.
gws-calendar-agenda
32k에이전트가 모든 캘린더의 다가오는 일정을 보도록 돕습니다. 일정을 관리하고 앞으로의 계획을 파악하는 데 유용합니다.
gws-calendar-insert
32k에이전트가 Google 캘린더에 새 일정을 만들도록 돕습니다. 약속과 회의를 잡는 데 유용합니다.
gws-calendar
32k에이전트가 캘린더와 일정을 관리하도록 돕습니다. 개인과 업무 일정을 정리하는 데 유용합니다.