monte-carlo-performance-diagnosis
它能做什么
这个工具可以帮你找出数据管道变慢或成本变高的原因。它会跨越不同系统进行调查,精准定位问题的根本原因。
适用场景
- ✓数据管道的运行时间比平时长的时候。
- ✓你想找出哪些查询占用了最多资源的时候。
- ✓数据处理流程的性能最近明显下降的时候。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/monte-carlo-performance-diagnosis/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的数据管道今天为什么这么慢?”
每周 5 个新技能,1 分钟读完。
工作原理
工具会先排查数据系统中的常见问题,然后把这些问题和受影响的表关联起来,最后深入调查,找出确切的原因。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Bundled upstream support
Supporting files are included at skill-relative paths. See UPSTREAM-NOTICE.md for their pinned sources, licenses, hashes, and import changes.
Monte Carlo Performance Diagnosis Skill
This skill helps diagnose data pipeline performance issues using Monte Carlo's cross-platform observability data. It works across Airflow, dbt, Databricks, and warehouse query engines to find bottlenecks, detect regressions, and identify root causes.
Monte Carlo tool routing (required): Always call Monte Carlo MCP tools through this plugin's bundled server, whose fully-qualified tool names are
mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__<tool>(e.g.mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__get_alerts). Bare tool names used in this skill (get_alerts,search,get_table, …) refer to that bundled server. If the session also has a separately-configuredmonte-carlo-mcpserver, do not route to it — it may point at a different endpoint or credentials.
Reference files live next to this skill file. Use the Read tool (not MCP resources) to access them:
- Tiered investigation approach:
references/investigation-tiers.md(relative to this file) - Query analysis patterns:
references/query-analysis.md(relative to this file)
When to activate this skill
Activate when the user:
- Asks about slow pipelines, jobs, or queries
- Wants to find expensive or costly queries
- Mentions performance regressions or degradation
- Asks "why is this pipeline slow?" or "what's using the most compute?"
- Wants to compare performance over time or find bottleneck tasks
- Asks about failed or futile query patterns
When NOT to activate this skill
Do not activate when the user is:
- Investigating data quality issues (use the prevent skill)
- Looking at storage costs (use the storage-cost-analysis skill)
- Creating monitors (use the monitoring-advisor skill)
- Just querying data or exploring table contents
Prerequisites
The following MCP tools must be available (connect to Monte Carlo's MCP server):
Discovery tools (Tier 1):
get_jobs_performance-- find slow/failing jobs across Airflow, dbt, Databricksget_top_slow_queries-- find slowest query groups by total runtime
Bridge tool:
get_tables_for_job-- convert job MCONs to table MCONs
Diagnosis tools (Tier 2):
get_tasks_performance-- drill into a job's individual tasksget_change_timeline-- unified timeline of query changes, volume shifts, Airflow/dbt failuresget_query_rca-- root cause analysis for failed/futile queriesget_query_latency_distribution-- latency trend over timeget_asset_lineage-- trace upstream/downstream impact
Supporting tools:
get_warehouses-- list available warehouses
Workflow
Step 1: Identify the scope
Determine what the user wants to investigate:
- Specific job/pipeline: User mentions a job name or pipeline
- Specific table: User mentions a table that's slow to update
- General discovery: User wants to find what's slow
Call get_warehouses to list available warehouses. Match the user's context to a warehouse.
Step 2: Tier 1 -- Discovery
If you don't have specific MCONs to investigate, start with discovery:
Find slow jobs: Call
get_jobs_performancewith optionalintegration_typefilter (AIRFLOW, DATABRICKS, DBT) if the user specifies a platform.- Results include: job name, average duration, trend (7-day), run count, failure rate
- Look for: high
avgDuration, negativerunDurationTrend7d, high failure rates
Find expensive queries: Call
get_top_slow_querieswith optionalwarehouse_idandquery_type("read" for SELECTs, "write" for INSERT/CREATE/MERGE).- Results include: query hash, total runtime, average runtime, run count
- Look for: queries with high total runtime or high individual execution time
Present the top findings to the user before drilling deeper. A typical investigation needs only 3-7 tool calls.
If both discovery tools return no results: Tell the user no performance issues were found in the current time window. Suggest broadening the scope (different warehouse, longer time range, or a different platform filter).
Step 3: Bridge -- Job to Tables
After Tier 1 identifies problematic jobs, convert to table MCONs:
…
常见问题
这个工具可以分析哪些系统?
它支持 Airflow、dbt、Databricks 以及数据仓库的查询引擎等系统。
什么是“数据管道”?
数据管道是一系列自动执行的任务,用来处理和搬运数据。你可以把它想象成信息的流水线。
什么是“查询”?
查询是你发送给数据库的指令,用来获取或操作数据。你可以把它理解成向数据库提问。
详情
作者的原始描述
Diagnoses pipeline performance issues -- slow jobs, expensive queries, latency trends -- using Monte Carlo's cross-platform observability. Uses a tiered investigation approach: discover problems, bridge to affected tables, then drill into root causes.
热度
- GitHub 星标
- 48k
- 排名
- #5244
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。