Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

analyzing-quality-metrics

БесплатноБез исполняемых скриптовНе проверен

Defines, computes, and interprets test and quality metrics: pass rate, flake rate, suite duration, defect escape rate, time to detect, and coverage with its…

jaktestowacот jaktestowac★ 124 звезды на GitHub

Об этом скилле

Analyzing Quality Metrics

Use this skill when someone needs numbers about testing and quality, and the numbers need to survive being acted on.

Every quality metric is a proxy. Coverage proxies for thoroughness, bug count proxies for code health, pass rate proxies for confidence. Proxies are useful until they become targets, at which point they get optimized directly and stop measuring anything. The job here is to pick proxies that resist that, define them precisely enough to be computed the same way twice, and always report the decision the number is meant to inform.

When to Use

  • a stakeholder asks for a QA dashboard or a testing status report
  • a coverage percentage is being used as a quality gate
  • flakiness is being discussed with no measurement behind it
  • suite runtime is growing and nobody can say by how much
  • release quality needs comparing across releases
  • a metric has become a target and the behaviour around it has gone strange

Operating Principles

  • Every metric names the decision it supports. A number nobody acts on is a number nobody should collect.
  • Define before you measure. "Flaky test" and "escaped defect" mean different things to different people; a metric computed two ways is two metrics.
  • Trend over snapshot. A single value is noise. Direction over several releases is signal.
  • Pair every metric with its counterweight. Speed with escape rate, coverage with mutation survival, pass rate with flake rate. A metric reported alone gets gamed alone.
  • Rates, not counts. Ten defects means nothing without the denominator: per release, per thousand changed lines, per user.
  • State the caveat with the number. Coverage without "this measures execution, not assertion" is a misleading number, even when it is correct.
  • Never measure individuals. Bugs found per tester and defects introduced per developer both produce worse work and worse data.

Workflow

Phase 0: Find the decision

Before selecting anything, ask what will be decided differently depending on the answer:

Decision Metrics that inform it
Is this build shippable? Pass rate on the candidate, open defect profile, coverage of the changed area
Where should we invest test effort? Escape rate by area, defect density by module, coverage gaps against risk
Is our suite trustworthy? Flake rate, quarantine count and age, mutation survival
Is our feedback loop fast enough? Suite duration by stage, time to first failure signal, queue time
Is quality improving? Escape rate trend, time to detect trend, change failure rate

A metric that maps to no row here is a metric to drop. Collecting it costs attention and invites someone to optimize it.

Phase 1: Define each metric precisely

Use ./resources/metric-definitions.md. Each definition fixes:

  • the formula and both its numerator and denominator
  • the data source and how to extract it
  • the time window
  • what counts and what is explicitly excluded
  • the known distortions
  • the decision it supports

Two definitions worth fixing early because they are argued about most:

  • Flaky test: a test that produced both a pass and a fail on the same commit within the window. Not "a test someone re-ran".
  • Escaped defect: a defect found in production that a test at any level could in principle have caught. Not every production incident; a third-party outage is not an escape.

Phase 2: Establish the baseline

Compute over the last several releases or the last quarter before showing anything. A metric introduced with no history invites a target set from a single point, which is how arbitrary thresholds are born.

Record with each baseline:

  • the range and the variance, not only the average
  • what was happening in the period (a large refactor, a hiring wave, a holiday freeze)
  • gaps in the data and how they were handled

Phase 3: Pair and counterweight

Never publish a metric without its counterweight.

Metric Counterweight The behaviour this prevents
Line coverage Mutation score, or assertion density Tests that execute code and assert nothing
Pass rate Flake rate, skipped count Skipping and quarantining to keep the bar green
Suite duration Escape rate Deleting slow tests that were catching things
Defects found Escaped defects Rewarding shallow, high-volume bug reports
Deployment frequency Change failure rate Shipping faster and worse
Automation percentage Escape rate on automated areas Automating what is easy rather than what is risky

Phase 4: Compute and visualize

Rules that keep a dashboard honest:

  • show the trend line, not just the current value
  • annotate the timeline with events: a release, a refactor, a suite migration
  • show the denominator on the chart
  • use the same window everywhere; a weekly flake rate next to a quarterly escape rate invites the wrong comparison
  • mark data gaps as gaps rather than inte
Полный SKILL.md на GitHub

Установить analyzing-quality-metrics в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

resources/anti-metrics.mdresources/metric-definitions.mdresources/quality-report-template.md

FAQ

Что делает скилл analyzing-quality-metrics?

Defines, computes, and interprets test and quality metrics: pass rate, flake rate, suite duration, defect escape rate, time to detect, and coverage with its caveats. Use when building a QA dashboard, reporting suite health to stakeholders, comparing releases over time, or when a coverage percentage or a bug count is being treated as a measure of quality.

Как установить скилл analyzing-quality-metrics?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл analyzing-quality-metrics запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить analyzing-quality-metrics с