Skip to content
Skill

Error sweep

Lists error spans and log errors for a time window as a numbered table

Error sweep is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
Python
Platforms
Claude Code
GitHub stars
13
Last commit
License
MIT
Listing updated

Similar skills

About Error sweep

Error sweep answers whether anything failed in a given period, without needing a trace id. It queries Grafana Tempo for spans with error status and Grafana Loki for error log lines, groups the log lines by a masked message signature, and prints the result as a fixed, numbered table with a footer noting what the data cannot show.

The skill runs a bundled Python script rather than letting the model judge severity or cause. From the table, the user can ask for a sequence diagram of an example trace, a diagram of every call in the window's error traces, or a full investigation through the companion trace-debug skill. The script is read-only, and the bundled demo fixtures can be run offline.

It expects Grafana with Tempo and Loki datasources configured through the plugin's setup, plus Python 3.8 or newer on the path. Users give a window such as the last two hours or an explicit start and end time, optionally narrowed to one service.

When your agent uses it

List the errors of a time window - without a trace id - as a fixed, numbered table of facts from Grafana Tempo (spans with error status) and Grafana Loki (error lines grouped by a masked message signature), then let the user choose what to see - the sequence diagram of an example trace, or a full investigation with trace-debug. Use when the user asks whether there were errors in a period ("any errors in the last 2 hours?", "what failed in payment-service yesterday afternoon?", "sweep the logs for errors"). Deterministic - no model judges severity or cause. Read-only. The table is the answer - show it to the user exactly as printed, in full, without summarizing, reordering or commenting on it.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

Install

This skill ships in the sherlock-holmes plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add whitebeardit/claude-plugins
/plugin install sherlock-holmes@whitebeard-plugins

Or copy only this skill to ~/.claude/skills/error-sweep:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/whitebeardit/claude-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/error-sweep &&
cp -R "$tmp/sherlock-holmes/skills/error-sweep" ~/.claude/skills/error-sweep &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/error-sweep inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/error-sweep to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/whitebeardit/claude-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/error-sweep &&
cp -R "$tmp/sherlock-holmes/skills/error-sweep" ~/.agents/skills/error-sweep &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/error-sweep inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/error-sweep to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/whitebeardit/claude-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/error-sweep &&
cp -R "$tmp/sherlock-holmes/skills/error-sweep" ~/.cursor/skills/error-sweep &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/error-sweep inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/whitebeardit/claude-plugins.git --path sherlock-holmes/skills/error-sweep

Or copy the folder to ~/.gemini/skills/error-sweep yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/error-sweep:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/whitebeardit/claude-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/error-sweep &&
cp -R "$tmp/sherlock-holmes/skills/error-sweep" ~/.copilot/skills/error-sweep &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/error-sweep inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/whitebeardit/claude-plugins.git

Then copy claude-plugins/sherlock-holmes/skills/error-sweep into your agent's skills folder as error-sweep. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Numbered error table
Errors from traces and logs are listed as fixed, numbered rows in an order set by the script.
Log signature grouping
Error log lines are grouped by a masked message pattern so similar messages appear together.
Example trace diagrams
A row can be turned into a sequence diagram of one of its example traces.
Window-wide call map
All calls in the window's error traces can be drawn as one sequence diagram.
Offline demo fixtures
Recorded scenarios let the sweep run without a live Grafana connection.
Read-only operation
The script only queries data and does not change any system.

Good for

  • Check whether any errors occurred in the last two hours
  • See what failed in a specific service yesterday afternoon
  • Group recent error logs by message pattern
  • Draw the call sequence of an example failing trace
  • Run a full investigation of one error group

Error sweep FAQ

What does the skill need to run?

Grafana access with Tempo and Loki datasources configured through setup, and Python 3.8 or newer. Without access, a doctor command reports the configuration problem.

Does Error sweep change anything in my systems?

No. It is described as read-only and only queries Tempo and Loki.

What window does Error sweep use if none is given?

It uses the last two hours and states that choice.

Can I try Error sweep without a Grafana connection?

Yes. Three recorded fixture scenarios can be passed with a fixture directory, and the sweep runs against them.

How do I install Error sweep in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/error-sweep to use it in all your projects, or to .claude/skills/error-sweep in one project. Or install the sherlock-holmes plugin, which includes it: /plugin marketplace add whitebeardit/claude-plugins, then /plugin install sherlock-holmes@whitebeard-plugins.

Does Error sweep run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Error sweep?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Error sweep?

The closest alternatives to Error sweep are Trace diagram, Trace debug, Setup, Trace debugging and Otel tracing.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from whitebeardit/claude-plugins

  1. Read-only AWS cost audit that produces an HTML report and a phased cuts plan

    • Open source
    • 13 GitHub stars
    • Cloud and infrastructure
  2. Maps an AWS bill into fixed cost categories with the biggest lines, read-only

    • Open source
    • 13 GitHub stars
    • Cloud and infrastructure
  3. Checks that your machine and AWS accounts are ready for a cost audit

    • Open source
    • 13 GitHub stars
    • Cloud and infrastructure
  4. Finds idle AWS resources such as unused NAT gateways, volumes and IPs, with evidence

    • Open source
    • 13 GitHub stars
    • Cloud and infrastructure
  5. Guides first-run setup of Sherlock Holmes Grafana Loki and Tempo access

    • Open source
    • 13 GitHub stars
    • Developer tools
  6. Investigates a production incident from a trace ID using Loki logs and Tempo traces

    • Open source
    • 13 GitHub stars
    • Developer tools