analyze-variants — скилл для Claude Code: анализ вариантов процессов
Скилл analyze-variants для исследования вариантов выполнения бизнес-процессов: частые и медленные маршруты, повторная работа, конкретные кейсы.
MIT ★ 1 167 обновлён 2026-10-29
/plugin marketplace add microsoft/power-platform-skills
/plugin install process-intelligence@power-platform-skillsЧто делает analyze-variants
Работает с Process Mining API: запрашивает варианты по числу случаев или средней длительности (get_variants_with_metrics_v2), фильтрует кейсы с повторной работой через CaseReworkCount > 0, ищет конкретный случай по атрибуту-ключу. Для каждой задачи выбирает одну ветку запросов, не делая обзорный проход перед точечным поиском.
Работает только с инструментами Read и AskUserQuestion: читает данные и уточняет параметры у пользователя. Без атрибута-ключа кейса в метаданных поиск конкретного случая остановится — скилл не сканирует все строки и не придумывает caseId. Присутствие активности не доказывает бизнес-результат: скилл проверяет определение исхода и доступные метрики, для недостающих мер отправляет запрос в derive-metric.
Какие задачи решает
- найти самые частые или медленные варианты выполнения процесса
- показать кейсы, где была повторная работа
- вытащить конкретный случай по идентификатору
- проверить переходы между шагами для кейсов с переделками
- отличить наблюдаемое событие от проверенного бизнес-исхода
Примеры запросов агенту
- Покажи пять самых частых вариантов прохождения заявки
- Найди кейсы, где были повторы шагов, отсортируй по числу повторов
- Вытащи случай
Demo-17и покажи его активности
Как установить analyze-variants
1Через маркетплейс плагинов
/plugin marketplace add microsoft/power-platform-skills/plugin install process-intelligence@power-platform-skillsКоманда ставит плагин process-intelligence целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill analyze-variants -a claude-code3Вручную: положить файлы
~/.claude/skills/analyze-variants/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/analyze-variants/
1Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill analyze-variants -a codex2Вручную: положить файлы
.agents/skills/analyze-variants/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill analyze-variants -a cursor2Вручную: положить файлы
.cursor/skills/analyze-variants/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install microsoft/power-platform-skills plugins/process-intelligence/skills/analyze-variants2Вручную: положить файлы
.github/skills/analyze-variants/SKILL.md1Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill analyze-variants -a gemini-cli2Командой платформы
gemini skills install https://github.com/microsoft/power-platform-skills --path plugins/process-intelligence/skills/analyze-variantsВручную: положить файлы
.devin/skills/analyze-variants/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об analyze-variants
Как установить analyze-variants в Claude Code?
Выполни последовательно /plugin marketplace add microsoft/power-platform-skills, затем /plugin install process-intelligence@power-platform-skills. Или через npx: npx skills add microsoft/power-platform-skills --skill analyze-variants -a claude-code. Скилл окажется в ~/.claude/skills/analyze-variants/SKILL.md.
Что делает analyze-variants?
Исследует варианты бизнес-процессов через Process Mining API: запрашивает частые и медленные маршруты, фильтрует кейсы с повторной работой, находит конкретный случай по ключу. Для каждой задачи выбирает одну ветку запросов без лишних обзорных вызовов.
Какие инструменты использует analyze-variants?
Только Read и AskUserQuestion. Скилл читает данные и запрашивает параметры у пользователя, но не может строить графики или проверять соответствие стандартам — для этого инструментов нет.
Исходный текст
SKILL.md · MIT
---
name: analyze-variants
description: Use when investigating common or slow variants, repeated work, unusual paths, or a specific Process Mining case.
allowed-tools: Read, AskUserQuestion
---
# Variants, rework and exact cases
Use the [shared contract](../../references/analysis-contract.md) and
[filters/units](../../references/filters-and-units.md).
Choose the branch answering the question; do not run a variant overview before an exact-case or rework request.
## Ordered traces
**Common or slow variants**
1. `get_variants_with_metrics_v2 {S,filterOptions:F,itemsPerPage:5,itemsToSkip:0,metricToSortBy:"CaseCount",sortOrder:"Descending"}`.
2. Only if mean-case slowness still needs comparison, repeat with `metricToSortBy:"CaseDuration"`.
If the first complete result already answers it, stop. `CaseDuration` is a mean;
variant `Duration` is not its substitute.
**Cases with repeated work**
1. Copy F, appending to `caseMetricConditionFilters`:
`{metric:"CaseReworkCount",comparisonOperator:"GreaterThan",values:[0],isInclusive:true}`.
2. `get_cases_with_metrics_v2 {S,filterOptions:Fplus,itemsPerPage:5,itemsToSkip:0,metricToSortBy:"ReworkCount",sortOrder:"Descending"}`.
A native count suffices; no formula or saved metric is needed.
3. Only for unresolved transition evidence:
`get_edges_with_metrics_v2 {S,filterOptions:Fplus,itemsPerPage:10,itemsToSkip:0}`.
No edge sort exists; mark incomplete evidence page-local.
**A specific case**
1. Reuse details to identify the metadata-proven case-key attribute K and its type T.
Bind the exact user/returned value X, e.g. synthetic `"Demo-17"`.
2. Append `{attributeName:K,dataType:T,attributeValues:[X],isInclusive:true}` to F's
`attributeValueFilters`; call
`get_cases_with_metrics_v2 {S,filterOptions:Fcase,itemsPerPage:5,itemsToSkip:0}`.
3. An optional same-cohort bottleneck/edge query can summarize activities/handoffs.
If no exposed key expresses the case, stop; do not scan all cases or invent `caseId`.
## Guardrails
Continue relevant pages or drilldowns until the question is answered or evidence cannot discriminate;
no fixed call/total-row quota or automatic repeated queries. Show at most five headline rows by default.
Use `filterOptions`, `itemsPerPage` and `itemsToSkip`, not `filters`, `metrics`, `limit` or `offset`.
No `variantId` filter exists. For a user-specified sequence use only discovered attribute values
and the advertised sequence-filter schema; do not reconstruct unavailable variant `Values`.
No event-timeline or conformance-check tool exists. Rework/variation alone proves neither
event order nor a conformance violation. Retain scope, versions, metric units and partial coverage.
Activity occurrence is not full payment, successful dismissal, business closure or compliance.
Check the business outcome definition and available attributes/measures; route missing measures
to derive-metric, never infer success from an event name.
Missing events or terminal-looking traces may be censored, ongoing, legitimately ended or
incompletely recorded. Do not choose without closure, recording and observation-coverage evidence.
Use the [investigation method](../../references/investigation-method.md): distinguish observed
presence/counts from tested outcomes; mark an unresolved outcome **inconclusive** and retain
definition provenance, baseline/test filters, evidence references and the next discriminating check.
© Microsoft · MIT · microsoft/power-platform-skills