skills/cal-com/SKILL.md
Integrate Cal.com scheduling + Cal Video into an app — book meetings/viewings with auto-generated video links, synced into your DB via webhooks. Covers the v2 API (auth, create event types + webhooks programmatically), the React embed (@calcom/embed-react), and the booking→DB webhook with signature verification. Use when adding online appointments, video calls, or a booking flow. Triggers on "cal.com", "add scheduling", "book a meeting/viewing", "embed a calendar", "video appointments".
npx skillsauth add RonanCodes/ronan-skills cal-comInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Add real scheduling + video to an app. The booker picks a slot, Cal.com generates a Cal Video (Daily) room automatically, and a webhook syncs the booking + join link into your DB.
Cal.com has separate cloud instances with separate API hosts. If the account is on the EU instance (cal.eu/<username>), the API base is https://api.cal.eu/v2, NOT api.cal.com. A key from a cal.eu account returns 401 Invalid API Key against api.cal.com. Always confirm the host first:
KEY="cal_live_..."
curl -s -H "Authorization: Bearer $KEY" -H "cal-api-version: 2024-08-13" https://api.cal.eu/v2/me
# falls back to https://api.cal.com/v2/me for US accounts
Store the base as an env var (CALCOM_API_BASE) so code isn't hardcoded to one region. API v1 is decommissioned (HTTP 410) — v2 only.
Authorization: Bearer cal_live_... on every call.cal-api-version is per-endpoint and matters:
2024-06-142024-08-13cal_live_...).With just the API key you can create the event type AND the webhook, so the integration is self-provisioning.
1. Create a Cal Video event type:
curl -X POST "$CALCOM_API_BASE/event-types" \
-H "Authorization: Bearer $CALCOM_API_KEY" -H "cal-api-version: 2024-06-14" \
-H "Content-Type: application/json" \
-d '{"lengthInMinutes":30,"title":"Property viewing","slug":"property-viewing",
"locations":[{"type":"integration","integration":"cal-video"}]}'
The booking link is then <instance>/<username>/<slug> (e.g. cal.eu/ronanconnolly/property-viewing); the embed calLink is <username>/<slug>. Cal Video is installed by default; the location above makes every booking generate a unique room.
2. Create the webhook (you choose the secret):
curl -X POST "$CALCOM_API_BASE/webhooks" \
-H "Authorization: Bearer $CALCOM_API_KEY" -H "cal-api-version: 2024-08-13" \
-H "Content-Type: application/json" \
-d '{"subscriberUrl":"https://<app>/api/calcom/webhook","active":true,
"triggers":["BOOKING_CREATED","BOOKING_CANCELLED"],"secret":"whsec_..."}'
Triggers enum includes: BOOKING_CREATED, BOOKING_CANCELLED, BOOKING_RESCHEDULED, BOOKING_REQUESTED, MEETING_ENDED, RECORDING_READY, and more. Set the event type to auto-confirm (no requiresConfirmation) so the Cal Video link is present on the first BOOKING_CREATED.
npm i @calcom/embed-react. No API key needed client-side — just the public calLink. Mark "use client" in Next App Router. Prefill from your session, restyle to brand:
"use client";
import Cal, { getCalApi } from "@calcom/embed-react";
import { useEffect } from "react";
export function BookViewing({ name, email }: { name: string; email: string }) {
useEffect(() => { (async () => {
const cal = await getCalApi();
cal("ui", { styles: { branding: { brandColor: "#7c3aed" } }, layout: "month_view" });
})(); }, []);
return <Cal calLink={process.env.NEXT_PUBLIC_CALCOM_LINK!}
config={{ name, email, layout: "month_view" }} style={{ width: "100%", height: 640 }} />;
}
React 19 / Next 16 peer-dep friction is common — install with --legacy-peer-deps if npm i complains, and pin the latest @calcom/embed-react.
Read the raw body (HMAC-SHA256 over the raw bytes with your secret; header x-cal-signature-256). In Next App Router:
import crypto from "node:crypto";
export async function POST(req: Request) {
const raw = await req.text(); // raw, not parsed JSON
const sig = req.headers.get("x-cal-signature-256") ?? "";
const expected = crypto.createHmac("sha256", process.env.CALCOM_WEBHOOK_SECRET!)
.update(raw).digest("hex");
if (!sig || !crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected)))
return new Response("invalid signature", { status: 401 });
const { triggerEvent, payload } = JSON.parse(raw);
// payload.uid, payload.startTime, payload.endTime, payload.attendees[0].email,
// payload.videoCallData?.url <-- the Cal Video join link
// upsert into your bookings/viewings table here
return new Response("ok");
}
payload.videoCallData.url is the join link (also in Cal's own confirmation email). Store it and render a "Join" button. If the event requires manual confirmation the link can be absent on the first event — auto-confirm avoids it.
CALCOM_API_KEY=cal_live_...
CALCOM_API_BASE=https://api.cal.eu/v2 # or api.cal.com for US
CALCOM_WEBHOOK_SECRET=whsec_...
NEXT_PUBLIC_CALCOM_LINK=<username>/<event-slug> # public, for the embed
/v2/me call before anything else.cal-api-version per endpoint (event-types 2024-06-14, bookings 2024-08-13).videoCallData.url.testing
--- name: linear-pipeline description: The Fable orchestrator for a single dispatched Linear ticket. Holds almost no context itself; it receives `--issue <ID> --detached`, decides the stage sequence, and fans out a sub-agent per stage, passing forward only each stage's artifact (never re-derived, never inlined into its own context). Step zero, before any planning or stage routing, is a boundary triage against `canon/security-boundary.md` (#199): a match tags Ronan Connolly and stops the run, no
development
--- name: in-your-face description: Capture a chat-only answer into a durable artifact (markdown + HTML, PDF when cheap) and launch it automatically so the user cannot miss it. Use when user says "in your face", "don't let me lose this", "save that answer", "make that durable", or right after answering a substantive side question (a recipe, comparison, how-to, or generated prompt) that would otherwise die with the context. category: workflow argument-hint: [--no-open] [--vault <short>] [hint of
tools
One-shot headless OpenAI Codex CLI calls for background/admin AI tasks — summaries, classification, extraction, admin glue. The default engine for anything that runs AI constantly in the background (daemon-driven, per-event), because it bills the flat ChatGPT subscription instead of Claude usage or per-token API spend, and it keeps working while Claude is rate-limited. NEVER for coding — coding stays Claude. Use when a skill or daemon needs a cheap always-on AI call, when the user says "use codex", "ask codex", "codex as backup", or when building a background summarizer/classifier into a listener or loop. Reads auth from ~/.codex/auth.json (ChatGPT account, no API key).
research
Turn a warranty rejection, repair quote, or RMA email into a cited decision brief — legal read (NL/EU consumer law), is the part user-serviceable, live part and new-unit prices, repair-vs-DIY-vs-new economics, before-you-send-it checklist, deadlines. Use when the user pastes or screenshots a repair quote, warranty rejection, "not covered" email, onderzoekskosten fee, or asks "should I repair or replace this".