/observability:analyze-tracesfrom observability
Parse and interpret trace logs from a running system to diagnose latency, errors, and bottlenecks. Use this skill when asked to "analyze these logs", "find the bottleneck", "debug this trace", or "interpret these spans".
Ships in observability. 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.
Parse structured trace logs or span data and produce a diagnostic report.
Read the trace input and identify its format:
trace_id, span_id, parent_span_idtimestamp, level, eventExtract a list of spans. For each span, record:
span_id, parent_span_id, component (service/function name)start_time, end_time, duration_msstatus (OK / ERROR), error_message if presentBuild a tree of spans using parent_span_id links. Print the tree to show call nesting:
[root] process_request 200ms OK
[1] validate_input 5ms OK
[2] fetch_context 80ms OK
[2a] cache_lookup 2ms MISS
[2b] api_fetch 78ms OK
[3] call_llm 110ms OK
[4] format_response 5ms OK
Identify the critical path — the chain of spans with no parallelism that determines total latency.
Sort spans by duration_ms descending. Flag any span that:
Report hotspots with:
Scan for spans with status=ERROR or log records with level=ERROR or level=CRITICAL:
If multiple trace samples are provided:
Produce a Markdown report:
## Trace Analysis Report
**Traces analyzed**: <count>
**Time range**: <start> to <end>
**Total duration (median)**: <Xms>
### Critical Path
<tree diagram>
### Top Latency Hotspots
| Rank | Component | Avg Duration | % of Total | On Critical Path |
|------|-----------|-------------|------------|-----------------|
| 1 | call_llm | 110ms | 55% | YES |
### Errors Detected
| Component | Count | Message (sample) |
|-----------|-------|-----------------|
| api_fetch | 3 | timeout after 5s |
### Recommendations
1. <highest impact action>
2. <second action>
3. <third action>
Based on gaps found during analysis, list any spans or log points that are missing
and would improve future diagnosis. Use /instrument-code to add them.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ats-kinoshita-iso/agent-workshop --plugin observability3 skills in this plugin
/instrument-codeAdd structured log points and trace spans to existing code. Use this skill when asked to "instrument this function", "add logging to this module", "add tracing to this pipeline", or "make this code observable"./trace-planDesign a logging and tracing strategy for a system or agent pipeline. Use this skill when asked to "add observability", "design a logging strategy", "plan how to trace this system", or "what should I log in this agent".Other plugins' skills for the same job