When {USER_NAME} wants to add a time block to their daily note so it shows up in Full Calendar. Triggered via /addevent with or without arguments — e.g. /addevent 11:30 12:30 Study session ibP
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Addevent?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/zoomma1-addevent)
---
name: addevent
description: "When {USER_NAME} wants to add a time block to their daily note so it shows up in Full Calendar. Triggered via /addevent with or without arguments — e.g. /addevent 11:30 12:30 Study session ibP"
---
## Arguments
`$ARGUMENTS` accepts 0 to 4 elements, in this order: `[date] [startTime] [endTime] [title]`
- `date` (optional) in `YYYY-MM-DD` format — **always first** if present. Absent → current date (historical behavior).
- HH:mm format: hours 00:00 to 23:59 (24h)
- Example with a future date: `/addevent 2026-05-18 18:45 19:15 Doctor appointment asthma`
- Full same-day example: `/addevent 11:30 12:30 Study session ibP`
- Partial example (startTime + title): `/addevent 14:30 Dentist`
- Minimal example: `/addevent 14:00`
- Past date: allowed, **no warning** — complete silence.
## Behavior
1. Parse `$ARGUMENTS` into the components [date] [startTime] [endTime] [title]:
- **Date detection**: if the first token matches `^\d{4}-\d{2}-\d{2}$` → it is the target date; consume it and remove it from the stream. Otherwise → no date token, target date = current date. The date token can only be **first** — a `YYYY-MM-DD` found anywhere else in `$ARGUMENTS` is part of the title.
- Identify the HH:mm tokens in the rest
- Remaining text = title
- Case 1: three valid elements (HH:mm HH:mm text) → continue
- Case 2: two HH:mm + title → continue
- Case 3: one HH:mm + title (no second HH:mm) → ask for endTime
- Case 4: two HH:mm (no title) → ask for title
- Case 5: one HH:mm (no title) → ask for endTime and title
- Case 6: text only (no HH:mm) → ask for startTime and endTime
- Case 7: empty → ask for startTime, endTime and title
- The 7 cases apply **after** the date token has been consumed. The date token is optional and independent of the cases above.
2. Validate the times:
- HH:mm format: reject if MM >= 60 or HH >= 24, ask again
- Logic: reject if startTime >= endTime, ask again
3. Read (or create) the daily note: `{VAULT_PATH}\{DAILY_NOTES_FOLDER}\YYYY-MM-DD.md`
- **Target date**: date token parsed in step 1 if present, otherwise current date.
- If the file **exists** → historical behavior unchanged, go to step 4 (insertion into `### 📅 Agenda`).
- If the file **does not exist**, create it as a **minimal skeleton** (not the full template):
- Read the template `{VAULT_PATH}\Ressources\Templates\Daily notes template.md`
- Extract **only the frontmatter** (between the two `---`)
- Resolve all Templater placeholders `<% tp.date.now(...) %>` with the **target date** (not the current date). E.g. for `2026-05-18` → `date: 2026-05-18`, `year: 2026`, `month: May`, `week: 20`.
- Leave the non-Templater fields (`energy`, `score`, `ressenti`, `work_hours`, `personal_hours`, `hobby_hours`) as they are in the template (empty) — `/today` will fill them on the day.
- Write the skeleton: resolved frontmatter + one blank line + `### 📅 Agenda` + one blank line. **No other template section** (no H1, no Habits, no Plan of the day, no Ideas). `/today` completes the rest without overwriting the Agenda.
- **Why a minimal skeleton**: `/today` step 2.1 expects a frontmatter with fillable fields; a fully pre-written template would make the two skills diverge (see the architecture decision in the ticket `etendre-addevent-parametre-date`).
4. Locate the `### 📅 Agenda` section:
- If it exists → insert at the end (after the last checked item or the text before the blank lines)
- If it is absent but `## 📅 Plan du jour` exists → add `### 📅 Agenda` below it
- If both are absent → create `### 📅 Agenda` at the end of the note
5. Add the line:
```
- [ ] [title] [startTime:: HH:mm] [endTime:: HH:mm]
```
Note: `startTime::` and `endTime::` are DataView properties used for Full Calendar tracking.
6. Confirm: "Event added: [title] from HH:mm to HH:mm"
## Rules
- Time format: HH:mm (24h), range 00:00-23:59
- Time validation: reject invalid formats (MM >= 60, HH >= 24) and startTime >= endTime, ask again
- Insertion: end of the Agenda section, before the blank lines if present
- **Date token**: optional, format `YYYY-MM-DD`, **always first** in `$ARGUMENTS` if present. A past date is silently allowed (no warning).
- **Zero same-day regression**: without a date token, behavior is strictly identical to the historical one (target = today's daily note).
- **Note creation = minimal skeleton**: template frontmatter with Templater placeholders resolved to the **target date** + the `### 📅 Agenda` section only. Never deploy the rest of the template (Habits, Plan of the day, Ideas) — `/today` takes care of it on the day without overwriting the Agenda.
- **Never modify `today.md`** and do not introduce any anti-overwrite logic: `/today` does not rewrite an existing daily note, the contract holds on its own.
- Confirmation: display the added event with the formatted times