/obsidian-second-brain:obsidian-calendarfrom obsidian-second-brain
Manages calendar integration with four modes: agenda (snapshot note), reconcile (vault vs calendar gaps), meeting (event to note), schedule (task to event).
Ships in obsidian-second-brain. Installing the plugin adds it to Claude Code.
Use the obsidian-second-brain skill. Execute /obsidian-calendar $ARGUMENTS:
One command for everything that touches the calendar, selected by the first word (the mode):
agenda [range] - read the calendar and write an AI-first snapshot to the vault (read-only on the calendar).reconcile [window] - flag commitments the vault implies that are NOT on the calendar (read-only; flags, never writes events).meeting [selector] - turn a calendar event into a meeting note in the vault.schedule <args> - create or move a calendar event (the only mode that writes to the calendar).If no mode word is given, infer it: a bare range word (today, week, next-week, a date) means agenda; otherwise ask which mode. Default with no argument at all: agenda today.
All modes require a Google Calendar MCP. The claude.ai connector exposes mcp__claude_ai_Google_Calendar__list_calendars, list_events, get_event, create_event, update_event, suggest_time; if your calendar MCP namespaces its tools differently, use that server's equivalents. If no calendar MCP is connected, say so clearly and stop - do not fall back to asking the user to paste their calendar.
Always start by reading _CLAUDE.md (folder conventions, working hours) and CRITICAL_FACTS.md (timezone) if they exist. If neither declares a timezone, default to the session timezone and note that as a caveat. Resolve every folder per references/folder-map.md (wiki-style paths shown below).
Range argument: today (default), tomorrow, week (current ISO week Mon-Sun), next-week, YYYY-MM-DD, or YYYY-MM-DD..YYYY-MM-DD.
YYYY-MM-DDTHH:MM:SS+/-HH:MM) in the user's timezone, end bound exclusive at end-of-day local.list_calendars once, pick the primary (primary: true). Accept --calendars <id1>,<id2> to include more; otherwise primary only.list_events with timeMin, timeMax, singleEvents: true, orderBy: "startTime"; filter cancelled events client-side.references/folder-map.md): match by full name then email local-part, fuzzy (handle missing diacritics/short forms). Found -> [[Person Name]]; not found -> plain name + (unknown person).type: agenda-snapshot, schema in references/ai-first-rules.md) to the agenda folder (resolved per references/folder-map.md - wiki-style wiki/agenda/, Obsidian-style Agenda/): single day YYYY-MM-DD - <today|tomorrow|day>.md, week YYYY-MM-DD - week.md (Monday prefix), range YYYY-MM-DD - range.md (start prefix). If one exists for the range, overwrite it (the calendar is the source of truth) and add superseded-at: <previous fetched-at>. The ## For future Claude preamble must state the calendar is the source of truth, not this note, and fetched-at is the recency anchor. Body: ## Range, ## Summary, ## Events (one ### YYYY-MM-DD - <Weekday> subsection per day; each event a bullet with start-end, title, [[attendees]], location, conference link verbatim, and event-id: <id> so other modes can locate it), then ## Conflicts / ## Focus blocks / ## External organizers only if present.Logs/YYYY-MM-DD.md if the vault uses a Logs/ folder - create today's file if needed - else log.md): ## [<iso>] agenda | <range-label> - <event-count> events, <conflict-count> conflicts. Inject (do not overwrite) a ## Calendar link into today's daily note.(unknown person) attendees. Do not paraphrase event titles or infer attendees. If the range is empty, still write the snapshot (event-count: 0).Window argument: today, this week (default), this month. Flag only - never add, move, or change events.
next_actions and dated deadlines; tasks/board items due in the window; commitments in recent daily notes and captures (appointments, calls, travel, filing deadlines, birthdays); fixed dates from CRITICAL_FACTS.md.[[source note]], and date/urgency) and on the calendar, no vault context (lighter - events that might warrant a prep note or project link).Selector argument: last (most recent past event, default), next (next upcoming), today (list and ask), event-id:<id>, or a fuzzy event title (search now +/- 14d, show top 3, confirm).
last -> list_events timeMin now-7d..now, take last whose end is past; next -> now..now+14d, take first; today -> list and ask (do not guess); event-id: -> get_event; fuzzy -> match and confirm.references/folder-map.md): found -> [[Person Name]]; not found -> displayName + (unknown person - run /obsidian-person to add).references/folder-map.md) and boards for frontmatter calendar-event-id: <this-event-id>; if found, backlink it.type: meeting, schema in references/ai-first-rules.md) to the meetings folder (resolved per references/folder-map.md - wiki-style wiki/meetings/, Obsidian-style Meetings/) as YYYY-MM-DD - <slug>.md (event start date in user's TZ; kebab-case ASCII slug, max 60 chars, strip emojis/punctuation). If it already exists, do NOT overwrite - inject only missing structural sections and ask whether to open it or make a -002 variant. Frontmatter carries event-id, event-url, conference-url (if any), start/end, duration-min, location verbatim, organizer, attendees: ["[[Person]]"], recurrence (if recurring), linked-task (if found), related-projects (by inference, else empty). Body in order: ## For future Claude (the event is source of truth for time/attendees, this note for what happened), ## Context (event description verbatim, or "No agenda was attached to the calendar event."), ## Attendees ([[Person]] + responseStatus), then EMPTY ## Notes, ## Decisions, ## Action items sections, and ## Source (event-url + conference-url verbatim, the recency anchor).- YYYY-MM-DD - Meeting: [[wiki/meetings/...]] under each existing attendee's ## Recent Interactions; add Meeting note: [[...]] to a linked task; inject - <time> - <title> ([[...]]) under today's daily note ## Meetings; append ## [<iso>] meeting | "<title>" - <n> attendees, note at <path> to the operation log (Logs/YYYY-MM-DD.md if the vault uses a Logs/ folder - create today's file if needed - else log.md)./obsidian-save. For a future event (next), set tags: [meeting, prep] and label the preamble as pre-meeting prep.Three sub-modes from the argument shape:
schedule "<title>" <when> <duration> - e.g. schedule "Sync with Acme" 2026-06-02 14:00 60min. No vault task yet.schedule task:<path-or-fuzzy-title> <when> [duration] - ties the event to an existing task.schedule task:<path-or-fuzzy-title> suggest:<window> [duration] - calls suggest_time, presents slots, waits for the user to pick before creating. Window: today/tomorrow/week/next-week/YYYY-MM-DD..YYYY-MM-DD.task: path read directly, else fuzzy-search the tasks folder resolved per references/folder-map.md and boards, confirm). Extract title, description (body up to first ##), participants/related-people, due, related-projects.[[Person]], read email: from the person's note in the entities folder (resolved per references/folder-map.md). If missing, ask whether to proceed without them, prompt for and save the email, or abort. Never invent an email.summary (task title or quoted string); description (task description + backlink Vault task: <path> for task modes; empty for standalone unless context supplied); start.dateTime/end.dateTime ISO 8601 with TZ offset; attendees the resolved emails (user is organizer); Google defaults for reminders; set conferenceData via conferenceDataVersion: 1 if a Meet is implied (multi-domain attendees, or body says video/call/remote).list_events over the proposed slot; if anything overlaps, show it (title, time, attendee count) and ask: proceed, pick another time, or abort. Default to "ask, do not double-book".timeMin/timeMax, call suggest_time with duration + attendee emails, present up to 5 ranked slots, wait for selection, then fall through to the conflict check and creation with the chosen slot.create_event; capture id, htmlLink, start, end, hangoutLink.scheduled-at, calendar-event-id, calendar-event-url, calendar-meet-url (if any) into the task frontmatter; add Scheduled: <htmlLink> at <when> to the body. If the task already had a calendar-event-id, this is a reschedule: call update_event instead of creating, and update fields in place - never leave orphan events.email: was used and its last-interaction: is missing or older than this event, update it to the scheduled date (same pattern as /obsidian-person).## [<iso>] schedule | <sub-mode> - "<title>" at <when> with <n> attendees -> <event-id> to the operation log (Logs/YYYY-MM-DD.md if the vault uses a Logs/ folder - create today's file if needed - else log.md); inject a one-line entry under today's daily note ## Scheduled today.email:. Never double-book without confirmation, never duplicate an already-scheduled task (reschedule instead), never write a guessed email.AI-first rule: Every note created or updated by this command MUST follow references/ai-first-rules.md - ## For future Claude preamble, rich frontmatter (type, date, tags, ai-first: true, plus type-specific fields), recency markers per external claim, mandatory [[wikilinks]] for every person/project/concept referenced, sources preserved verbatim with URLs inline, and confidence levels where applicable. If that path does not resolve from your working directory, search upward for it; if you still cannot read it, say so before writing rather than producing a note that silently skips the rule. The vault is for future-Claude retrieval - not human reading.
Anti-fabrication: Only flag or schedule commitments grounded in the vault or calendar - never invent a deadline, an attendee, or an email. Before claiming a note, person, or event is absent, search exhaustively (grep by name, attendees, address across all folders) - false absence is the most common failure mode. Mark unknowns as TBD. See the anti-fabrication and search-completeness hard rules in references/ai-first-rules.md.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub gongyuancaiji/dsh-obsidian-second-brain --plugin obsidian-second-brain46 commands in this plugin
/create-commandFast path (skip the interview when the seed already answers it)Create a new obsidian-second-brain command via interview - zero markdown editing required/idea-discoveryIdea DiscoverySurface 3-5 next-direction candidates by reading ungraduated ideas, open project questions, and orphan research notes - what is worth working on next/notebooklmVault-first source-grounded research via Gemini File Search. One command, no browser. The grounded parallel to /research-deep (which is open-web via Perplexity)./obsidian-architectObsidian ArchitectScan a codebase and write a maintained set of architecture notes into the vault - overview, per-module notes, key decisions. Re-run to refresh without clobbering your edits/obsidian-boardObsidian BoardShow or update a kanban board - flags overdue items, updates from conversation/obsidian-board-hygieneObsidian Board HygieneBulk-triage a kanban board - surface stale items and archive, reschedule, or mark them done in one passOther plugins' commands for the same job