calendar-integration
БесплатноБез исполняемых скриптовНе проверенIntegrate with Google Calendar and Microsoft Outlook Calendar for scheduling, event management, and availability tracking. Use when someone asks to "create…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Calendar Integration
Overview
This skill helps AI agents integrate with Google Calendar and Microsoft Outlook Calendar. It covers authentication, event CRUD, recurring events, availability/free-busy queries, webhook notifications, and building scheduling features like booking pages and meeting coordinators.
Instructions
Google Calendar API v3
Authentication
import { google } from 'googleapis';
// OAuth 2.0 (user context)
const oauth2Client = new google.auth.OAuth2(
process.env.GOOGLE_CLIENT_ID,
process.env.GOOGLE_CLIENT_SECRET,
process.env.GOOGLE_REDIRECT_URI
);
const authUrl = oauth2Client.generateAuthUrl({
access_type: 'offline',
prompt: 'consent', // Google returns a refresh token only on first consent unless you force it
scope: [
'https://www.googleapis.com/auth/calendar.events', // event CRUD
'https://www.googleapis.com/auth/calendar.freebusy', // freebusy.query does not accept calendar.events
],
});
const { tokens } = await oauth2Client.getToken(authorizationCode);
oauth2Client.setCredentials(tokens);
const calendar = google.calendar({ version: 'v3', auth: oauth2Client });
// Service account (server-to-server). Without domain-wide delegation it only sees calendars
// shared with the service account's e-mail; with it, impersonate a Workspace user via `subject`.
const auth = new google.auth.GoogleAuth({
keyFile: process.env.GOOGLE_APPLICATION_CREDENTIALS, // path to the key file, never committed
scopes: ['https://www.googleapis.com/auth/calendar'],
clientOptions: { subject: '[email protected]' },
});
const calendarAsSarah = google.calendar({ version: 'v3', auth });
Create Events
// Timed event with attendees and Meet link
const event = await calendar.events.insert({
calendarId: 'primary',
requestBody: {
summary: 'Sprint Planning',
description: 'Plan sprint 14 tasks and capacity.',
start: { dateTime: '2026-11-02T14:00:00', timeZone: 'America/New_York' },
end: { dateTime: '2026-11-02T15:00:00', timeZone: 'America/New_York' },
attendees: [{ email: '[email protected]' }, { email: '[email protected]' }],
// Service accounts need domain-wide delegation to populate the attendee list
conferenceData: {
createRequest: { requestId: crypto.randomUUID(), conferenceSolutionKey: { type: 'hangoutsMeet' } },
},
},
conferenceDataVersion: 1,
sendUpdates: 'all',
});
// Recurring event
await calendar.events.insert({
calendarId: 'primary',
requestBody: {
summary: 'Daily Standup',
start: { dateTime: '2026-11-02T09:30:00', timeZone: 'America/New_York' },
end: { dateTime: '2026-11-02T09:45:00', timeZone: 'America/New_York' },
recurrence: ['RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;UNTIL=20261231T000000Z'],
},
});
RRULE Reference
Daily: RRULE:FREQ=DAILY;COUNT=30
Weekly: RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR
Biweekly: RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=TU
Monthly (date): RRULE:FREQ=MONTHLY;BYMONTHDAY=1
Monthly (day): RRULE:FREQ=MONTHLY;BYDAY=2TU
With end date: RRULE:FREQ=WEEKLY;BYDAY=MO;UNTIL=20261231T000000Z
Query, Update, Delete
// List upcoming events (next 7 days)
const { data } = await calendar.events.list({
calendarId: 'primary',
timeMin: new Date().toISOString(),
timeMax: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString(),
singleEvents: true, orderBy: 'startTime', maxResults: 50,
});
// Update event
await calendar.events.patch({
calendarId: 'primary', eventId,
requestBody: { summary: 'Sprint Planning (MOVED)', start: { dateTime: '2026-11-03T14:00:00', timeZone: 'America/New_York' }, end: { dateTime: '2026-11-03T15:00:00', timeZone: 'America/New_York' } },
sendUpdates: 'all',
});
// Delete event
await calendar.events.delete({ calendarId: 'primary', eventId, sendUpdates: 'all' });
Free/Busy Query
const { data } = await calendar.freebusy.query({
requestBody: {
timeMin: '2026-11-02T09:00:00-05:00',
timeMax: '2026-11-02T18:00:00-05:00',
timeZone: 'America/New_York',
items: [{ id: '[email protected]' }, { id: '[email protected]' }],
},
});
// data.calendars['[email protected]'].busy → array of { start, end } blocks
Push notifications
calendar.events.watch({ calendarId, requestBody: { id: crypto.randomUUID(), type: 'web_hook', address: 'https://hooks.company.com/gcal', token: 'target=sprint-calendar' } }). The address must be HTTPS with a valid certificate. A channel expires at the time you request or at Google's own limit (whichever is sooner), there is no auto-renewal, and a notification carries no event data: on each one, run events.list with your stored syncToken. Check the X-Goog-Channel-Expiration header and replace the channel (new id) before it lapses.
Microsoft Outlook Calendar (Graph API)
Authentication
App-only (below) needs the application permission Calendars.ReadWrite granted by an admin; restri
Установить calendar-integration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл calendar-integration?
Integrate with Google Calendar and Microsoft Outlook Calendar for scheduling, event management, and availability tracking. Use when someone asks to "create calendar events", "check availability", "schedule meetings", "sync calendars", "Google Calendar API", "Outlook Calendar API", "booking system", "find free slots", or "manage recurring events". Covers Google Calendar API v3, Microsoft Graph Calendar API, event CRUD, availability/free-busy queries, recurring events, and building scheduling features.
Как установить скилл calendar-integration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл calendar-integration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic