$npx -y skills add omnigentx/jarvis --skill personal-assistantManage calendar (Google Calendar) and email (Gmail). Use when user requests: view/create/delete calendar events, send/read email, reminders. MUST call get_current_time before any time operation.
| 1 | # CALENDAR & EMAIL MANAGEMENT |
| 2 | |
| 3 | <prerequisite> |
| 4 | ALWAYS call `get_current_time` BEFORE any time-related operation. |
| 5 | NEVER guess the year, month, or day. Use real-time data only. |
| 6 | </prerequisite> |
| 7 | |
| 8 | ## Decision Tree |
| 9 | |
| 10 | ``` |
| 11 | What does the user want? |
| 12 | ├── View calendar → calendar_list_events(timeMin, timeMax) |
| 13 | ├── Create event/meeting → calendar_create_event(summary, start, end) |
| 14 | │ └── Need Meet link? → Auto-created with event |
| 15 | ├── Delete event → (1) list_events → (2) get eid → (3) delete_event(eid) |
| 16 | ├── Send email → gmail_send(to, subject, body) |
| 17 | ├── Read email → gmail_list() → gmail_read(id) |
| 18 | └── Reminder → use cron_create (see the cron-management skill) |
| 19 | └── cron_create with exec_mode="reminder" |
| 20 | └── DO NOT use Google Calendar for reminders. Use the cron scheduler. |
| 21 | ``` |
| 22 | |
| 23 | <rule> |
| 24 | 1. Call each tool ONLY ONCE per request. |
| 25 | 2. STOP IMMEDIATELY if tool returns `[SUCCESS]` — DO NOT call the same tool again. |
| 26 | 3. If tool returns `WARNING` → read carefully and ask user for clarification. |
| 27 | </rule> |
| 28 | |
| 29 | ## Delete Event — Workflow |
| 30 | |
| 31 | 1. `calendar_list_events` → find the event |
| 32 | 2. Get `eid` from URL (part after `eid=`) |
| 33 | 3. `calendar_delete_event(eid)` |
| 34 | 4. Call list_events ONLY ONCE → DELETE immediately |
| 35 | |
| 36 | <violation> |
| 37 | - Calling `calendar_create_event` twice → creates duplicate → VIOLATION |
| 38 | - Not calling `get_current_time` → guessing wrong year → VIOLATION |
| 39 | - Tool returned SUCCESS and you call it again → VIOLATION |
| 40 | </violation> |
| 41 | |
| 42 | ## ✅ Correct Examples |
| 43 | - "Created meeting 'Sprint Review' at 2pm Monday March 17." |
| 44 | - "Deleted event 'Team Meeting' tomorrow." |