googleworkspace avatar

Recipe Block Focus Time

Creates recurring "Focus Time" blocks on your Google Calendar to protect deep work hours from meeting creep. Sets up weekday morning blocks (9-11 AM by default) that show as busy time, so other meetings can't be scheduled over them. Uses the Google Workspace CLI to insert recurring calendar events with proper opacity settings. Simple two-step process: create the recurring block, then verify it appears correctly in your agenda. Particularly helpful if you're constantly getting pulled into ad-hoc meetings and losing chunks of productive coding time. The recurrence rule targets Monday through Friday, but you can adjust the time slots and days to match your actual peak focus periods.

skills.sh installs
31K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill recipe-block-focus-time --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/googleworkspace/cli
Category
CLI & Terminal

More from googleworkspace/cli

All 113
1googleworkspace avatarrecipe-watch-drive-changesgoogleworkspace/cliSubscribe to change notifications on a Google Drive file or folder.31Kskills.sh installs
2googleworkspace avatarrecipe-create-shared-drivegoogleworkspace/cliCreate a Google Shared Drive and add members with appropriate roles.31Kskills.sh installs
3googleworkspace avatarrecipe-share-doc-and-notifygoogleworkspace/cliShare a Google Docs document with edit access and email collaborators the link.30.9Kskills.sh installs
4googleworkspace avatarrecipe-find-large-filesgoogleworkspace/cliIdentify large Google Drive files consuming storage quota.30.9Kskills.sh installs
5googleworkspace avatarrecipe-review-overdue-tasksgoogleworkspace/cliFind Google Tasks that are past due and need attention.30.8Kskills.sh installs
6googleworkspace avatarrecipe-copy-sheet-for-new-monthgoogleworkspace/cliDuplicate a Google Sheets template tab for a new month of tracking.30.8Kskills.sh installs