error-handler

error-handler is a skill for Claude Code from EliasOulkadi/shokunin. It costs 125 tokens per session (3,768 once invoked), scanned A, original, MIT.

An assistant for handling application errors and monitoring services with logs, metrics, and traces. OpenTelemetry is a standard toolkit for recording these signals so a request can be followed across services.

In plain words
What is it for?
Use it to add OpenTelemetry instrumentation, classify errors, implement retries with jitter, timeouts, circuit breakers, and bulkheads, and define service-level objectives and error-budget alerts.
Why use it?
It helps explain what went wrong, where a failure occurred, and how serious it is. It also provides patterns for retrying temporary failures and deciding when production problems need an alert.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument; mentions OpenCode.

Good fit Use it to add OpenTelemetry instrumentation, classify errors, implement retries with jitter, timeouts, circuit breakers, and bulkheads, and define service-level objectives and error-budget alerts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eliasoulkadi/shokunin/error-handler
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add EliasOulkadi/shokunin --skill error-handler
Clone the repo
git clone --depth 1 https://github.com/EliasOulkadi/shokunin

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for error-handler

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/error-handler/github.svg)](https://agentmods.dev/skills/eliasoulkadi/shokunin/error-handler)
Your own site
<a href="https://agentmods.dev/skills/eliasoulkadi/shokunin/error-handler"><img src="https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/error-handler/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for error-handler

Your own site · 80×15
<a href="https://agentmods.dev/skills/eliasoulkadi/shokunin/error-handler"><img src="https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/error-handler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,768 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 257
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00125 $0.03768
Opus 5.5 $0.00050 $0.01507
Sonnet 5.5 $0.00025 $0.00754
Haiku 4.5 $0.00013 $0.00377

Measured 1mo ago against content hash 36d7f7a59251, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

error-handler scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (assets/error-middleware.template.ts, scripts/setup-opentelemetry.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| OpenTelemetry SDK not exporting traces | Exporter endpoint unreachable or `OTEL_EXPORTER_OTLP_ENDPOINT` not set | Verify endpoint with `curl $OTEL_EXPORTER_OTLP_ENDPOINT/v1/traces`. Set env var before SDK initializatio
.pack/skills/error-handler/SKILL.md · 378 lines

How it starts

The opening of the file, as written. The whole thing — 378 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Error Handler

Observability that makes debugging fast and production predictable. Based on Google SRE (Site Reliability Engineering), OpenTelemetry semantic conventions, and production patterns from Sentry, Honeycomb, and Datadog.

Sub-Commands

Command Description
setup Set up OpenTelemetry SDK + instrumentation for a service
classify Classify errors by HTTP status, severity, and alert priority
recover Implement recovery patterns: retry with jitter, circuit breaker, timeout
slo Define error budget, SLO, and burn rate alerts
audit Audit existing error handling against best practices

The 3 Signals (OpenTelemetry)

Signal Purpose Example
Traces Follow a request across services User request ? API Gateway ? Auth ? DB
Metrics Aggregate measurements over time Request count, error rate, latency p50/p95/p99
Logs Discrete events with context "User login failed: invalid credentials for user_abc123"

All three signals share trace_id + span_id for correlation.

Workflow

Step 1: Classify errors

Category HTTP Severity Log level SLO impact Alert?
Validation (user error) 400 Low info No No
Authentication 401 Medium warn No Only if spike detected
Authorization 403 Medium warn No Only if spike detected
Not Found 404 Low debug No No
Conflict 409 Medium info No No
Rate Limit 429 Low warn No No
Internal 500 High error Yes Yes
Downstream failure 502/503 High error Yes Yes
Timeout 504 High error Yes Yes

Step 2: Set up OpenTelemetry (exact configuration)

import { NodeSDK } from '@opentelemetry/sdk-node'
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http'
import { Resource } from '@opentelemetry/resources'
import { ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions'

const sdk = new NodeSDK({
  resource: new Resource({
    [ATTR_SERVICE_NAME]: 'api-service',
    'deployment.environment': process.env.NODE_ENV,
  }),
  traceExporter: new OTLPTraceExporter({
    url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,
  }),
  instrumentations: [
    new HttpInstrumentation(),
    new ExpressInstrumentation(),
    new PgInstrumentation(),
    new RedisInstrumentation(),
  ],
})

sdk.start()

process.on('SIGTERM', async () => {
  await sdk.shutdown()
})

Read the full file on GitHub · 378 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 378 lines · 125 tokens per session scan A 36d7f7a59251

Subscribe to this mod's changes

error-handler is a skill published in the GitHub repository EliasOulkadi/shokunin (113 stars, last pushed 15d ago), licensed MIT. It adds 125 tokens to every session and 3,768 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

search-mesh

This skill should be used when searching a codebase for one or more keywords across many files, validating whether a match sits inside a specific syntax node (function, class, struct, interface, enum), extracting the smallest syntax-bounded code block around a match instead of reading a whole file, or making a precise…

jamestkelly/search-mesh · 107 tokens

chrome-devtools

Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to --slim mode (MCP configuration).

ChromeDevTools/chrome-devtools-mcp · 55 tokens

n8n-error-handling

Wire n8n error handling so failures are loud, structured, and recoverable. Use when building any webhook/API workflow, a scheduled or unattended workflow, or any path where a silent failure would drop user-visible work — and whenever the user mentions error handling, onError, continueErrorOutput, error…

czlonkowski/n8n-mcp · 128 tokens

agentcore-investigation

Investigate Bedrock AgentCore runtime sessions via CloudWatch Logs Insights — resolve session/trace IDs, query OTEL spans, filter noise, build timelines. Use when debugging AgentCore agent sessions, tracing tool calls, or analyzing latency.

awslabs/mcp · 52 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

memory-leak-debugging

Diagnoses and resolves memory leaks in JavaScript/Node.js applications. Use when a user reports high memory usage, OOM errors, or wants to capture, compare, or inspect heap snapshots with Chrome DevTools MCP memory tools.

ChromeDevTools/chrome-devtools-mcp · 52 tokens