跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

recipe-block-focus-time · Google日历创建重复专注时间块

在 Google Calendar 主日历上创建每周重复的专注时间块,将时段标记为忙碌,用于保护深度工作时段。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

为 2025-01-20 起每周一至周五 9:00-11:00(America/New_York)创建名为 Focus Time 的重复事件,并标记为忙碌。

输出

预期交付:Google Calendar 中的重复事件,以及通过议程命令查看的忙碌状态确认。(编辑说明,非实际运行结果)

方法说明

---
name: recipe-block-focus-time
description: "Create recurring focus time blocks on Google Calendar to protect deep work hours."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "scheduling"
    requires:
      bins:
        - gws
      skills:
        - gws-calendar
---

# Block Focus Time on Google Calendar

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-calendar`

Create recurring focus time blocks on Google Calendar to protect deep work hours.

## Steps

1. Create recurring focus block: `gws calendar events insert --params '{"calendarId": "primary"}' --json '{"summary": "Focus Time", "description": "Protected deep work block", "start": {"dateTime": "2025-01-20T09:00:00", "timeZone": "America/New_York"}, "end": {"dateTime": "2025-01-20T11:00:00", "timeZone": "America/New_York"}, "recurrence": ["RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR"], "transparency": "opaque"}'`
2. Verify it shows as busy: `gws calendar +agenda`