# Error sweep

> Error sweep is an open-source agent skill for developer tools. Lists error spans and log errors for a time window as a numbered table. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/whitebeardit/claude-plugins/tree/main/sherlock-holmes/skills/error-sweep
- **Repository:** https://github.com/whitebeardit/claude-plugins
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** error-sweep
- **Collection:** https://github.com/whitebeardit/claude-plugins
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/whitebeardit/claude-plugins/tree/HEAD/sherlock-holmes/skills/error-sweep)
- [Asks for: Bash(python3 *sweep-errors.py*), Bash(python3 *collect-trace.py*), Bash(python3 *trace-diagram.py*), Bash(python3 *window-map.py*), Read, Bash(python *sweep-errors.py*), Bash(py -3 *sweep-errors.py*), Bash(python *collect-trace.py*)…](https://github.com/whitebeardit/claude-plugins/blob/HEAD/sherlock-holmes/skills/error-sweep/SKILL.md)
- [No network calls found in its scripts](https://github.com/whitebeardit/claude-plugins/tree/HEAD/sherlock-holmes/skills/error-sweep)
- [License: MIT](https://github.com/whitebeardit/claude-plugins/tree/HEAD/sherlock-holmes/skills/error-sweep)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Trace diagram](https://ai-powered.com/skills/trace-diagram): Trace diagram is an open-source agent skill for developer tools.
- [Trace debug](https://ai-powered.com/skills/trace-debug): Trace debug is an open-source agent skill for developer tools.
- [Setup](https://ai-powered.com/skills/setup-whitebeardit): Setup is an open-source agent skill for developer tools.
- [Trace debugging](https://ai-powered.com/skills/trace-debugging): Trace debugging is an open-source agent skill for developer tools.
- [Otel tracing](https://ai-powered.com/skills/otel-tracing-ajyadav013-2): Otel tracing is an open-source agent skill for developer tools.
- [Incident triage](https://ai-powered.com/skills/incident-triage): Incident triage is an open-source agent skill for developer tools.
- [Arize trace](https://ai-powered.com/skills/arize-trace): Arize trace is an open-source agent skill for ai models and llm tooling.
- [Log and error bucketing](https://ai-powered.com/skills/log-and-error-bucketing): Log and error bucketing is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/error-sweep
