bygoogleworkspace· 58 skills
Create recurring focus time blocks on Google Calendar to protect deep work hours.
$npx -y skills add googleworkspace/cli --skill recipe-block-focus-timeInstalls into the current project.
Run `npx skills use "https://github.com/googleworkspace/cli" --skill "googleworkspace/cli/recipe-block-focus-time"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/googleworkspace/cli" that are relevant to the current task. Run `npx skills add "https://github.com/googleworkspace/cli"` and select the relevant skills, then follow their instructions.
| 1 | # Block Focus Time on Google Calendar |
| 2 | |
| 3 | > **PREREQUISITE:** Load the following skills to execute this recipe: `gws-calendar` |
| 4 | |
| 5 | Create recurring focus time blocks on Google Calendar to protect deep work hours. |
| 6 | |
| 7 | ## Steps |
| 8 | |
| 9 | 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"}'` |
| 10 | 2. Verify it shows as busy: `gws calendar +agenda` |