Command Palette

Search for a command to run...

Назад к скиллам
скилл № 94198

Measure Delivery

Read-only report of the five DORA delivery metrics (deployment frequency, change lead time, change fail rate, failed deployment recovery time, rework rate) as…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Measure Delivery в Claude Code и Claude Desktop

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

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

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

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

Measure delivery

Variables

Arguments: $ARGUMENTS, the window, period, and mode flags below, passed through to the scripts.

  • --repo <dir>: repository root (default: current repository root).
  • --since <YYYY-MM-DD>: first UTC day of the window (default: the 84 days ending with --until).
  • --until <YYYY-MM-DD>: last UTC day, inclusive (default: now).
  • --bucket week|month: trend period (default week, ISO weeks starting Monday).
  • --branch <ref>: the default branch (default: the ref origin/HEAD names).
  • --pr-cycle-time: add the opt-in PR open-to-merged (and ready-to-merge) median/p90 cycle-time section below; not passed to delivery-metrics.sh.
  • --merge-risk: add the merge-risk failures section below; not passed to delivery-metrics.sh.
  • --unattended: strictly read-only with no prompts; missing prerequisites, missing forge access, or rate limits emit gaps[] entries.
  • --json: emit a candidate-handoff/v1 envelope to stdout (alias: --handoff-json).

Purpose

Show how the team delivers over time: one row per period and a window total, for the five delivery metrics DORA defines, plus optional PR open-to-merged cycle-time trends. This skill reports one repository's trend against its own past, never a comparison between teams. It reads history and writes nothing.

  • Pointer: when a metric's definition is in question, fetch https://dora.dev/guides/dora-metrics/ live and read its "Throughput and instability" section, which defines the five metrics.

Metrics

Each row names a DORA metric and this skill's own measure of it; the metric's definition stays at the pointer above.

Metric Measured here as
Deployment frequency Deployments per period, and per week over the window
Change lead time Median hours from the earliest author date among a deployment's commits to its landing (paired with squash_same_timestamp_share when squash landings collapse at == ct)
Change fail rate Failed deployments / deployments
Failed deployment recovery time Median hours from a failed deployment to the first deployment that reverts it
Deployment rework rate Deployments that revert an earlier change / deployments

Deploy signal

What counts as a deployment is the team setting delivery_deploy_signal in the repository's <convention-home>/work-items.yaml (schema: ${CLAUDE_PLUGIN_ROOT}/schemas/work-items.schema.json), where <convention-home> is resolved via ${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh (default docs/conventions when the repository binds no home). Its one value, and the default, is merge-to-default-branch:

  • Each commit on the default branch's first-parent history is one deployment, at its committer date. A merge commit or a squash landing is one deployment; a rebase landing puts each of its commits on that history, so each one counts as its own deployment.

  • A deployment a later first-parent commit reverts is a failed deployment. A revert subject is Revert "<subject>" or, in Conventional Commits form, revert: or revert(<scope>):. A commit reverts a deployment by the first of these that names one:

    1. a This reverts commit <sha> line in its message, naming the deployment or a commit it merged, on any commit;
    2. with a revert subject, a pull request reference: Reverts #<n> or Reverts <owner>/<repo>#<n> in the body, or a (#<n> group in the subject other than its own trailing (#<n>), matched to the deployment whose subject ends in (#<n>);
    3. with a revert subject, a quoted subject (Revert "<s>", or "<s>" inside a revert(<scope>): subject), or the text after the revert(<scope>): prefix, matched to an earlier deployment's subject with or without its trailing (#<n>).

    A revert subject that names no deployment by any of these is an unresolved revert: it counts as a rework deployment and in unresolved_reverts, and marks nothing as failed. A merge counts the messages of the commits it merges, so a revert that lands through a merge commit is seen by forms 1 and 3. A This reverts commit line counts only when it names a commit already on the default branch, so a squash body listing a revert of a commit that only existed on its branch is not a revert. A revert landing after --until still marks a deployment in the window as failed, and a target that landed before --since still resolves.

The default signal reads only git history, so no tracker or forge call is made and any host works. Only --pr-cycle-time and --merge-risk read the forge.

Workflow

  1. Resolve the repository's convention home and deploy signal from the repository root:

    HOME_DIR="$(bash "${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh" --root "<repo root>" 2>/dev/null || echo docs/conventions)"
    bash "${CLAUDE_PLUGIN_ROOT}/skills/triage/scripts/parse-concern-value.sh" \
      "$HOME_DIR/work-items.yaml" delivery_deploy_signal
    
Полный SKILL.md на GitHub

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

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

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

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

  • scripts/delivery-metrics.sh
  • scripts/delivery-metrics.test.sh
  • scripts/merge-risk-failures.mjs
  • scripts/merge-risk-failures.test.mjs
  • scripts/merge-risk-failures.test.sh
  • scripts/pr-cycle-time.mjs
  • scripts/pr-cycle-time.test.mjs
  • scripts/pr-cycle-time.test.sh

FAQ

Что делает скилл Measure Delivery?

Read-only report of the five DORA delivery metrics (deployment frequency, change lead time, change fail rate, failed deployment recovery time, rework rate) as a team trend from default-branch history, with opt-in PR open-to-merged cycle time and candidate-handoff/v1 output, never per person. Use when: 'measure delivery', 'DORA metrics', 'PR cycle time', 'how fast do we ship'. Not for backlog counts: /work-items:track stats.

Как установить скилл Measure Delivery?

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

Скилл Measure Delivery запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить Measure Delivery с