agent-observability
Observability with OpenTelemetry, metrics, and logging.
Skill by ils15
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ils15-agent-observability-b14671
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
agent-observability- Description
- Observability with OpenTelemetry, metrics, and logging. Use for monitoring agents and LLM calls.
- License
- MIT
- Instructions
- 718 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 718 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# Agent Observability & Monitoring Skill
## When to Use
Implement this skill when your multi-agent system needs observability across agent spans, LLM calls, token costs, latency, error rates, and alerting. Covers the full stack: trace export → metrics collection → structured logging → dashboards → incident response.
## OpenTelemetry Tracing
### Span Creation & Context Propagation
```python
from opentelemetry import trace
from opentelemetry.trace import SpanKind, Status, StatusCode
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.sdk.resources import Resource
from opentelemetry.propagate import inject, extract
import json
resource = Resource.create({"service.name": "agent-orchestrator"})
provider = TracerProvider(resource=resource)
provider.add_span_processor(
BatchSpanProcessor(OTLPSpanExporter(endpoint="http://jaeger:4317"))
)
trace.set_tracer_provider(provider)
tracer = trace.get_tracer(__name__)
class AgentTracer:
def __init__(self, agent_name: str):
self.agent_name = agent_name
self.tracer = trace.get_tracer(agent_name)
async def trace_agent_run(self, task: dict) -> dict:
with self.tracer.start_as_current_span(
f"agent.{self.agent_name}.run",
kind=SpanKind.SERVER,
attributes={
"agent.name": self.agent_name,
"task.id": task.get("id"),
"task.type": task.get("type", "unknown"),
},
) as span:
try:
result = await self._execute(task)
span.set_attribute("result.status", "success")
span.set_attribute("result.length", len(str(result)))
return result
except Exception as e:
span.set_status(Status(StatusCode.ERROR, str(e)))
span.record_exception(e)
raise
async def _execute(self, task: dict) -> dict:
with self.tracer.start_as_current_span(
f"agent.{self.agent_name}.execute",
kind=SpanKind.INTERNAL,
attributes={"task.priority": task.get("priority", 0)},
) as span:
spans = await self._llm_call(task["prompt"])
return spans
```
### Agent Span Hierarchy
```python
async def orchestrate_workflow(request: dict, headers: dict) -> dict:
ctx = extract(headers)
with tracer.start_as_current_span(
"orchestrator", context=ctx, kind=SpanKind.SERVER
) as root:
root.set_attribute("request.id", request["id"])
with tracer.start_as_current_span("agent.hermes.run") as hermes_span:
hermes_result = await hermes.process(request["query"])
hermes_span.set_attribute("tokens", hermes_result["tokens"])
with tracer.start_as_current_span("agent.aphrodite.run") as aphro_span:
aphro_result = await aphrodite.render(hermes_result["data"])
aphro_span.set_attribute("components", len(aphro_result["ui"]))
root.set_attribute("total.duration_ms", root.end_time - root.start_time)
return {"result": hermes_result, "ui": aphro_result}
```
## LLM Call Tracing with LangSmith
```python
from langsmith import Client, traceable
from langsmith.run_trees import RunTree
from langchain_openai import ChatOpenAI
from langchain_core.messages import HumanMessage, SystemMessage
client = Client()
@traceable(
project_name="agent-hermes",
tags=["production", "hermes-v2"],
metadata={"agent": "hermes", "version": "2.1.0"},
)
async def agent_llm_call(prompt: str, context: dict) -> str:
llm = ChatOpenAI(model="gpt-4o", temperature=0.1)
messages = [
SystemMessage(content="You are Hermes, a backend agent."),
HumanMessage(content=prompt),
]
response = await llm.ainvoke(messages)
return response.content
@traceable(run_type="chain", name="hermes_full_flow")
async def hermes_plan_and_generate(task: str) -> dict:
plan = await agent_llm_call(f"Plan implementation for: {task}")
code = await agent_llm_call(f"Generate code for plan: {plan}")
return {"plan": plan, "code": code}
```
### Custom Traces & Feedback
```pythonFrom ils15/pantheon-legacy, MIT.
More from ils15/pantheon-legacy
- 0.543score
handoff
ils15
Generate session handoff documents for work continuation.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
code-review-checklist
ils15
Systematic code review with quality gates, security audit, and parallel checks.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
orchestration-workflow
ils15
Practical step-by-step walkthrough for orchestrating features end-to-end using the multi-agent system, from planning through deployment
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
task-system
ils15
File-backed task management with dependencies and parallel execution.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
agent-coordination
ils15
Multi-agent orchestration with model routing, category delegation, and sprint management.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
prompt-improver
ils15
Improve prompts using best practices for clarity, specificity, and structure.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
tdd-with-agents
ils15
TDD enforcement with RED→GREEN→REFACTOR cycle and advanced testing patterns.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
frontend-analyzer
ils15
Analyze React components for design tokens and accessibility.
SkillCFreshness: C★ 12Claude Code +9 - 0.538score
artifact-management
ils15
Structured artifact trail for feature implementations — plans, implementations, reviews, and decisions.
SkillCFreshness: C★ 12Claude Code +9 - 0.538score
api-design-patterns
ils15
Design RESTful APIs with pagination, filtering, and OpenAPI docs.
SkillCFreshness: C★ 12Claude Code +9 - 0.538score
conversational-ai-design
ils15
Design conversational AI with Rasa NLU, dialogue management, and LangChain memory patterns.
SkillCFreshness: C★ 12Claude Code +9 - 0.538score
agent-evaluation
ils15
Evaluate AI agent outputs — hallucination detection, quality scoring, behavioral testing, and CI/CD pipelines.
SkillCFreshness: C★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 7
- Open issues
- 1
- Last commit (this folder)
- May 20, 2026 (5 months ago)
- Last release
- Jul 22, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ils15/pantheon-legacy
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from ils15
- 0.543score
handoff
ils15
Generate session handoff documents for work continuation.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
orchestration-workflow
ils15
Practical step-by-step walkthrough for orchestrating features end-to-end using the multi-agent system, from planning through deployment
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
frontend-analyzer
ils15
Analyze React components for design tokens and accessibility.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
code-review-checklist
ils15
Systematic code review with quality gates, security audit, and parallel checks.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
agent-coordination
ils15
Multi-agent orchestration with model routing, category delegation, and sprint management.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
prompt-improver
ils15
Improve prompts using best practices for clarity, specificity, and structure.
SkillCFreshness: C★ 12Claude Code +9
Cite this page
agent-observability skill. Agent Mart. https://agentmart.dev/skills/ils15-agent-observability-b14671 (last updated 2026-10-24)