agentleFS
BostonOrangeBostonOrange/claude-code-framework/skills/error-analyze/SKILL.md

error-analyze

Skill2 starsChanged 6 months agoMITView on GitHub

Triage production errors from your monitoring system. Queries new errors, groups patterns, analyzes root cause with codebase context, and lets developer create tickets or dismiss. Supports unattended CI mode.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When --ci flag is present, runs fully automated:

    line 106
  2. Distinctive:

    Before creating a ticket, query tracker for existing open bugs with same source.

    line 119
  3. Distinctive:

    If found → add comment to existing ticket

    line 120
  4. Distinctive:

    If not found → create new bug

    line 121

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Error Analyze

Triage errors from your monitoring/error tracking system. Analyze with codebase context, then create tickets or dismiss.

Usage

Interactive (developer-driven)

/error-analyze
/error-analyze --type integration
/error-analyze --since 24h

CI / Unattended

/error-analyze --ci --env prod --since 24h

CI mode runs fully automated — tickets are auto-created. See CI section below.

Phase 1: Query Errors

{{ERROR_QUERY_COMMAND}}

Parse the output to extract:

  • Error ID
  • Error message
  • Error type/category
  • Source component
  • Stack trace
  • Timestamp
  • Affected user (if available)

Phase 2: Group & Summarize

Group errors by source + type. Present triage summary:

## Error Triage Summary

Found {N} new errors across {M} sources.

| # | Source | Type | Count | Latest | Sample Error |
|---|--------|------|-------|--------|-------------|
| 1 | ComponentA | Runtime | 23 | 2026-03-05 14:30 | NullPointerException... |
| 2 | IntegrationB | HTTP | 5 | 2026-03-05 12:15 | Timeout... |

Phase 3: Analyze Each Group

For each group:

  1. Find source component in codebase
  2. Read the code around the error location
  3. Analyze root cause
  4. Suggest fix
### Group 1: ComponentA (Runtime) — 23 errors

**Pattern:** All errors are NullPointerException on record access
**Root Cause:** Missing null check before accessing optional field
**Suggested Fix:** Add null guard before field access
**Severity:** High — blocking core workflow

Phase 4: Triage Decisions

For each group:

  • Create ticket → draft work item with analysis context
  • Dismiss → mark as resolved with reason
  • Skip → leave as new

Action: Create Ticket

{{TRACKER_CREATE_BUG}}

Update error records: {{ERROR_UPDATE_STATUS}}

Action: Dismiss

{{ERROR_DISMISS}}

Phase 5: Summary

## Triage Complete

| Group | Action | Result |
|-------|--------|--------|
| ComponentA | Ticket created | TICKET-1600 |
| IntegrationB | Dismissed | Transient timeout |

Remaining new errors: {count}

CI / Unattended Mode

When --ci flag is present, runs fully automated:

AspectInteractiveCI Mode
Environment selectionAsk userRequired via --env flag
Triage decisionsDeveloper picksAuto-create ticket for all groups
Work item typeStoryBug
Confirmation promptsYesNone
Duplicate detectionN/ACheck tracker for existing open bugs
Error status updatePer choiceAll → In Progress

Duplicate Detection

Before creating a ticket, query tracker for existing open bugs with same source.

  • If found → add comment to existing ticket
  • If not found → create new bug

Severity Mapping

SeverityCriteria
CriticalIntegration failures blocking operations, data loss risk, >50 occurrences
HighRecurring (10+), user-facing failures, affects core workflows
MediumIntermittent (<10), workaround exists, non-blocking
LowSingle occurrence, cosmetic, edge case

Related Skills

  • /develop — develop a ticket created from error triage
  • /refine-story — further refine an error-based ticket

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.