流程队列对比分析
compare-cohorts
用于在统一的定义下比较流程队列(cohort)、部门、时间段或前后结果。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1.1k
- Forks
- 232
01 前言 Front Matter
- name
- compare-cohorts
- description
- Use when comparing process cohorts, departments, periods or before-and-after results under matched definitions.
- allowed-tools
- Read, AskUserQuestion
02 资源文件 1
03 SKILL.md 正文
Matched cohort comparisons
Use the shared contract and filters/units. Fix the outcome definition/provenance, metric, aggregation, units, timezone and one selector S. Freeze the user's agreed baseline F, separately from current exploratory filters. Reuse metadata versions and exact typed cohort values. Use the investigation method for findings/status.
Ordered trace
- Copy baseline F twice. For attribute cohorts append
{attributeName:A,dataType:T,attributeValues:[X],isInclusive:true}toattributeValueFiltersfor A's cohort value, and the same shape with Y for B. Preserve other agreed baseline conditions; retain rework restrictions only if part of that baseline. Do not leak an exploratory/outcome-only subset into a full-population comparison. Change only the intended cohort condition. If values are unknown, requestget_attribute_values_v2 {S,attributeName:A,itemsPerPage:20,itemsToSkip:0,filterOptions:F}; it returns values, not frequencies. get_process_overall_metrics_v2 {S,filterOptions:F_A}->get_process_overall_metrics_v2 {S,filterOptions:F_B}. Nometrics,groupByor aggregation parameter exists. Use the same returned metric definitions; nativeCaseDuration/CaseWaitingTimeare means.- Only if a grouped explanation is needed and statistics is advertised, make a matched pair:
get_attribute_statistics {S,attributeName:A,filterOptions:F_A,itemsPerPage:5,itemsToSkip:0,metricToSortBy:"TotalDuration",sortOrder:"Descending"}, then exactly the same call with F_B. Do not treat independent top-five pages as a complete aligned population.
Continue relevant value/group pages or matched follow-ups when needed, without fixed call quotas. Stop at sufficient evidence, no new information or a capability/error boundary; no blind sweeps. Do not create views or use two inclusive timeframes in one query as an A/B comparison.
Time and reproducibility
For periods, change only one explicit timeframeFilters start/end pair in each copied F.
Case windows mean Contained, not cases Started/Completed/Intersecting or all events during the period.
If completed-only membership including earlier starts is essential, stop/reframe or route
to derive-metric/a user-confirmed existing matching view. Never invent a date-mode field
or promise unknown end-boundary behavior.
If refresh is reported or reproducibility is at risk, recheck details. Changed PV/PMV invalidates the pair: mark inconclusive, stop or deliberately rerun both, not just the second. Process selection resolves latest; no direct version selector or atomic comparison snapshot exists. Views pin version context but their configuration is mutable/cached.
Report A/B counts, mean metrics, absolute delta and relative change only for a nonzero baseline. Empty cohorts mean insufficient evidence, not zero duration/infinite improvement. State scope/version and unmatched-group coverage; at most five headline rows. Recorded means do not establish closure, equal maturity or complete lifecycles. Report those as unknown unless supported; qualify the comparison, not an assumed causal improvement. Retain baseline/cohort filters, evidence references, status and alternatives. Overlapping groups cannot be added as unique-case totals. Object-centric comparisons belong in analyze-objects, not case-filter fallbacks.
04 同仓库更多 Skills
compare-site-configurations
Compare Power Pages site configurations between two environments, such as dev, test and production, or between a local download and the live site, and explain which differences change site behavior. Use when a site works in one environment but not another (for example, works in dev but fails in test), to check configuration drift before promoting or deploying, or to see what changed between two sites. Produces a shareable HTML report and a JSON file that VS Code can import.
Process Intelligence 配置与登录
setup
当 Process Intelligence 需要搭建、显式的云/账户/环境配置、登录、连接诊断,或从认证错误中恢复时使用。
流程智能问题报告撰写
report-issue
当用户需要针对失败操作起草流程智能(Process Intelligence)缺陷报告或支持摘要时使用。
流程挖掘问题调查
investigate-process
当需要从多个分析视角调查宽泛的流程挖掘(Process Mining)业务问题、观察到的模式或相互竞争的解释时使用。
派生指标计算
derive-metric
当所需的度量指标缺失、需要复用已保存的自定义指标,或需要临时公式或派生标量时使用。
流程变体分析
analyze-variants
用于调查常见或缓慢的流程变体、重复工作、异常路径,或特定的流程挖掘(Process Mining)案例。