bastion/calendar
Skill8 starsChanged 4 months agoMITView on GitHub
Unified calendar and tasks skill. Fetches events and tasks from Google Calendar, Google Tasks, and Outlook via Composio. Used by HEARTBEAT for reminders and available for on-demand queries from the user.
In this repository17 other files it gives its agents.
- bastion/agentskills-installSkill
- bastion/agentskills-publishSkill
- bastion-pet-packSkill
- bastion/channel-scaffoldSkill
- bastion/crisis-modeSkill
- bastion/life-logSkill
- mcporterSkill
- bastion/mesh-connectSkill
- bastion/mobile-connectSkill
- bastion/onboardingSkill
- bastion/output-validatorSkill
- bastion/persona-engineSkill
- bastion/proactive-engineSkill
- bastion/self-improvingSkill
- bastion/skill-writerSkill
- bastion/weekly-reviewSkill
- bastion/weight-systemSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 58
When triggered by the heartbeat, execute this sequence:
- Very specific: line 76
If start_time - now ≤ 5 minutes: send immediate reminder
- Very specific: line 87
Call OUTLOOK_LIST_TO_DO_LISTS then OUTLOOK_LIST_TODO_TASKS for each list with:
- Very specific: line 90
If any overdue tasks found, send: 📋 Tarefas vencidas: [N] tarefa(s) pendente(s) — [título1], [título2]...
- Distinctive: line 97
When the user asks about their agenda, schedule, events, or tasks, use the appropriate tools based on the query:
- Distinctive: line 108
Use timeMin: start of next Monday, timeMax: end of next Sunday
- Very specific: line 112
Use GOOGLECALENDAR_CREATE_EVENT or OUTLOOK_CALENDAR_CREATE_EVENT based on context
- Very specific: line 116
Use GOOGLETASKS_INSERT_TASK or OUTLOOK_CREATE_TASK
- Distinctive: line 117
No confirmation needed for task creation
- Distinctive: line 122
Only delete after explicit "sim"
- Distinctive: line 128
Always respond in pt-BR (Mário's language).
- Very specific: line 151
Always use America/Recife (UTC-3) for display.
- Distinctive: line 158
If a Composio tool call fails (auth error, quota, etc.): log the error, skip that source, and continue with the others.
- Very specific: line 160
If both Google and Outlook fail: notify the user once per hour max.
- Distinctive: line 162
Never expose raw API error messages to the user.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: bastion/calendar
Objective
Fetch upcoming events and pending tasks from Google Calendar, Google Tasks, and Outlook Calendar, then surface reminders and summaries to the user via Telegram.
Composio Tools Used
Google Calendar
GOOGLECALENDAR_EVENTS_LIST_ALL_CALENDARS— list events across all calendars in a time windowGOOGLECALENDAR_EVENTS_LIST— list events from a specific calendarGOOGLECALENDAR_CREATE_EVENT— create a new eventGOOGLECALENDAR_PATCH_EVENT— update an existing eventGOOGLECALENDAR_DELETE_EVENT— delete an event (requires confirmation)
Google Tasks
GOOGLETASKS_LIST_ALL_TASKS— list all tasks across all task listsGOOGLETASKS_LIST_TASKS— list tasks from a specific listGOOGLETASKS_INSERT_TASK— create a new taskGOOGLETASKS_PATCH_TASK— update a task (e.g. mark complete)GOOGLETASKS_DELETE_TASK— delete a task (requires confirmation)
Outlook Calendar
OUTLOOK_LIST_EVENTS— list calendar events in a time windowOUTLOOK_GET_CALENDAR_VIEW— get calendar view for a date rangeOUTLOOK_CALENDAR_CREATE_EVENT— create a new Outlook eventOUTLOOK_UPDATE_CALENDAR_EVENT— update an existing Outlook eventOUTLOOK_DELETE_CALENDAR_EVENT— delete an Outlook event (requires confirmation)
Outlook Tasks (To Do)
OUTLOOK_LIST_TO_DO_LISTS— list all To Do task listsOUTLOOK_LIST_TODO_TASKS— list tasks from a specific To Do listOUTLOOK_CREATE_TASK— create a new To Do task
HEARTBEAT: calendar-check (every 30 min)
When triggered by the heartbeat, execute this sequence:
Step 1 — Fetch upcoming events (next 60 minutes)
Call GOOGLECALENDAR_EVENTS_LIST_ALL_CALENDARS with:
timeMin: now (ISO 8601, UTC)timeMax: now + 60 minutes (ISO 8601, UTC)singleEvents: trueorderBy: startTime
Call OUTLOOK_LIST_EVENTS with:
$filter:start/dateTime ge '{now}' and start/dateTime le '{now+60min}'$orderby:start/dateTime$top: 10
Step 2 — Check for imminent events (≤ 5 minutes away)
For each event from both sources:
- If
start_time - now ≤ 5 minutes: send immediate reminder - Format:
🗓️ Em [X] minutos: [título do evento] — [horário] - Include source tag:
(Google)or(Outlook)
Step 3 — Fetch due/overdue tasks (once per hour, on the :00 run)
Call GOOGLETASKS_LIST_ALL_TASKS with:
dueMax: now (ISO 8601)showCompleted: falseshowHidden: false
Call OUTLOOK_LIST_TO_DO_LISTS then OUTLOOK_LIST_TODO_TASKS for each list with:
- filter: tasks with
dueDateTime≤ now andstatus!=completed
If any overdue tasks found, send:
📋 Tarefas vencidas: [N] tarefa(s) pendente(s) — [título1], [título2]...
On-Demand: User Queries
When the user asks about their agenda, schedule, events, or tasks, use the appropriate tools based on the query:
"o que tenho hoje?" / "minha agenda"
GOOGLECALENDAR_EVENTS_LIST_ALL_CALENDARS— timeMin: start of today, timeMax: end of todayOUTLOOK_LIST_EVENTS— filter for todayGOOGLETASKS_LIST_ALL_TASKS— dueMax: end of today, showCompleted: falseOUTLOOK_LIST_TODO_TASKS— tasks due today- Summarize all results in a single message, grouped by source
"próxima semana" / "semana"
- Use timeMin: start of next Monday, timeMax: end of next Sunday
"criar evento [...]"
- Parse title, date/time, and optional description from user message
- Use
GOOGLECALENDAR_CREATE_EVENTorOUTLOOK_CALENDAR_CREATE_EVENTbased on context - Confirm with user before creating:
Criar evento "[título]" em [data/hora]? (sim/não)
"criar tarefa [...]"
- Use
GOOGLETASKS_INSERT_TASKorOUTLOOK_CREATE_TASK - No confirmation needed for task creation
"cancelar / deletar evento [...]"
- Find the event first, show details
- Confirm:
Vou deletar "[título]" em [data/hora]. Confirmar? (sim/não) - Only delete after explicit "sim"
Response Format
Always respond in pt-BR (Mário's language).
Agenda summary format:
📅 Agenda de [data]
🕐 [horário] — [título] (Google/Outlook)
🕑 [horário] — [título] (Google/Outlook)
📋 Tarefas do dia:
• [tarefa 1] (Google Tasks)
• [tarefa 2] (Outlook To Do)No events format:
✅ Nenhum evento ou tarefa para [período].Timezone
Always use America/Recife (UTC-3) for display. Convert all UTC timestamps
from the APIs before showing to the user.
Error Handling
- If a Composio tool call fails (auth error, quota, etc.): log the error, skip that source, and continue with the others. Never fail silently without logging.
- If both Google and Outlook fail: notify the user once per hour max.
Format:
⚠️ Não foi possível acessar o calendário agora. Tentarei novamente em breve. - Never expose raw API error messages to the user.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

