본문으로 건너뛰기
cccskills
무료GitHub에 공개

agent-observability

Use when monitoring, tracing, or debugging agentic workflows in production. Keywords: observability, tracing, OpenTelemetry, Langfuse, latency, token cost, loop detection, telemetry.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Agent Observability & Telemetry

Overview

This skill defines the operational standards and instrumentation requirements for monitoring agentic workflows. It ensures that complex, multi-agent systems built within KILO-KIT remain transparent, debuggable, and cost-effective. Observability in this context spans from real-time tracing of individual subagent reasoning to macro-level analysis of cost-per-task and loop-detection across distributed systems.

When To Use

Activate this skill when:

  • Designing new complex agent workflows requiring distributed tracing.
  • Debugging performance regressions or unexplained agent failures.
  • Implementing production monitoring for cost optimization.
  • Setting up feedback loops for regression testing based on real production traces.
  • Configuring OpenTelemetry or integrating with observability platforms like Langfuse/Helicone.

Core Pillars

  1. Traceability: Capturing parent-child relationships across subagent calls and tool invocations.
  2. Quantification: Measuring latency, token consumption, and cache effectiveness.
  3. Detection: Identifying anomalies in agent behavior (e.g., infinite recursion, repetitive tool errors).
  4. Learning: Converting trace data into gold-standard datasets for future regression testing.

Instrumentation Workflow

To maintain high observability, follow this workflow:

  1. Context Propagation: Always pass trace_id and span_id headers through all agent boundaries.
  2. Structured Logging: Log all input/output payloads at the start and end of every tool call or reasoning step.
  3. Telemetry Standards: Use OpenTelemetry semantic conventions for LLM operations (e.g., llm.request.model, llm.usage.completion_tokens).
  4. Platform Integration: Configure the agent SDKs to push spans directly to backend exporters (Langfuse/Helicone/Jaeger).
  5. Session Aggregation: Group all traces belonging to a single user task under a persistent session_id.

Key Metrics

  • Token Efficiency: Completion tokens vs. prompt tokens ratio.
  • Cost per Task: Real-time dollar cost of the entire agentic conversation.
  • Latency Breakdown: Time spent in LLM inference vs. external tool execution.
  • Cache Hit Ratio: Effectiveness of persistent caching layers for repetitive queries.
  • Reasoning Depth: Number of steps taken to arrive at a solution.

Loop Detection & Anomaly Alerts

To prevent runaway costs and infinite loops:

  • Depth Limiter: Enforce a maximum stack depth for agent recursion.
  • Repetition Threshold: Monitor for semantic similarity in back-to-back agent turns.
  • Tool Error Rate: Alert when a specific tool returns consecutive non-transient errors.
  • Spike Detection: Trigger alerts for sudden surges in token consumption that deviate from the 3-day rolling average.

Quality Gates

  • Trace Coverage: All tool calls and subagent invocations must be wrapped in spans.
  • Cost Budgeting: Automated failure if a single task exceeds the max_cost threshold.
  • Feedback Validation: Any trace flagged by a user as "incorrect" must automatically trigger the generation of a potential regression test case.

Instrumentation Best Practices

  • Avoid logging sensitive user data (PII) by sanitizing inputs before sending to external observability backends.
  • Use asynchronous telemetry exporters to ensure observability does not contribute to agent latency.
  • Periodically sample traces in high-traffic environments to balance overhead and visibility.

Golden Dataset Extraction

The system should implement a mechanism to:

  1. Export flagged traces (user corrections).
  2. Clean and format the input context and reasoning path.
  3. Store as a YAML-based test case in tests/regression/.
  4. Automatically run against the agent whenever the system prompt is updated.

Integration Patterns

  • Langfuse: Use for session-level grouping, evaluation scores, and prompt management.
  • Helicone: Leverage for caching, load balancing, and real-time observability at the proxy level.
  • OpenTelemetry: The foundation for trace propagation and multi-service correlation.

KPI Definition

  • First-Call Resolution: Percentage of tasks completed without secondary user intervention.
  • Tool Success Rate: Ratio of successful tool invocations to total attempts.
  • System Stability: Ratio of "completed" status to "errored/interrupted" status per session.
  • Agent Throughput: Average time-to-completion for standard task types.

References

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

2d-games

무료

2D game development principles. Sprites, tilemaps, physics, camera.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

3d-games

무료

3D game development principles. Rendering, shaders, physics, cameras.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

aesthetic

무료

Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

Use when implementing or managing persistent, hierarchical memory systems for AI agents. Covers cross-session state, fact supersession, and self-managed memory tools to enable long-term recall and adaptive agent behavior.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

Use when building self-correcting retrieval systems for AI agents. Keywords: RAG, retrieval, Corrective RAG, Self-RAG, query decomposition, reranking, hallucination, grounding.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

Use when building autonomous LLM agents operating in live environments. Protects against prompt injection, tool abuse, data exfiltration, and runaway loops. Keywords: guardrails, prompt injection, IPI, safety, sandboxing, NeMo, LLM Guard.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

VoDaiLocz의 스킬 모두 보기

이 스킬의 문제 신고