Diagnoses broken distributed traces across .NET, Node.js, Python, Java/Kotlin, and Go stacks. Finds missing spans, broken context propagation over HTTP/gRPC/messaging, orphaned traces, and sampling gaps.
Ships in AI for Developers Toolkit. 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.
Read when SKILL.md points to them.
Find where a distributed trace breaks - the missing span, the dropped context, the uninstrumented hop - and fix propagation so one request shows as one connected trace across services, whatever language each service is written in.
Works on a target: a project, multiple services, or a GitHub URL. Breaks happen at boundaries, so ask for (or scan) every service on the broken path, both the caller and the callee.
| Manifest | Stack | Grep for |
|---|---|---|
*.csproj | .NET | ActivitySource|AddSource|StartActivity|Propagator|AddOpenTelemetry|WithTracing |
package.json | Node / TS | @opentelemetry/|startActiveSpan|propagation\.\(inject|extract\)|NodeSDK |
pyproject.toml, requirements*.txt | Python | opentelemetry|start_as_current_span|propagate import|opentelemetry-instrument |
pom.xml, build.gradle(.kts) | Java / Kotlin | javaagent|opentelemetry|@WithSpan|getTextMapPropagator|micrometer-tracing |
go.mod | Go | otel.Tracer|SetTextMapPropagator|otelhttp|otelgrpc|context.Background() |
opentelemetry-setup.StartActivity returns null until AddSource("name"). Node: SDK started after express/http were imported, so they were never patched. Python: app started without opentelemetry-instrument or SDK configured after the framework app object is created.otel.SetTextMapPropagator(propagation.TraceContext{}...) nothing is injected or extracted. Mixed systems: one side speaks W3C traceparent, the other only B3 or a vendor header - configure a composite propagator.traceparent. .NET's HttpClient instrumentation covers every HttpClient; the usual culprits are a plain http.Client without otelhttp.NewTransport in Go, an HTTP library the Node/Python auto-instrumentation doesn't cover, a non-standard header, or a gateway/proxy stripping headers. Check that the outbound request actually carries the header.Activity.Current not flowing into a custom thread or a fire-and-forget Task.Run started outside the request. Java: work submitted to a non-instrumented executor or a reactive chain without context propagation. Python: ThreadPoolExecutor/threads don't carry contextvars unless you copy the context. Node: callback-based libraries escaping the async context. Go: passing context.Background() (or no ctx) instead of the request ctx.unknown_service or a duplicated name, so the trace looks broken in the UI.// .NET - publish
var props = new Dictionary<string,string>();
Propagators.DefaultTextMapPropagator.Inject(
new PropagationContext(activity.Context, Baggage.Current), props, (c,k,v) => c[k]=v);
// .NET - consume
var parent = Propagators.DefaultTextMapPropagator.Extract(default, props,
(c,k) => c.TryGetValue(k, out var v) ? new[] { v } : Enumerable.Empty<string>());
using var act = source.StartActivity("orders process", ActivityKind.Consumer, parent.ActivityContext);
// Node - publish / consume
import { context, propagation, trace, SpanKind } from '@opentelemetry/api';
const headers: Record<string, string> = {};
propagation.inject(context.active(), headers);
// consumer:
const parentCtx = propagation.extract(context.active(), msg.headers);
tracer.startActiveSpan('orders process', { kind: SpanKind.CONSUMER }, parentCtx, (span) => { /* ... */ span.end(); });
# Python - publish / consume
from opentelemetry.propagate import inject, extract
from opentelemetry.trace import SpanKind
headers = {}
inject(headers)
# consumer:
ctx = extract(message.headers)
with tracer.start_as_current_span("orders process", context=ctx, kind=SpanKind.CONSUMER):
...
// Java - publish / consume (the Java agent already does this for common Kafka/JMS/RabbitMQ clients)
TextMapPropagator p = GlobalOpenTelemetry.getPropagators().getTextMapPropagator();
p.inject(Context.current(), headers, (carrier, key, value) -> carrier.put(key, value));
// consumer:
Context parent = p.extract(Context.current(), headers, getter); // TextMapGetter over your header map
Span span = tracer.spanBuilder("orders process").setParent(parent).setSpanKind(SpanKind.CONSUMER).startSpan();
// Go - publish / consume
otel.GetTextMapPropagator().Inject(ctx, propagation.MapCarrier(headers))
// consumer:
ctx := otel.GetTextMapPropagator().Extract(context.Background(), propagation.MapCarrier(headers))
ctx, span := tracer.Start(ctx, "orders process", trace.WithSpanKind(trace.SpanKindConsumer))
defer span.End()
For batch consumers, prefer span links to each message's context over picking one arbitrary parent.
| Stack | Symptom | Fix |
|---|---|---|
| .NET | spans from background work are orphaned | start work while Activity.Current is set, or pass ActivityContext and use it as the explicit parent |
| Node | context lost in callback-style libs | use promise APIs, or context.with(ctx, fn) / context.bind(ctx, fn) |
| Python | thread pool work has no parent | contextvars.copy_context().run(fn) per task, or the OTel threading instrumentation |
| Java | executor/reactive work has no parent | instrumented executors (agent), Context.current().wrap(runnable), Reactor context propagation |
| Go | new root traces mid-request | pass the request ctx everywhere; never context.Background() inside a request |
## Trace path
<service A (stack) -> hop -> service B (stack) -> ...>
## Breaks found
1. [Propagation | Registration | Messaging | Async | Sampling | Flush] <service/file:line> - <what breaks> -> <fix>
## Fixes
<code per affected service>
## Verify
<what to look for in the tracing UI>
"My traces don't connect across services", "spans from my code don't show up", "trace context is lost over Kafka/RabbitMQ/NATS", "my Go service starts a new trace for every call", "why is this trace orphaned". Pairs with opentelemetry-setup and correlation-id-middleware.
What SKILL.md sets; muted values are Claude Code's defaults
/ai-dev-toolkit:distributed-tracing-diagnosticsfrom AI for Developers Toolkit
npx claudepluginhub stefanthecode/ai-for-developers --plugin ai-dev-toolkit45 skills in this plugin
/api-endpoint-scaffolderScaffold HTTP API endpoints in any stack - ASP.NET Core Minimal APIs or controllers, Express, Fastify, NestJS, FastAPI, Django REST Framework, Spring Boot controllers, Go net/http, chi, Gin - one feature per endpoint (REPR style) with request validation, typed responses, route grouping, auth, and OpenAPI metadata. Use this skill whenever the user wants to add an endpoint or route, convert controllers to minimal APIs, structure routes or routers, set up endpoint groups, TypedResults, route handlers, request DTOs/schemas (zod, Pydantic, Bean Validation, binding tags), or asks "how do I add an endpoint / structure my API routes". Always use this skill for endpoint scaffolding; it generates a complete, validated endpoint that matches the project's conventions./architecture-test-generatorGenerate architecture tests / fitness functions that fail the build when architectural rules are violated - layer dependencies, module boundaries, cycles, naming, and visibility conventions - in any stack: NetArchTest or ArchUnitNET (.NET), ArchUnit or Konsist (Java/Kotlin), dependency-cruiser or eslint-plugin-boundaries (TypeScript/JavaScript), import-linter (Python), go-arch-lint or depguard (Go). Use this skill whenever the user wants architecture tests, to enforce layering or the dependency rule, dependency rules as tests, import rules, forbidden imports, no circular dependencies, naming conventions, fitness functions, or asks "how do I stop people breaking the architecture / enforce my layers / keep modules from importing each other". Always use this skill for architecture-test requests; it generates rules matching the project's real structure./async-await-auditorAudit async and concurrent code in any language for correctness and performance bugs - C#/.NET (async/await, Task), JavaScript/TypeScript (Promises, async/await), Python (asyncio), Java/Kotlin (CompletableFuture, virtual threads, coroutines), Go (goroutines, channels, context), Rust (tokio/async). Use this skill whenever the user shares async or concurrent code, or asks about deadlocks, hangs, blocking calls, .Result/.Wait(), async void, ConfigureAwait, floating or unhandled promises, await in a loop vs Promise.all, blocking the event loop, forgotten await, asyncio.gather/TaskGroup, CompletableFuture.join, virtual thread pinning, goroutine leaks, context cancellation, WaitGroup/errgroup, holding a lock across .await, fire-and-forget tasks, cancellation tokens, or "why does my async code hang". Always use this skill for async/concurrency reviews instead of answering from memory; it applies a fixed checklist and rewrites the code./authorization-setupDesign API authorization in any stack - policy-based, role-based, claims/permission-based, and resource-based (ownership) checks. Covers ASP.NET Core policies and AuthorizationHandler, NestJS guards, Express middleware and CASL, FastAPI dependencies/scopes, Django and DRF permission classes, Spring Security (@PreAuthorize, SecurityFilterChain), Go middleware, and Casbin/OPA. Use this skill whenever the user wants authorization policies, role/claim/permission checks, RBAC/ABAC, custom authorization rules, resource-based authorization, IDOR protection, "deny by default", or asks "how do I authorize this / policy vs role / restrict this endpoint to X / stop users seeing other users' data". Always use this skill for authorization requests; it generates policies, handlers, and endpoint wiring./benchmark-setupSet up correct micro-benchmarks in any stack and interpret the results - BenchmarkDotNet (.NET), JMH (Java/Kotlin), pytest-benchmark / pyperf (Python), Vitest bench / tinybench / mitata (JavaScript/TypeScript), Go testing.B + benchstat, Rust criterion. Use this skill whenever the user wants to benchmark code, measure performance, compare two implementations or functions, set up a benchmark harness, or asks "which is faster", "benchmark these two functions", "how do I benchmark this", "is this optimization worth it", or "interpret these benchmark results". Always use this skill for micro-benchmarking requests; it writes correct benchmarks, avoids the classic pitfalls, and explains the numbers./caching-strategy-setupAdd the right caching to an app in any stack - in-process, distributed (Redis/Valkey/Memcached), two-level, or HTTP/output caching - with correct keys, expiration, stampede protection, and invalidation. Covers HybridCache / IMemoryCache / IDistributedCache / output caching in .NET, lru-cache / keyv / cache-manager / ioredis in Node, functools / cachetools / redis-py / Django cache in Python, Spring Cache with Caffeine or Redis in Java/Kotlin, and ristretto / groupcache / singleflight / go-redis in Go. Use this skill whenever the user wants caching, to cache a query/response, Redis caching, @Cacheable, lru_cache, HybridCache, cache-aside, output caching, or asks "how do I cache this / add caching / avoid cache stampede / invalidate this cache". Always use this skill for caching requests; it picks the right layer and wires expiration + invalidation correctly.Other plugins' skills for the same job