/selamy-skills:otel-emit-at-willfrom selamy-skills
Use when an agent needs to emit a telemetry value or event mid-reasoning without managing trace context. Route by signal type (metrics first, events, spans only when parentable) so an agent never orphans a span or has to thread context by hand.
Ships in selamy-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An agent often wants to record something while it works: a value it just computed, an occurrence it noticed. The trap is reaching for a span every time, because managing trace context (start, parent, end) from inside a reasoning step is error-prone and orphans spans, which pollute the trace and lose the parent relationship. The fix is to route by signal type so emitting is safe without threading context by hand. This complements agent-otel-trajectory (which emits per-tool-call spans from the harness); this skill is the at-will value/event path.
traceparent. Never orphan a span. If you cannot establish a parent, do not emit a span: record a metric or an event instead. An orphan span is worse than no span.event-sourcing (https://github.com/selamy-labs/agent-skills/tree/main/skills/event-sourcing).gen_ai attributes for agent/model signals so the data is portable and queryable, not bespoke keys.The agent records ad-hoc values as metrics and occurrences as events, reserves spans for parentable bounded operations, and never emits an orphan span. Signals reach the OTLP backend correctly attributed (gen_ai semconv), with no hand-threaded trace context in the agent's reasoning.
Sources: OpenTelemetry signal model (metrics vs logs/events vs traces); trace-context (traceparent) propagation; OpenTelemetry gen_ai semantic conventions.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selamy-labs/agent-skills --plugin selamy-skills111 skills in this plugin
/adaptive-estimationUse when tracking a slowly-varying latent quantity from noisy measurements with quantifiable uncertainty — a drifting metric, capacity, latency trend, or confidence. Prefer a Kalman-style adaptive estimator over fixed moving averages or static thresholds./adaptive-loop-budgetingUse when an autonomous loop needs explicit limits on attempts, time, cost, tool calls, verification depth, or risk, and a clear stop, continue, yield, or escalate decision./adopt-and-deleteUse when adopting a shared module, library, chart, or service, or doing any consolidation, migration, or refactor that supersedes existing code. The change that adds the replacement must REMOVE what it replaced, in the same atomic change.Other plugins' skills for the same job