Tooluck logoTooluck
SKILL.md

agent-observability-spec

Agent skill frommohitagw15856/pm-claude-skills

Specify the tracing, metrics, and alerting for an AI agent or LLM feature in production. Use when asked what to log for an LLM app, design agent tracing or spans, define quality and cost monitors, or answer 'how do we know if the agent is misbehaving?'. Produces an observability spec with a trace schema, metric definitions with owners and alert thresholds, sampling and retention policy, and a privacy note for logged content.

How to install agent-observability-spec

install agent-observability-spec
# install the pm-claude-skills pack with the skills CLI
npx skills add mohitagw15856/pm-claude-skills

# or add only this skill to Claude Code: copy the folder

skills/agent-observability-spec/

# into

~/.claude/skills/agent-observability-spec/ (all projects)

.claude/skills/agent-observability-spec/ (one project)

skills/agent-observability-spec/SKILL.md

MITFull file
1# Agent Observability Spec Skill
2
3You can't fix what you didn't record. For LLM systems the unit of observability is the *trace* — everything the model saw and did — because behaviour, not uptime, is what fails. This skill specifies what to capture, what to compute from it, and when to page someone.
4
5> **Not quite this?** Use `agent-spec` when you are specifying what the agent should do before it is built.
6
7## What This Skill Produces
8
9- A **trace schema**: per-request spans and the fields each must carry
10- **Metric definitions** across health, quality, cost, and behaviour — each with a threshold and owner
11- A **sampling and retention policy** that keeps cost sane and debugging possible
12- A **privacy note**: what logged content contains, who can see it, and how long it lives
13
14## Required Inputs
15
16Ask for (if not already provided):
17- **The system's shape** — single LLM call, RAG pipeline, or multi-step tool-using agent
18- **Traffic volume and cost sensitivity** — full tracing at 10M req/day is a budget decision
19- **What "misbehaving" means here** — the two or three failure modes that matter most (wrong facts? wrong actions? cost? refusals?)
20- **Existing observability stack** (Datadog, Langfuse, OTel, homegrown) — spec into it, not around it
21
22## Trace Schema
23
24Every request produces one trace; every model call, retrieval, guardrail check, and tool execution is a span. Minimum fields:
25
26| Span | Must capture |
27|---|---|
28…

Excerpt shown under the repository's MIT license.

More skills in pm-claude-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates