Skip to content
Skill

Log and error bucketing

Groups log lines and error messages into a histogram of likely failure causes

Log and error bucketing is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
440
Last commit
License
MIT
Listing updated

Similar skills

About Log and error bucketing

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

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

What it can access

From a static check of its 1 file (6 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

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/mrmps/classifier-dev.git --path skills/log-and-error-bucketing

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Log and error bucketing 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.

More from mrmps/classifier-dev

  1. Sorts many texts into your own labels in one call, with a confidence per answer

    • Open source
    • 440 GitHub stars
    • Developer tools
  2. Lets a browser or desktop agent pick its next action from on-screen elements

    • Open source
    • 440 GitHub stars
    • Browser automation
  3. Gates user posts against a written content policy using per-category scores

    • Open source
    • 440 GitHub stars
    • Security
  4. Sorts each page of a multi-document intake packet by type before extraction

    • Open source
    • 440 GitHub stars
    • Files and documents
  5. Sorts a downloads folder into invoice, receipt and contract folders with an undo log

    • Open source
    • 440 GitHub stars
    • Files and documents