agentsclimarketplace

Agent ops

Skill comet-ml/opik-claude-code-plugin/skills/agent-ops

This skill should be used when the user asks about agent architecture, evaluation, metrics, production monitoring, debugging agents, or best practices for building reliable AI agents. Use for questions like "evaluate my agent", "set up production monitoring", "add guardrails", "detect hallucinations", "agent anti-patterns", "compare experiments", "create evaluation dataset".From its SKILL.md

Install
npx -y skills add comet-ml/opik-claude-code-plugin --skill agent-ops

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 21 stars21 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.1 KB, as published. Nobody here has run it

Agent Operations: Build, Evaluate, and Monitor AI Agents

This skill covers the agent lifecycle beyond basic tracing: architecture patterns, evaluation, metrics, and production monitoring. All examples use Opik for observability — for SDK details (tracing, integrations, span types), load the opik skill.

The Agent Lifecycle

  1. Instrument — Add Opik tracing to make your agent's behavior visible (see opik skill)
  2. Evaluate — Measure performance with datasets, metrics, and experiments
  3. Monitor — Track quality, cost, and reliability in production
  4. Optimize — Improve based on data from evaluation and production traces

Agent Architecture Patterns

Trace every component of your agent with appropriate span types:

import opik

@opik.track(name="research_agent")
def agent(query: str) -> str:
    plan = plan_action(query)        # general span
    results = execute_tool(plan)     # tool span
    return generate_response(results) # llm span

@opik.track(type="tool")
def execute_tool(action: dict) -> str:
    return search_web(action["query"])

@opik.track(type="llm")
def generate_response(context: str) -> str:
    return llm_call(context)

What to Trace

ComponentSpan TypeKey Data
PlanninggeneralReasoning steps, decisions
Tool callstoolTool name, parameters, results
LLM callsllmPrompt, response, tokens
RetrievaltoolQuery, documents
ValidationguardrailCheck results, pass/fail

Evaluation

Evaluate agents at multiple levels — end-to-end and per-component:

from opik.evaluation import evaluate
from opik.evaluation.metrics import AnswerRelevance, Hallucination, AgentTaskCompletion

results = evaluate(
    experiment_name="agent-v2",
    dataset=dataset,
    task=lambda item: {"output": agent(item["input"])},
    scoring_metrics=[
        AnswerRelevance(),
        Hallucination(),
        AgentTaskCompletion(),
    ]
)

Built-in Agent Metrics

MetricWhat It Measures
AgentTaskCompletionDid the agent fulfill its task?
AgentToolCorrectnessWere tools used correctly?
TrajectoryAccuracyDid actions match expected sequence?
AnswerRelevanceDoes the answer address the question?
HallucinationAre there unsupported claims?

41 Total Built-in Metrics

Heuristic (Equals, Contains, BLEU, ROUGE, BERTScore, IsJson, etc.), LLM-as-Judge (AnswerRelevance, Hallucination, Usefulness, GEval, etc.), RAG (ContextPrecision, ContextRecall, Faithfulness), and conversation metrics. See references/evaluation.md for the full list.

Production Monitoring

  • Dashboards — Visualize quality, cost, latency, and error trends
  • Online evaluation — Automatically score production traces with LLM-as-Judge
  • Alerts — Get notified when metrics deviate (quality drops, cost spikes, error rates)
  • Guardrails — PII detection, topic validation, custom safety checks
  • Opik Assist — AI-powered root cause analysis for failed traces

Common Anti-Patterns

CategoryAnti-Pattern
ReliabilityUnbounded loops, retry storms, silent failures
SecurityPrompt injection, privilege escalation, data leakage
ObservabilityLate tracing (missing input), orphaned spans
ToolsTool loops, hallucinated tools, parameter errors

Detailed References

TopicReference File
Agent architecture, reliability, security patternsreferences/agent-patterns.md
Evaluation datasets, experiments, all 41 metricsreferences/evaluation.md
Production dashboards, alerts, guardrails, cost trackingreferences/production.md

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.