본문으로 건너뛰기
cccskills
무료GitHub에 공개

calendar-setup

Step-by-step setup and troubleshooting for connecting an owner's Google Calendar to an OpenClaw agent with read and write access. Use when: setting up calendar access for the first time, fixing read-only access, re-authenticating a broken Google connection, explaining the difference between the owner's Google account and the agent's Google account, how an OpenClaw agent accesses Gmail or Google Workspace, where credentials are stored, how to use the agent inbox, how to give the agent write access to the owner's calendar, or guiding another agent or user through the email or calendar setup model.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md7.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Calendar Setup

Use this skill when calendar access needs to be established or repaired.

Core model

Treat these as separate identities:

  • Owner account: the human's Google account and calendar
  • Agent account: the PA's own Google account

The agent does not get calendar access automatically. The owner must share access, and the agent must authenticate the relevant Google account in gog.

Standard setup

1. Owner shares the calendar

The owner should do this in Google Calendar:

  1. Open calendar.google.com
  2. Open the primary calendar's Settings and sharing
  3. Under Share with specific people, add the agent email
  4. Grant Make changes to events

If external sharing is blocked, the owner's Google Workspace admin has to allow it.

2. Authenticate with gog

gog auth add owner@company.com --services gmail,calendar,drive,contacts
gog auth list

Use the actual owner email. If a stale auth entry exists:

gog auth remove owner@company.com
gog auth add owner@company.com --services gmail,calendar,drive,contacts

3. Verify write access

START=$(date -u -d '+1 hour' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v+1H +%Y-%m-%dT%H:%M:%SZ)
END=$(date -u -d '+2 hours' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v+2H +%Y-%m-%dT%H:%M:%SZ)

GOG_ACCOUNT=owner@company.com gog calendar create primary \
  --summary "PA setup test, delete me" \
  --start "$START" \
  --end "$END"

Then confirm the event appears in the owner's calendar and delete it.

Troubleshooting order

Work in this order:

  1. Confirm whether the problem is about the owner account or the agent account.
  2. Run gog auth list and confirm the needed account exists.
  3. Confirm the shared calendar permission is Make changes to events.
  4. Use GOG_ACCOUNT=owner@company.com explicitly in commands.
  5. Retry after gog auth remove + gog auth add if auth is stale.

Common failures

Dashboard says connected, but writes fail

The dashboard may reflect the agent's own Google connection, not the owner's calendar permission. Re-check sharing and GOG_ACCOUNT.

Insufficient permissions

The calendar was shared read-only. Re-share with Make changes to events.

No browser or interactive auth is unavailable

Use an already-provisioned gog account if one exists. If no valid Google auth is available on the host, stop and report that manual re-authentication is required.

Multiple calendars

Authenticate each account separately and use the specific calendar ID from:

GOG_ACCOUNT=owner@company.com gog calendar list

Verification checklist

  • Owner shared the correct calendar with the agent email
  • Permission is Make changes to events
  • gog auth list shows the required account
  • Commands use explicit GOG_ACCOUNT=...
  • A test event can be created and deleted

Notes

  • Do not print OAuth secrets or credential file contents in chat.
  • Prefer the shortest path that restores working read/write calendar access.
  • If the issue is really about Gmail or Drive access, switch to the gog skill after clarifying the exact service.

Email Model Appendix

(Absorbed from openclaw-email-orientation on 2026-05-09.)

Minimum Model

Any model. This appendix is explanation and troubleshooting only — no complex reasoning needed.

The Core Concept

There are two separate accounts:

Account
OwnerThe human's Google account (e.g. owner@company.com)
AgentThe PA's own Google account (e.g. agent@agentdomain.com)

These are separate. Having an agent email does NOT automatically give access to the owner's email or calendar. To access the owner's email/calendar: (1) owner must share access with the agent email, and (2) agent must authenticate using gog.

Key Paths and Files

FilePurpose
~/.openclaw/.gog/credentials.jsongog OAuth client credentials
~/.openclaw/agents/main/agent/auth-profiles.jsonOpenClaw auth profiles
~/.openclaw/workspace/skills/gog/SKILL.mdgog usage reference

Security rule: Never show the contents of these files in chat. Mentioning the path is fine; printing the content is not.

Common gog Commands

# One-time setup: load OAuth credentials
gog auth credentials /path/to/client_secret.json

# Add an account (opens browser for OAuth flow)
gog auth add owner@company.com --services gmail,calendar,drive,contacts,sheets,docs

# Verify the account was added
gog auth list

# Use the account in commands (always include GOG_ACCOUNT=...)
GOG_ACCOUNT=owner@company.com gog gmail search 'is:unread' --max 10

# Search email
GOG_ACCOUNT=owner@company.com gog gmail search 'newer_than:7d' --max 10

# Send email
GOG_ACCOUNT=owner@company.com gog gmail send \
  --to "recipient@example.com" \
  --subject "Hello" \
  --body "Message text"

# List calendar events in a time window
GOG_ACCOUNT=owner@company.com gog calendar events primary \
  --from "2026-04-01T09:00:00Z" \
  --to "2026-04-01T18:00:00Z"

# Create a calendar event
GOG_ACCOUNT=owner@company.com gog calendar create primary \
  --summary "Meeting" \
  --start "2026-04-02T10:00:00+00:00" \
  --end "2026-04-02T11:00:00+00:00"

Additional Troubleshooting

If "Token expired" error:

# Remove the expired account
gog auth remove owner@company.com

# Re-add it (will open browser for re-auth)
gog auth add owner@company.com --services gmail,calendar,drive,contacts

Response Style

  • Lead with the owner vs. agent distinction — this resolves most confusion.
  • Give commands first, explanation second.
  • When asked "where is X stored?" → give the path, do not print the file contents.
  • When asked for step-by-step → follow the Calendar Write Access section above.

Heleni-Specific: Direct API Workaround (when gog CLI auth fails on server)

gog auth login requires a browser — doesn't work on a headless server. Use the pre-existing credentials instead:

  • Credentials file: /path/to/openclaw/.gog/credentials.json
  • Accounts: agent (<agent-email>), owner (<owner-email>)
  • ~/.config/gws/credentials.json (gog default) has a stale/broken token — ignore it
# Step 1: Refresh access token using owner credentials from .gog file
curl -s -X POST https://oauth2.googleapis.com/token \
  -d "client_id=<client_id_from_file>" \
  -d "client_secret=<client_secret_from_file>" \
  -d "refresh_token=<refresh_token_from_file>" \
  -d "grant_type=refresh_token"

# Step 2: Use access_token for direct API calls
# List events:
curl -s "https://www.googleapis.com/calendar/v3/calendars/netanelab%40monday.com/events?timeMin=<ISO>&timeMax=<ISO>&singleEvents=true&orderBy=startTime" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

# List all calendars:
curl -s "https://www.googleapis.com/calendar/v3/users/me/calendarList" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

Cost Tips

  • Very cheap: This appendix is explanation only — minimal LLM tokens needed.
  • Small model OK: Any model can explain these concepts and provide commands.
  • Avoid: Do not re-explain the full orientation every time. Ask what specifically is confusing, then address only that.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

ai-pa

무료

AI Personal Assistant network skill for multi-agent PA coordination. Use when: contacting another PA, coordinating with peer agents, scheduling meetings between owners, broadcasting messages to PA groups, or looking up contacts from the local PA directory. Reads contact data from data/pa-directory.json in the workspace.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

ai-pa

무료

Route and execute inter-PA coordination tasks in the OpenClaw multi-agent PA network. Triggers when: contacting another PA, passing a message between owners, broadcasting to a PA group, handling group lead/silence rules, or adding a new PA to the directory. NOT for: contact lookups (use contact-list skill), calendar invites (use meetings skill), or billing issues (use billing-monitor skill).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

ai-pa

무료

AI Personal Assistant network skill. Use when: contacting another PA, coordinating with peer agents, scheduling meetings between owners, broadcasting messages, looking up contacts from the local PA directory, or performing any cross-PA task. Reads contact data from data/pa-directory.json in the workspace. Does NOT contain hardcoded contact data — each PA maintains their own directory file.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

OpenClaw API gateway proxy for authenticated SaaS calls (100+ services in references/SERVICES.md). Use ONLY when making an HTTP request to a third-party service that requires the gateway's stored credentials. NOT for direct API calls with bearer tokens already in scope, NOT for monday.com (use monday-for-agents), NOT for WhatsApp (use heleni-whatsapp). Triggers: "call the X API", "fetch from <service>", "send to Slack via gateway", "use the gateway for".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

Automatically creates new skills from complex problem-solving sessions. Triggers at the end of multi-step tasks that required novel approaches, debugging sessions, or workflow creation. Use when: a task took 3+ tool calls, involved a non-obvious solution, or established a pattern likely to recur. Also triggers on: "create a skill from this", "save this as a skill", "this should be a skill".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

Monitor for API billing errors and alert the owner and admin immediately. Use when: an API billing error is detected, a peer PA reports a billing error, or during routine health checks. Handles detection, notification, and fallback model switching. Model-agnostic: works with any LLM provider (Anthropic, OpenAI, Google, etc.).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

netanel-abergel/pa-skills62026년 5월 10일 업데이트

netanel-abergel의 스킬 모두 보기

이 스킬의 문제 신고