recipe-block-focus-time
它能做什么
这个工具会在你的 Google Calendar 中创建时间段,帮你专注处理重要工作。它会重复安排这些时间段,确保你的深度工作时间不被占用。
适用场景
- ✓需要不被打扰地推进项目时。
- ✓想为思考和规划留出时间时。
- ✓想防止其他会议被安排在专注工作时间里时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/recipe-block-focus-time/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“每周一到周五,从 9 AM 到 11 AM 安排一个专注时间段。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会使用一条命令,在你的 Google Calendar 中添加重复日程。它会把日程命名为“Focus Time”,并在这段时间内把你标记为忙碌。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
- 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"}' - Verify it shows as busy:
gws calendar +agenda
常见问题
需要安装 Google Calendar 吗?
需要。这个工具要和 Google Calendar 配合使用。
可以自己选择日期和时间吗?
可以。你可以指定每周的哪几天、哪些时间段作为专注时间。
如果这段时间已经有安排了怎么办?
工具只会把你标记为忙碌,不会取消其他安排。所以你需要检查日历,避免时间冲突。
详情
作者的原始描述
Create recurring focus time blocks on Google Calendar to protect deep work hours.
repo: googleworkspace/cli
热度
- GitHub 星标
- 32k
- 排名
- #9208
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …