본문으로 건너뛰기
Skillpedia
PDF, Word, 슬라이드32k · #9173

gws-gmail-watch

하는 일

이 명령은 Gmail 받은편지함에 새 이메일이 오는지 지켜봅니다. 새 이메일이 도착하면 서식이 있는 텍스트(NDJSON)로 보내 줍니다.

사용하는 경우

  • ✓중요한 이메일이 도착하는 즉시 알림을 받고 싶을 때.
  • ✓새 이메일에 의존하는 작업(예: 주문 처리)을 자동화할 때.
  • ✓라벨에 따라 특정 이메일을 모니터링하고 싶을 때.

스킬 링크

https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail-watch/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

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

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

AI에게 요청하는 예시

“받은편지함의 새 이메일을 지켜보다가 도착하면 알려 주세요.”

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

작동 방식

이 명령은 Google Cloud 서비스를 사용해 새 Gmail 메시지에 대한 알림을 받습니다. 그 알림은 다른 프로그램이 쉽게 읽을 수 있는 텍스트 형식으로 여러분에게 전달됩니다.

기술 내용 (원본 SKILL.md)

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

gmail +watch

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Watch for new emails and stream them as NDJSON

Usage

gws gmail +watch

Flags

Flag Required Default Description
--project — — GCP project ID for Pub/Sub resources
--subscription — — Existing Pub/Sub subscription name (skip setup)
--topic — — Existing Pub/Sub topic with Gmail push permission already granted
--label-ids — — Comma-separated Gmail label IDs to filter (e.g., INBOX,UNREAD)
--max-messages — 10 Max messages per pull batch
--poll-interval — 5 Seconds between pulls
--msg-format — full Gmail message format: full, metadata, minimal, raw
--once — — Pull once and exit
--cleanup — — Delete created Pub/Sub resources on exit
--output-dir — — Write each message to a separate JSON file in this directory

Examples

gws gmail +watch --project my-gcp-project
gws gmail +watch --project my-project --label-ids INBOX --once
gws gmail +watch --subscription projects/p/subscriptions/my-sub
gws gmail +watch --project my-project --cleanup --output-dir ./emails

Tips

  • Gmail watch expires after 7 days — re-run to renew.
  • Without --cleanup, Pub/Sub resources persist for reconnection.
  • Press Ctrl-C to stop gracefully.

See Also

자주 묻는 질문

이메일 감시를 어떻게 중지하나요?

키보드에서 Ctrl+C를 누르면 명령이 중지됩니다.

도착한 이메일은 어떻게 되나요?

서식이 있는 텍스트(NDJSON)로 전달됩니다. 원하면 파일로 저장하도록 설정할 수 있습니다.

Google Cloud에서 따로 설정해야 하나요?

네, 서비스가 작동하려면 Google Cloud 프로젝트를 설정해야 할 수 있습니다. 이 명령이 설정을 도와주려고 하지만, 추가 정보를 요청할 수도 있습니다.

상세 정보

작성자의 원본 설명

Gmail: Watch for new emails and stream them as NDJSON.

repo: googleworkspace/cli

인기도

GitHub 스타
32k
순위
#9173
라이선스
Apache-2.0
업데이트
2026. 10. 6.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬