
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-codeInstalls 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
- 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
Sponsors
Details
- Repository
- github.com/googleworkspace/cli
- Category
- CLI & Terminal
More from googleworkspace/cli
All 113- Recipe Watch Drive Changes31K
- Recipe Create Shared Drive31K
- Persona Team Lead31K
- Recipe Share Doc And Notify30.9K
- Recipe Find Large Files30.9K
- Recipe Create Task List30.9K
- Recipe Schedule Recurring Event30.9K
- Recipe Review Overdue Tasks30.8K
- Recipe Copy Sheet For New Month30.8K
- Recipe Review Meet Participants30.8K
- Recipe Batch Invite To Event30.8K
- Recipe Collect Form Responses30.8K
- Recipe Create Events From Sheet30.7K
- Persona It Admin30.7K
- Recipe Create Vacation Responder30.7K
- Recipe Share Folder With Team30.7K
- Persona Customer Support30.7K
- Recipe Forward Labeled Emails30.7K
- Persona Event Coordinator30.6K
- Gws Modelarmor30.6K
- Persona Sales Ops30.6K
- Recipe Create Meet Space30.6K
- Recipe Create Expense Tracker30.6K
- Recipe Create Feedback Form30.5K