/enterprise-software-playbook:observabilityfrom enterprise-software-playbook
Adds or changes observability instrumentation: structured logging, OpenTelemetry traces/spans, RED metrics, dashboards, and alerts. Use when instrumenting code or defining telemetry field contracts.
Ships in enterprise-software-playbook. 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.
Make observability consistent and actionable: every boundary emits traces, metrics, and structured logs that correlate via IDs and stable fields.
This is intentionally opinionated: you should be able to answer “what happened?” with log → trace → metrics within a minute.
Inputs: Boundary code to instrument; service name; existing instrumentation (if any); correlation IDs in use.
Outputs: Instrumented code (traces, metrics, structured logs); field contract (stable keys); verification commands. Consumed by debug (for triage) and finish (for spot-check).
traceId; trace contains downstream spans; metrics show error rate).When context or time is constrained, these are the load-bearing steps:
traceId for log → trace linkage.Steps that can be cut under pressure: measurement ladder (step 3), domain-specific metrics, operating ritual (step 8).
Start with the user-impact boundaries:
Include these keys where applicable:
service: stable service/app identifierenv: environment (local/dev/staging/prod)traceId, spanId: correlation IDs (when tracing exists)requestId: if you use a separate request ID (often equals traceId)op: operation name (route template, RPC method, job name)userId / actorId: only if policy allows; never as a metric labeldurationMs: for timing logs (prefer metrics for aggregates)err: structured error (type/code, message, stack for unknown failures)HTTP GET /api/foo, grpc PlayerService/GetProfile, redis GET gateway:...).userId, no unbounded IDs); use logs/traces for per-entity detail.If you use OpenTelemetry, you can enrich logs with the active span context:
import { context, trace } from '@opentelemetry/api';
export function getTraceLogFields(): { traceId?: string; spanId?: string } {
const span = trace.getSpan(context.active());
if (!span) return {};
const { traceId, spanId } = span.spanContext();
return { traceId, spanId };
}
traceIdreferences/checklists.mdreferences/snippets/typescript.mdApplication metrics, Log aggregation, Distributed tracing, Health Check API, Audit logging, Exception tracking, Log deployments and changestestingtypescriptWhen applying this skill, return:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub bricerising/enterprise-software-playbook --plugin enterprise-software-playbook17 skills in this plugin
/architectureDesign or refactor multi-service system architecture (domain boundaries, service decomposition, event-driven vs request/response, CQRS, sagas, API gateways, data ownership). Use when work spans multiple processes/services, needs eventual consistency, or requires clearer integration seams. NOT for in-process code structure like GoF patterns (use design); NOT for applying timeouts/retries/breakers to a single call (use resilience)./archobsRun architecture observability analysis on a git repository to measure coupling, boundary health, risk hotspots, and temporal drift. Use when you need empirical data about code structure before making architecture or refactoring decisions, or to validate that changes improved boundary discipline. NOT for choosing architecture patterns (use architecture); NOT for choosing code patterns (use design); NOT for adversarial code review (use review); NOT for trajectory prediction or trend forecasting from cluster activity (use forecast)./debugTriage and diagnose production or local issues by following logs → traces → metrics (HTTP/gRPC/async). Use when investigating errors, latency spikes, 5xx responses, SLO violations, or regressions in an instrumented app. NOT for adding new instrumentation (use observability); NOT for applying resilience patterns (use resilience)./designPick the right in-process code pattern for a refactoring or extensibility need (GoF creational/structural/behavioral), and access implementation guides for specific patterns. Use as a decision workflow when unsure which pattern family fits, or go directly to pattern references when you already know. NOT for multi-service/distributed architecture (use architecture)./finishRun a final "definition of done" check before shipping: verify correctness, tighten contracts/docs, and produce a change summary. Use at the end of non-trivial work to confirm nothing was missed before merge/release. NOT for writing tests (use testing); NOT for adversarial code review (use review); NOT for initial planning (use plan)./forecastPredict likely next developments from internal development patterns (git history, archobs clusters) and external signals (intel feeds). Use when you need forward-looking intelligence — what's GOING to happen, not what already happened. NOT for gathering raw signals (use intel); NOT for static code-structure analysis (coupling, boundary health, risk scores — use archobs); NOT for implementation planning (use plan).