monte-carlo-instrument-agent

仓库创建 2026年2月26日最近提交 1 天前SkillHot 收录 20 天前
▸ 精选理由

自动检测库并生成补丁 diffs,减少手工埋点和配置错误。

▸ 风险提示

会建议修改代码并可能执行安装,需在提交前人工确认

这个 Skill 做什么

在 Python 代码库中引导安装 Monte Carlo OpenTelemetry SDK 并建议追踪方案。

在 Python 代码里帮新 AI agent 接入 Monte Carlo 可观测:自动识别常见 AI 库、安装 Monte Carlo OpenTelemetry SDK,并生成 tracing 配置与建议放 @trace_with_workflow/@trace_with_task 装饰器的 diff。所有改动会先询问确认,serverless 场景会推荐用 SimpleSpanProcessor。适合要给 agent 打点、排查调用链或上报 trace 时用。

▸ 展开 SKILL.md 英文原文

Instrument a new AI agent in a Python codebase for Monte Carlo Agent Observability. Detects AI libraries, installs the Monte Carlo OpenTelemetry SDK, and proposes tracing setup and decorator placements as diffs. Asks before editing any file.

开发编程代码插桩OpenTelemetryAI 可观测通用
90
Stars
7
Forks
20
仓库内 Skill
+1
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/monte-carlo-data/mc-agent-toolkit/main/skills/instrument-agent/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/monte-carlo-data/mc-agent-toolkit/main/skills/instrument-agent/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Monte Carlo Instrument-Agent Skill

This skill walks an MC Agent Observability customer through instrumenting a new AI agent in their Python codebase: detect AI libraries → install the Monte Carlo OpenTelemetry SDK + matching instrumentors → generate `mc.setup()` (with `SimpleSpanProcessor` when serverless) → propose `@trace_with_workflow` / `@trace_with_task` decorator diffs → confirm env vars (only when needed) → verify traces flow via `get_agent_metadata`.

The skill produces traces. It is **not** for monitoring or alerting on existing traces — that's `monte-carlo-monitoring-advisor`. The two skills are sequential: instrument-agent first, monitoring-advisor afterward.

> **Monte Carlo t
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有