/observability:trace-planfrom observability
Design 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".
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.
Design a structured logging and distributed tracing strategy for the given system.
Read the system description and identify:
Select the appropriate logging approach based on system type:
| System type | Recommended strategy |
|---|---|
| Single-process agent | Structured JSON logs to stdout/file |
| Multi-service pipeline | Distributed tracing (OpenTelemetry spans) |
| Long-running daemon | Rotating file logs + health-check endpoint |
| Serverless / ephemeral | Centralized log aggregation (CloudWatch, Datadog) |
For each component identified in Step 1, define a trace span:
Span: <component name>
Parent: <parent span or "root">
Attributes to capture:
- <key>: <description of value>
- <key>: <description of value>
Events to record: <list of significant moments within this span>
Error conditions: <what constitutes a failed span>
Establish a consistent log-level policy:
Create a JSON schema for log entries to enable downstream filtering and aggregation:
{
"timestamp": "<ISO 8601>",
"level": "<DEBUG|INFO|WARNING|ERROR|CRITICAL>",
"component": "<span/service name>",
"trace_id": "<UUID shared across a full request>",
"span_id": "<UUID for this component's span>",
"event": "<short machine-readable event name>",
"message": "<human-readable description>",
"attributes": {}
}
Prioritize instrumentation by impact:
Produce a Markdown document listing:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ats-kinoshita-iso/agent-workshop --plugin observability3 skills in this plugin
/analyze-tracesParse 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"./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".Other plugins' skills for the same job