Communityコーディング&開発github.com

googleworkspace/recipe-plan-weekly-schedule

Googleカレンダーの週間スケジュールを確認し、空き時間を特定してイベントを追加します。

recipe-plan-weekly-schedule とは?

このスキルは、Googleカレンダー上の週間スケジュールを分析し、空き時間(ギャップ)を自動的に特定します。ユーザーは、その空き時間に新しいイベント(例:タスク、会議、予定)を追加することができ、時間管理や生産性向上に役立ちます。主にGoogle Workspace環境で動作し、AIエージェント(Claude CodeやCortexなど)と連携してカレンダー操作を自動化します。SKILL.mdには、カレンダーの取得方法、空き時間の判定ロジック、イベント追加のAPI呼び出し手順が詳細に記載されており、開発者はこのスキルをカスタマイズして独自のワークフローに組み込むことが可能です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/googleworkspace/cli/tree/main/skills/recipe-plan-weekly-schedule

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

recipe-plan-weekly-schedule は何をしますか?

Googleカレンダーの週間スケジュールを確認し、空き時間を特定してイベントを追加します。

概要

このスキルは、現在の週(月曜日から日曜日)のGoogleカレンダーイベントを取得し、既存の予定の間にある空き時間を分析します。その後、ユーザーの指示に基づいて、特定された空き時間に新しいイベント(例:集中作業時間、ミーティング、タスクのブロック)を追加します。

前提条件

  • Google Workspaceアカウント
  • 以下のスコープを持つGoogle Calendar APIの認証情報:
    • https://www.googleapis.com/auth/calendar.readonly
    • https://www.googleapis.com/auth/calendar.events
  • AIエージェントがカレンダーデータにアクセスできるように適切に設定されていること

使用方法

  1. 現在の週のカレンダーイベントを取得するには、以下のツールを使用します:
calendar.events.list({
  "calendarId": "primary",
  "timeMin": "2024-01-01T00:00:00Z",
  "timeMax": "2024-01-07T23:59:59Z",
  "singleEvents": true,
  "orderBy": "startTime"
})
  1. 空き時間を特定するには、イベントリストを反復処理し、各イベントの終了時刻と次のイベントの開始時刻の間のギャップを計算します。

  2. 新しいイベントを追加するには、以下のツールを使用します:

calendar.events.insert({
  "calendarId": "primary",
  "resource": {
    "summary": "集中作業時間",
    "description": "空き時間に追加されたイベント",
    "start": {
      "dateTime": "2024-01-02T10:00:00",
      "timeZone": "Asia/Tokyo"
    },
    "end": {
      "dateTime": "2024-01-02T11:00:00",
      "timeZone": "Asia/Tokyo"
    }
  }
})

設定

  • デフォルトのカレンダーIDは primary です。必要に応じて変更してください。
  • 時間帯はイベント作成時に指定可能です(デフォルトはAsia/Tokyo)。
  • 空き時間の最小長さ(例:30分未満のギャップは無視)を設定できます。

注意事項

  • このスキルは既存のイベントを変更しません。新しいイベントのみ追加します。
  • 重複を避けるため、追加する前に選択した時間帯にイベントがないことを確認します。
  • エラーが発生した場合は、ログを確認して権限とAPI制限をチェックしてください。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

googleworkspace/gws-admin-reports

Google Workspace Admin SDK: Audit logs and usage reports.

googleworkspace/gws-calendar

Google Calendar: Manage calendars and events.

googleworkspace/gws-calendar-agenda

Google Calendar: Show upcoming events across all calendars.

googleworkspace/gws-calendar-insert

Google Calendar: Create a new event.

googleworkspace/gws-chat

Google Chat: Manage Chat spaces and messages.

googleworkspace/gws-chat-send

Google Chat: Send a message to a space.

googleworkspace/gws-classroom

Google Classroom: Manage classes, rosters, and coursework.

googleworkspace/gws-docs

Read and write Google Docs.

googleworkspace/gws-docs-write

Google Docs: Append text to a document.

googleworkspace/gws-drive

Google Drive: Manage files, folders, and shared drives.

googleworkspace/gws-drive-upload

Google Drive: Upload a file with automatic metadata.

googleworkspace/gws-events

Subscribe to Google Workspace events.

googleworkspace/gws-events-renew

Google Workspace Events: Renew/reactivate Workspace Events subscriptions.

googleworkspace/gws-events-subscribe

Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.

googleworkspace/gws-forms

Read and write Google Forms.

googleworkspace/gws-gmail

Gmail: Send, read, and manage email.

googleworkspace/gws-gmail-forward

Gmail: Forward a message to new recipients.

googleworkspace/gws-gmail-read

Gmail: Read a message and extract its body or headers.

googleworkspace/gws-gmail-reply

Gmail: Reply to a message (handles threading automatically).

googleworkspace/gws-gmail-reply-all

Gmail: Reply-all to a message (handles threading automatically).

関連スキル