metric-diagnostics
What it does
This skill explains why a number moved up, down, or away from what was expected. It is for analysts and managers who need to understand a change before they act on it.
When to use it
- ✓When a key metric dropped or rose more than expected.
- ✓When a number does not match what the team expected.
- ✓When you want to know which factors likely caused a metric change.
Skill link
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/data-analytics/workflows/metric-diagnostics/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want to know why our conversion rate fell last week and which factors caused it.”
5 new skills a week. 1 minute to read.
How it works
The agent reproduces the metric, sets a fair comparison, and measures the size of the change. It checks likely drivers against the data and separates what is verified from what is still unclear.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Will it tell me what to do about it?
When you need a recommendation, the skill points to the product and business analysis workflow.
Does it check whether the data itself is wrong?
Yes. It can use the data quality workflow when trust in the data could affect the result.
What does the final answer include?
It states what is verified, what is likely, what is unresolved, and what is useful to do next.
Details
Original description by the author
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
Popularity
- GitHub stars
- 14k
- Ranking position
- #11321
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
effect
14kHelps your agent answer questions about the Effect TypeScript framework by checking its source code and docs instead of relying on memory.
arxiv
14kHelps your agent search, read, cite, and track academic papers on arXiv, including abstracts, BibTeX citations, PDF downloads, and citation links.
claude-code
14kHelps your agent hand a coding task to the Claude Code command line tool, as a one-shot run, an interactive session, or a background job.
codex
14kHelps your agent run the OpenAI Codex command line tool without a chat window, for coding tasks, scripts, and automated pipelines.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.