Back to list
nexus-labs-automation

error-handling

by nexus-labs-automation

Claude Code plugin for backend observability - tracing, metrics, logging for Go, Python, Node.js, Java, Rust, and .NET

0🍴 0📅 Dec 26, 2025

SKILL.md


name: error-handling description: "Capture errors with rich context for debugging and alerting" triggers:

  • "error tracking"
  • "exception monitoring"
  • "error context"
  • "structured errors" priority: 1

Error Handling

An error without context is useless. Every error should answer: What, Where, Who, When, Why.

Required Attributes

AttributeExampleRequired
error.typeValidationError, TimeoutErrorYes
error.message"Invalid email format"Yes
exception.stacktraceFull stack traceYes
job.namecheckout, signupRecommended
job.steppayment, validationRecommended

Error Classification

LevelStatusAction
Critical500Page immediately
Error500Alert, investigate
Warning4xxTrack, batch review
Info-Log only

Structured Error Type

AppError {
  Type       string   // "validation", "timeout"
  Message    string   // Human-readable
  Code       string   // For grouping
  Retryable  bool     // Can retry?
  Context    map      // Additional context
}

Capture Pattern

On error:
  → Record error on span with error.type, job.name, job.step
  → Set span status to Error
  → Log structured error with trace_id
  → Increment error counter by type/job/step

Fingerprinting

Group by: error type + message (without dynamic data) + top stack frames

Strip from fingerprints: user IDs, request IDs, timestamps, tokens

Anti-Patterns

  • Swallowing errors → Log before returning default
  • Missing context → Add job.name, job.step, retry.count
  • PII in messages → Use structured attributes, not interpolation
  • No retry context → Include attempt count and will_retry

References

  • references/methodology/jtbd-for-backend.md
  • references/anti-patterns.md

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon