npx skills add ...
npx skills add c0x12c/ai-toolkit --skill ops-oncall-log
Create a structured on-call log by pulling alerts from monitoring and writing a summary to your team's wiki. Requires a monitoring MCP (recommended: Datadog) and a wiki MCP (Confluence or Notion).
npx skills add c0x12c/ai-toolkit --skill ops-oncall-log
Pull alerts from your monitoring platform and create a structured on-call log on your team's wiki.
Two MCP servers are required:
mcp__claude_ai_Atlassian__*) or Notion (mcp__claude_ai_Notion__*).If either is missing, stop with:
Error: Missing required MCP server(s):
<list>. This skill needs both a monitoring MCP and a wiki MCP. Recommended: Datadog MCP + Confluence or Notion MCP.
Ask the user:
If the user has run this before and configuration is available (e.g., in .spartan/config.yaml), reuse those settings and confirm:
"Using previous settings: , alerts, wiki at . Correct?"
Based on the log frequency from Step 2:
If the user provides a custom date range, use that instead.
Confirm with the user:
"Logging on-call for – . Is this correct?"
Wait for confirmation before continuing.
Search the wiki for an existing page for this period (using the naming convention from Step 7). If found, read it to find the last updated timestamp. Ask the user: "A page for this period already exists. Update it or create new?"
from date instead of the full window start — this avoids re-fetching alerts already logged and reduces token usage.Add a **Last updated:** <timestamp> line at the top of the page on each update.
Use the available monitoring MCP to fetch alert events:
Pagination: If results are truncated, paginate until all events are fetched.
From all fetched events:
Group events by base monitor name. For each group collect:
Sort alerts by Appear Count descending.
Query monitors currently in Alert status. Flag these as needing follow-up by the next on-call.
If no alerts during the window, note "No alerts this period" and continue.
"Any additional notes, incidents, or action items to include in the log?"
Record their input. If "none", continue without notes.
If the user provided a template page in Step 2, fetch it and use its structure as the format guide. Otherwise use the default structure from Step 8.
Organize on-call logs in a consistent hierarchy:
Create the page on the wiki platform:
Formatting:
If there are unresolved alerts:
Action items for next on-call: The following alerts are still active — follow up with the relevant team:
<list>
Create the log page directly on the wiki platform (Confluence or Notion). Present the URL and stats inline in the conversation.
## On-call Log Created
**Page:** <page title>
**URL:** <wiki page URL>
**Alerts logged:** <N> alerts across <M> unique monitors
**Active alerts:** <count or "None">
**Notes:** <summary or "None">