metric-diagnostics
它能做什么
这项技能解释某个数字为何上升、下降或偏离预期。适合需要在采取行动之前理解变化的分析师和管理者。
适用场景
- ✓当某个关键指标的下降或上升幅度超出预期的时候。
- ✓当某个数字与团队的预期不符的时候。
- ✓当你想知道哪些因素可能导致了某项指标变化的时候。
技能链接
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/data-analytics/workflows/metric-diagnostics/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想知道上周我们的转化率为什么下降,以及是哪些因素导致的。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会重现该指标,设定公平的比较基准,并衡量变化的幅度。它会根据数据核对可能的驱动因素,并将已证实的内容与仍不明确的内容区分开来。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Related Skills
Use $gather-business-context when business context is needed to understand the metric, analysis period, ownership, or plausible explanations.
Use $product-business-analysis when the task asks for a recommendation or tradeoff decision after diagnosing the movement.
Use $analyze-data-quality when dashboard trust, grain, freshness, or source disagreement could affect the metric.
Metric Diagnostics
Use this skill to diagnose why a metric changed or differs from expectation. Reproduce the metric, define the comparison, quantify the movement, validate likely drivers, and state what is verified, likely, unresolved, and useful to do next.
Clarify with the user when a missing input would materially change the analytical frame or recommendation. Otherwise make a reasonable assumption, state it, and proceed.
Skill Configuration
Source Discovery And Verification
Use the relevant semantic layer as a starting map, not a boundary.
- Explore all possible sources. Search every connected or provided source that could contain task-relevant data or change the interpretation. Within each structured-data source, run fresh catalog or metadata discovery for relevant schemas, datasets, tables, views, models, and metrics. Known sources, tables, dashboards, and semantic mappings are starting points, not stopping points.
- Compare duplicates and conflicts. When sources overlap or disagree, compare ownership, freshness, definition, grain, coverage, and directness. Use the best authoritative source, or combine complementary sources when needed. Note material conflicts, explain why the selected source or sources control the answer, and verify selected data through live reads before concluding.
Source Access Guardrail
Before querying sources, building artifacts, or drawing conclusions, determine whether the answer requires a specific source of truth.
If a required source is unavailable, stop that path. Tell the user what source is needed, ask them to make it available or provide a reviewed fallback, and do not treat weaker substitutes as equivalent.
If the missing source is only optional enrichment, continue with the strongest available evidence and label the gap when it materially affects the answer.
Workflow
1. Define The Diagnostic Question
Frame the diagnostic so it is clear what changed and what comparison would prove it.
Define:
- what the metric means in business terms
- the time window and comparison that make the change measurable
- the population and grain that determine what counts
- the source that owns the metric definition
- the diagnostic question being answered, for example movement, concentration, or reconciliation
Use $gather-business-context when business context is needed to understand what the metric means, what changed around the analysis period, or which explanations are plausible.
2. Validate The Metric Definition And Source
Before explaining the movement, confirm that the metric is defined correctly and that the source data can measure it reliably.
Confirm the metric definition, grain, aggregation logic, filters, joins, exclusions, freshness, lineage, and any disagreement between trusted surfaces. Keep this source check focused on issues that could change the answer.
Treat current context, named semantic layers, and familiar table names as source candidates, not source selection. For broad metric questions, run live source discovery against available tables, dashboards, metric docs, semantic layers, or other source-of-truth surfaces before choosing the controlling source. When both are available, inspect at least one business-facing or top-line surface and one lower-level source surface, then state why the selected source owns the answer.
Use $analyze-data-quality when freshness, grain, joins, missingness, schema drift, outliers, unexpected categories, or distribution shifts could affect trust.
Use $jupyter-notebooks when fresh SQL, Python, statistical modeling, reusable calculations, or multi-step decomposition need an inspectable analytical record.
3. Establish The Metric Pattern
Before looking for drivers, establish the metric pattern the diagnostic needs to explain. Quantify the metric over the relevant period and scope. If the question includes a comparison, reproduce that comparison.
Do not search for causes until the size, timing, and scope of the pattern are verified or explicitly marked uncertain.
4. Choose The Diagnostic Plan
常见问题
它会告诉我该怎么做吗?
当你需要建议时,这项技能会指向产品和业务分析工作流。
它会检查数据本身是否有误吗?
会。当对数据的信任可能影响结果时,它可以使用数据质量工作流。
最终答案包括什么?
它会说明哪些已被证实、哪些可能成立、哪些尚未解决,以及接下来做什么比较有用。
详情
作者的原始描述
Diagnose why a metric changed or differs from expectation. Use when the task is to identify likely drivers of a metric movement, anomaly, gap, or discrepancy.
repo: XiaomiMiMo/MiMo-Code
热度
- GitHub 星标
- 14k
- 排名
- #11321
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
effect
14k帮你的智能体通过查看源代码和文档来回答关于 Effect TypeScript 框架的问题,而不是依赖记忆。
arxiv
14k帮你的智能体在 arXiv 上搜索、阅读、引用和跟踪学术论文,包括摘要、BibTeX 引用、PDF 下载和引用关系。
claude-code
14k帮你的智能体把编程任务交给 Claude Code 命令行工具,可以是一次性运行、交互式会话或后台任务。
codex
14k帮你的智能体在没有聊天窗口的情况下运行 OpenAI Codex 命令行工具,用于编程任务、脚本和自动化流程。