Cli recipe-find-free-time

Query Google Calendar free/busy status for multiple users to find a meeting slot.

install
source · Clone the upstream repo
git clone https://github.com/googleworkspace/cli
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/googleworkspace/cli "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/recipe-find-free-time" ~/.claude/skills/googleworkspace-cli-recipe-find-free-time && rm -rf "$T"
manifest: skills/recipe-find-free-time/SKILL.md
source content

Find Free Time Across Calendars

PREREQUISITE: Load the following skills to execute this recipe:

gws-calendar

Query Google Calendar free/busy status for multiple users to find a meeting slot.

Steps

  1. Query free/busy:
    gws calendar freebusy query --json '{"timeMin": "2024-03-18T08:00:00Z", "timeMax": "2024-03-18T18:00:00Z", "items": [{"id": "user1@company.com"}, {"id": "user2@company.com"}]}'
  2. Review the output to find overlapping free slots
  3. Create event in the free slot:
    gws calendar +insert --summary 'Meeting' --attendee user1@company.com --attendee user2@company.com --start '2024-03-18T14:00:00' --end '2024-03-18T14:30:00'