본문으로 건너뛰기
Skillpedia
자동화32k · #9164

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/gws-events-subscribe/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“‘Project X’ Google Chat 채널에 새 메시지가 올라오면 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

알림을 받고 싶은 Google Workspace 서비스와 관심 있는 이벤트 유형을 지정합니다. 그러면 도구가 통신 채널을 설정해 이 정보를 일이 일어나는 대로 보내 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

events +subscribe

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬