Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

workload-insights

FreeNo executable scriptsNot checked

Builds SQL Server Discovery from Extended Events `.xel` files by running `scai assessment workload-insights --input <file>`. SQL Server only. Reads captures…

sfc-gh-dflippoby sfc-gh-dflippo★ 35 GitHub stars

About this skill

Discovery

Thin, non-interactive wrapper over scai assessment workload-insights. The parent supplies absolute .xel paths. The command streams the captures and writes timestamped JSON under the project. Never parse or rewrite the capture or JSON. Never copy .xel files into the project. Never ask the user questions.

  • Supported dialect: SQL Server. Any other dialect aborts with ASM0034; report skipped, not an error.
  • Input: one or more binary Extended Events .xel files. Rollover files from the same capture are separate --input arguments. Any filename works.

Run

scai assessment workload-insights \
  --input /abs/path/WorkloadReport_XE_0.xel \
  --input /abs/path/WorkloadReport_XE_1.xel

Run from project_dir. The command writes:

<project_dir>/artifacts/assessment/workload-insights-YYYYMMDD_HHMMSS.json

Sub-agent contract

On entry, call configure() with project_dir from the parent's context block. Take no user prompts. On completion return JSON only:

{
  "sub_skill": "workload-insights",
  "status": "ok",
  "output_json": "<absolute path to workload-insights-*.json>",
  "summary": "<one line: databases, total events, user executions, errors>",
  "error": null
}
  • Unsupported dialect (ASM0034): status "skipped", output_json null, error null.
  • Any other failure: status "error", output_json null, error "<message>".
  • A large-file or long-running parse message on stdout is not an error. Exit code 0 plus a written artifact means "ok"; fold the message into summary.
  • Do not include SQL text, parameters, or error messages in the response.

Reference

references/create-extended-events-session.sql is the starter session SQL the parent pastes when the user chooses to provide files later. This sub-skill never runs it. CREATE leaves the session stopped; the user reviews all values, replaces YourDatabase, and explicitly runs the commented STATE = START.

Install workload-insights in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

references/create-extended-events-session.sql

FAQ

What does the workload-insights skill do?

Builds SQL Server Discovery from Extended Events `.xel` files by running `scai assessment workload-insights --input <file>`. SQL Server only. Reads captures in place.

How do I install the workload-insights skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the workload-insights skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare workload-insights with