Skip to content
Back to skills

Calendar

ASecurity

Use when listing, reading, creating, updating, or deleting Home Assistant calendar events through HA NOVA Relay.

  • 20 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 23, 2026
ai-agentsgoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add markusleben/ha-nova --skill calendar --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Calendar?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Calendar
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/markusleben-calendar/badge)](https://www.skillsdirectory.com/skills/markusleben-calendar)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: calendar
description: Use when listing, reading, creating, updating, or deleting Home Assistant calendar events through HA NOVA Relay.
license: MIT
compatibility: Requires the ha-nova CLI (run 'ha-nova setup' first) and the HA NOVA Relay in Home Assistant (App, or standalone container on Container/Core).
---

# HA NOVA Calendar

## Scope

Calendar event work:
- list calendar entities
- read events for one calendar over a bounded window
- summarize upcoming events across selected calendars
- create, update, or delete one event

Not in scope:
- calendar dashboard edits
- automation writes that use calendar triggers
- calendar sharing, permissions, or provider-account settings

## Bootstrap (once per session)

Read and follow `../ha-nova/session-bootstrap.md`.

## Relay Contract

REST reads, one create service, and feature-gated writes:
- `ha-nova relay core --method GET --path /api/calendars --out <result-file>`
- `ha-nova relay core --method GET --path /api/states/<calendar_entity_id> --out <result-file>`
- `ha-nova relay core --method GET --path <calendar-events-path> --out <result-file>`
- `ha-nova call calendar.create_event <calendar_entity_id> --skill ha-nova:calendar --set summary=… --set start_date_time=… --set end_date_time=…` (one-off create)
- `ha-nova relay ws --data-file <payload-file> --out <result-file>` for `calendar/event/create` (recurring creates); `ha-nova plan raw --file <requests.json>` for `calendar/event/update` and `calendar/event/delete`
- `ha-nova relay jq --file <result-file> --jq-file <filter-file>`

`<calendar-events-path>` is:
`/api/calendars/<calendar_entity_id>?start=<timestamp>&end=<timestamp>`

Relay-core response body is under `.data.body` (envelope contract: `../ha-nova/relay-api.md` → Standard Envelope).

## Flow

1. List calendars with `/api/calendars`.
2. Resolve the requested calendar by exact `entity_id` or exact/clear name match.
3. If multiple calendars match, ask one blocking question.
4. Set a bounded event window:
   - if the user gave start/end, use them
   - otherwise default to now through the next 7 days
   - narrow an unbounded or very broad range before querying
5. Query events with `/api/calendars/<entity_id>?start=<start>&end=<end>`.
6. Summarize read results:
   - title/summary
   - start and end
   - all-day vs timed; all-day events carry date-only values with an EXCLUSIVE end — a one-day event on the 14th returns end = the 15th; report it as "on the 14th", never as "ends the 15th"
   - timed events: render times in the user's local timezone, and say which timezone applies when the returned offset differs from it
   - recurring events arrive pre-expanded as individual instances within the window — count and report them as such, not as one series
   - location only when useful
   - omit private descriptions unless asked

### Create, update, or delete

1. Resolve one exact calendar and read `/api/states/<entity_id>`. Gate create on `supported_features & 1`, delete on `& 2`, and update on `& 4`; stop when the required bit is absent.
2. Read a bounded event window covering the target. Update/delete require an exact event with `uid`; use `(uid, recurrence_id)` as the instance identity. If several events match the user's description, ask one blocking question. Never guess.
3. Normalize event fields:
   - timed events use `start_date_time`/`end_date_time` for create and `dtstart`/`dtend` inside the WS `event` object; both values use the Home Assistant timezone and end must be after start
   - all-day events use `start_date`/`end_date` for REST create and date-only `dtstart`/`dtend` in the WS `event` (recurring create, update); end is exclusive
   - create requires `summary`; optional `description` and `location` are included only when set
   - a recurring create takes an RFC 5545 `rrule` string and goes through WS `calendar/event/create` (the REST service has no recurrence field); non-recurring creates keep the REST service
   - update merges: send the target's current or changed `summary`/`dtstart`/`dtend`/`description`/`location`; an empty string clears description/location; an omitted `rrule` stays; recurrence can't be removed (to end a series, delete this and future occurrences from the first one to remove)
4. For an occurrence with `recurrence_id`, ask whether the scope is **this occurrence** (`recurrence_range:""`) or **this and future occurrences** (`"THISANDFUTURE"`). Bind that scope to the preview. For this occurrence, omit `rrule`. Use this-and-future only for summary/description/location changes. Do not invent an entire-series mode.
5. Show the Preview Card with operation, calendar, exact event identity, summary, start/end, timezone or all-day range, changed fields, and recurrence scope. A one-off create runs its `ha-nova call` here, an update or delete its `ha-nova plan raw`: the preview. Create uses natural bound confirmation; the plan asks itself.
6. Immediately before execution, re-read the target window and calendar state; this event set is the create baseline. On any drift (capability, identity, fields, recurrence scope), abort and re-preview.
7. Execute exactly one write:
   - the step-5 plan: `ha-nova apply --plan <id>` (per its `next_step`)
   - recurring create: WS `{"type":"calendar/event/create","entity_id":"calendar.example","event":{"summary":"Event","dtstart":"<start>","dtend":"<end>","rrule":"FREQ=WEEKLY;BYDAY=MO"}}` — `dtstart`/`dtend` describe the FIRST instance
   - update item: `{"endpoint":"ws","payload":{"type":"calendar/event/update","entity_id":"calendar.example","uid":"<uid>","recurrence_id":"<instance>","recurrence_range":"<range>","event":{"summary":"Event","dtstart":"<start>","dtend":"<end>"}}}`; omit recurrence keys for a non-recurring event
   - delete item: `{"endpoint":"ws","payload":{"type":"calendar/event/delete","entity_id":"calendar.example","uid":"<uid>","recurrence_id":"<instance>","recurrence_range":"<range>"}}`; omit recurrence keys for a non-recurring event
8. Verify through bounded REST read-back, up to three reads over ten seconds:
   - create: compared with the baseline, exactly one new event must match the requested normalized fields; the service response alone is not identity evidence
   - recurring create: the read-back window returns the series pre-expanded — new instances sharing one `uid` and matching the `rrule` pattern; report them as ONE series (rule, first occurrence, count inside the window), never as separate events, and say instances beyond the window were not verified; a window that cannot hold the next expected occurrence proves no recurrence — report it unverified
   - update: `uid` at the requested start must contain the full requested fields; for `THISANDFUTURE`, also check every later occurrence in the window and state that later events outside the window were not verified
   - delete: the target identity must be absent; for `THISANDFUTURE`, all occurrences with that `uid` from the selected instance onward must be absent within the window
   - ambiguous, stale, or delayed results are reported as not verified; never repeat a write automatically

## Error Handling

- Relay/upstream failures follow `../ha-nova/relay-api.md` → Error Handling.
- Unsupported feature or missing `uid`: stop and name the limitation; do not try another endpoint.
- Timeout/`502`: verify first. Create may already have produced an event, so automatic retry risks a duplicate.
- Provider rejection: surface the Home Assistant reason without guessing a corrected payload.

## Output Format

Apply `../ha-nova/output-rules.md`: plain words, HA names verbatim; unless asked or names clash, no ids, "entity", modes, Relay/HA URLs, snapshots, raw JSON.

- `Calendar`
- `Window`
- `Events`
- `Next step`

These slots render the Report shape (output-cards.md); event groups follow the List Frame. For multiple calendars, group by calendar and keep each group short. Writes use the Preview Card and Result Card; report the exact bounded verification scope.

## Safety

- Safety Core: before any write, apply `../ha-nova/safety-core.md`; not yet in this conversation → read it first; unreadable or incomplete → stop and write nothing.

- Drafts follow `../ha-nova/smallest-solution.md`: the complete requested outcome in the simplest safe design, nothing speculative.

- Calendar event writes have no HA NOVA revert. A provider recycle bin may exist but is not guaranteed; recreate only from a user-approved preview.
- Always use bounded windows.
- Never guess a calendar id from a partial name when multiple matches exist.
- One event write at a time; no batch mutation.

## References

- Relay API: `../ha-nova/relay-api.md`
- Shared write safety: `../ha-nova/write-safety.md`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.