fastmail-caldav
Installation
SKILL.md
Fastmail Calendar via CalDAV
Fastmail calendars are CalDAV collections; work them with plain-stdlib urllib and the app-password env vars. No caldav/icalendar packages needed.
Credentials
FASTMAIL_EMAIL and FASTMAIL_APP_PASSWORD are already in the Hermes environment. Basic auth over HTTPS; never echo the password.
Workflow
- Find the calendar. PROPFIND
https://caldav.fastmail.com/dav/calendars/user/<FASTMAIL_EMAIL>/withDepth: 1and parse<d:displayname>per response to get the collection path matching the calendar's human name. Match the exact name the user gave. - List existing events before writing.
REPORTwithcalendar-queryon the collection,VEVENTcomp-filter plus atime-rangecovering the target window. Skip creating anything whose date already has an event; unrelated prior events on the calendar are normal — do not touch them. - Create events. One
PUTper event to<calendar-url>/<uid>.icswith a fullVCALENDARbody and headerIf-None-Match: *. 200/201/204 = success; anything else is a failure — count it. - Verify by reading back the same calendar-query and reconciling counts before reporting success.