s3onghyun

Otelcol Doctor — Development skill for Claude Code

Development community

A Claude Code skill that writes, fixes, and validates OpenTelemetry Collector configs — processor order, core-vs-contrib, pull-vs-push exporters, the works.

How to install Otelcol Doctor

This entry records only its repository, not the path inside it, so there is no exact command to give. Open s3onghyun/otelcol-doctor and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Otelcol Doctor does

A Claude Code skill that writes, fixes, and validates OpenTelemetry Collector configs — processor order, core-vs-contrib, pull-vs-push exporters, the works.

Alternatives in Development

  • Contributing To Claude Code Configs — Thank you for your interest in contributing to Claude Code Configs 625 ★
  • Explore Idea — Collaborative exploration and brainstorming for new project ideas 88 ★
  • Wp Acf Review — WordPress ACF and content modeling review - validates field-group architecture, CPT and taxonomy decisions, re 76 ★

README

otelcol-doctor

**A Claude Code / Codex / Cursor skill that writes, fixes, and validates OpenTelemetry Collector configs — and gets the sharp edges right.**

The OpenTelemetry Collector is five concepts and a hundred footguns: processor order that silently matters, components that only exist in the *contrib* build, pull-vs-push metric exporters, pipelines that validate fine and do absolutely nothing because nobody wired them. `otelcol-doctor` teaches your AI agent those edges so the YAML it hands you actually starts and actually delivers data.

Plain English in → a correct, commented, **validated** `otelcol` config out. Or paste a broken config → a diagnosis (*what's wrong → why → the fix*) and the repaired version.


Why this exists

Every LLM will happily generate an OpenTelemetry Collector config. Most of them are subtly wrong in ways that cost you an afternoon:

  • batch placed before memory_limiter (so the limiter can't shed load)
  • a prometheus exporter when you meant prometheusremotewrite (pull vs push)
  • the removed logging exporter, or the deprecated loki exporter
  • a prometheus receiver on the core image (crash — it's contrib-only)
  • a receiver defined but never referenced in a pipeline (valid YAML, zero data)

This skill encodes those exact failure modes as a checklist the agent runs every time, then validates the result with `otelcol validate` before declaring done.

Demo

**In:** *"Collector that takes OTLP from my apps, scrapes Prometheus targets, sends traces to Tempo and metrics to Mimir."*

**Out:** a config with `memory_limiter` first, `batch` last, `otlp` → Tempo, `prometheusremotewrite` → Mimir, `health_check` wired into `service.extensions`, env-var endpoints, and a note that it needs the **contrib** image — then:

$ scripts/validate.sh config.yaml
→ otelcol-contrib validate
# (exit 0)

See [`examples/broken-config.yaml`](examples/broken-config.yaml) → [`examples/fixed-config.yaml`](examples/fixed-config.