# Log and error bucketing

> Log and error bucketing is an open-source agent skill for developer tools. Groups log lines and error messages into a histogram of likely failure causes. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mrmps/classifier-dev/tree/main/skills/log-and-error-bucketing
- **Repository:** https://github.com/mrmps/classifier-dev
- **GitHub stars:** 440
- **License:** MIT
- **Skill name:** log-and-error-bucketing
- **Collection:** https://github.com/mrmps/classifier-dev
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill takes a large log dump or error table and reduces it to templates, so repeated lines are handled once rather than read one by one. Before anything leaves the machine, each template is redacted for credentials, emails, long hashes, card and SSN-like numbers, and long numeric IDs, and lines that are mostly placeholders afterwards are dropped.

The workflow then sends one redacted exemplar per template to an external classifier (classifier.dev, reached over HTTP or through a pinned npx CLI) against a set of cause labels such as timeouts, authentication, quota, bad input, upstream failure and unknown. Counts are weighted by group size to produce a histogram, and confidence thresholds decide which rows are filed, which are shown for review, and which stay in unknown.

The skill expects Python for the redaction and grouping snippets, an input file of ERROR and WARN lines, and network access to the classifier service. It also explains how to swap in a local or in-house classifier when logs cannot leave the organisation.

## When your agent uses it

> Turn a stream of log lines or error messages into a histogram of causes — timeouts, auth, quota, bad input, upstream, unknown — by deduplicating to templates, redacting, and classifying one exemplar each, so a million lines cost a few hundred calls. Use when an incident dump, CI log or error table is too big to read. Triggers on "what is failing here", "bucket these errors", "group these exceptions", "top causes".

## What it can access

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

- [Instructions only, no scripts](https://github.com/mrmps/classifier-dev/tree/HEAD/skills/log-and-error-bucketing)
- [License: MIT](https://github.com/mrmps/classifier-dev/tree/HEAD/skills/log-and-error-bucketing)

## Features

- **Template deduplication:** Collapses IPs, hex IDs, weekdays and numbers so repeated log shapes group together.
- **Redaction before sending:** Masks credentials, emails, card-like numbers, SSN-like values and long blobs before any text is sent.
- **Cause classification:** Labels one exemplar per template with a chosen set of failure-cause buckets and a confidence score.
- **Histogram of causes:** Weights each bucket by line count to show which causes dominate an incident.
- **Confidence gating:** Sets thresholds for filing, reviewing or leaving rows in an unknown bucket.
- **Label refinement guidance:** Explains how a large unknown bucket signals missing labels and how to add them.

## Good for

- Find out what is failing in a large incident log dump
- Bucket a CI log into the main causes of its errors
- Group a table of exceptions by likely cause
- Summarise the top causes behind a flood of error messages

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/log-and-error-bucketing` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/log-and-error-bucketing &&
cp -R "$tmp/skills/log-and-error-bucketing" ~/.claude/skills/log-and-error-bucketing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/log-and-error-bucketing` inside it instead.

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/log-and-error-bucketing &&
cp -R "$tmp/skills/log-and-error-bucketing" ~/.agents/skills/log-and-error-bucketing &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/log-and-error-bucketing` inside it instead.

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/log-and-error-bucketing &&
cp -R "$tmp/skills/log-and-error-bucketing" ~/.cursor/skills/log-and-error-bucketing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/log-and-error-bucketing` 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/mrmps/classifier-dev.git --path skills/log-and-error-bucketing
```

Or copy the folder to `~/.gemini/skills/log-and-error-bucketing` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/log-and-error-bucketing &&
cp -R "$tmp/skills/log-and-error-bucketing" ~/.copilot/skills/log-and-error-bucketing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/log-and-error-bucketing` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mrmps/classifier-dev.git
```

Then copy `classifier-dev/skills/log-and-error-bucketing` into your agent's skills folder as `log-and-error-bucketing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It uses Python snippets for redaction and grouping, an input of ERROR and WARN log lines, and HTTP access to classifier.dev or the classifier-dev CLI via npx.

### Does Log and error bucketing send my full logs anywhere?

No. The skill describes sending one redacted line per template, not the whole file, host names or surrounding context.

### Can Log and error bucketing be used when logs must stay private?

The skill says the workflow can be kept while the classifier is replaced with a self-hosted model or a local zero-shot model.

### Which log lines should not be bucketed this way?

The skill advises against it for logs that already carry error codes, for triage that can be read quickly, and for finding a single rare line.

### How do I install Log and error bucketing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/log-and-error-bucketing to use it in all your projects, or to .claude/skills/log-and-error-bucketing in one project.

### Does Log and error bucketing run scripts?

No. It is instructions only, with no 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 Log and error bucketing?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Log and error bucketing?

The closest alternatives to Log and error bucketing are Incident triage, Support ticket triage, Bulk classify, Debugging and error recovery and Gamedev log analyzer.

## Where this comes from

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

## Alternatives

- [Incident triage](https://ai-powered.com/skills/incident-triage): Incident triage is an open-source agent skill for developer tools.
- [Support ticket triage](https://ai-powered.com/skills/support-ticket-triage): Support ticket triage is an open-source agent skill for developer tools.
- [Bulk classify](https://ai-powered.com/skills/bulk-classify): Bulk classify is an open-source agent skill for developer tools.
- [Debugging and error recovery](https://ai-powered.com/skills/debugging-and-error-recovery): Debugging and error recovery is an open-source agent skill for developer tools.
- [Gamedev log analyzer](https://ai-powered.com/skills/gamedev-log-analyzer): Gamedev log analyzer is an open-source agent skill for developer tools.
- [AWS cloudwatch investigation](https://ai-powered.com/skills/aws-cloudwatch-investigation): AWS cloudwatch investigation is an open-source agent skill for cloud and infrastructure.
- [Review sessions](https://ai-powered.com/skills/review-sessions): Review sessions is an open-source agent skill for developer tools.
- [Correct](https://ai-powered.com/skills/correct): Correct is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/log-and-error-bucketing
