create-xe-session

Installation
SKILL.md

Create and Set Up an Extended Events Session

Scope

  • Use this skill when the needed capture is not set up yet, including intermittent deadlocks or slow queries that need durable evidence over hours or days.
  • To interpret a deadlock graph that was already captured, use deadlock-analysis-azuresql on Azure SQL Database or deadlock-analysis on SQL Server and Managed Instance.

Azure SQL Database specialization

For Azure SQL Database (EngineEdition 5), read Azure-specific guidance before choosing diagnostic queries. It preserves the service-specific permissions, capture limitations and error interpretation. Keep this skill's scope and authorization rules; the reference is not a second workflow to run unconditionally.

Prove the capture, not just session creation

For database_xml_deadlock_report, read participant clientapp, loginname, and statement evidence from the native deadlock XML. Event-level actions are not substitutes for participant attribution. Input buffers may be truncated and omit earlier transaction statements; collect additional evidence when needed. See the Azure deadlock guide.

When asked for a bounded design, distinguish supplied settings from proposed choices. For an event_file target, propose both a per-file size and a finite rollover count, state their approximate total storage bound, and specify a stop condition. Label these as proposals pending platform/permission checks; do not present them as observed settings or create the session without authorization. For a ring_buffer, bound memory and capture duration and explain that older events may be lost.

On Azure SQL Database use database-scoped sessions, views and permissions. Verify event availability and field units on the actual target. A successful CREATE/START does not prove the session will collect evidence: check the event, predicate, attribution actions and target, generate a harmless matching event if authorized, then read the target and confirm the expected row. Stop/drop only the session created for this task when finished, retaining the evidence first.

Installs
31
GitHub Stars
66
First Seen
11 days ago