Official agent skill

Compare Cohorts

by microsoft in microsoft/power-platform-skills

A skill your agent uses when comparing process cohorts, departments, periods or before-and-after results under matched definitions.

OfficialMITAuto-check passed

Install Compare Cohorts

skills CLI
$ npx skills add microsoft/power-platform-skills --skill compare-cohorts -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install microsoft/power-platform-skills compare-cohorts --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/microsoft/power-platform-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/process-intelligence/skills/compare-cohorts .claude/skills/compare-cohorts && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
compare-cohorts
GitHub stars
984
Token cost
~922 tokens
SKILL.md length
403 words
Files
1
Skills in repo
93
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when comparing process cohorts, departments, periods or before-and-after results under matched definitions.

  • Works in 3 steps: Copy baseline F twice. For attribute… → get_process_overall_metrics_v2… → Only if a grouped explanation is needed…
  • Comparing process cohorts
  • SKILL.md covers Ordered trace and Time and reproducibility
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Compare Cohorts is an agent skill from microsoft/power-platform-skills, published by the product's own GitHub organization. Use when comparing process cohorts, departments, periods or before-and-after results under matched definitions.

Its SKILL.md is about 920 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and… The licence is MIT.

When your agent uses it

  • Comparing process cohorts
  • Before-and-after results under matched definitions

Example prompts

  • “/compare-cohorts”

Requirements

  • Pre-approved tools (allowed-tools): Read, AskUserQuestion

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Copy baseline F twice. For attribute cohorts append
  2. get_process_overall_metrics_v2 {S,filterOptions:F_A} ->
  3. Only if a grouped explanation is needed and statistics is advertised, make a matched pair

What it can do on your machine

Read from SKILL.md and the folder at commit 7d6b845. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • AskUserQuestion

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Compare Cohorts loads about 922 tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 403 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~922

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from microsoft/power-platform-skills at commit 7d6b845, republished under its MIT licence (© microsoft). 403 words, ~922 tokens.

Download SKILL.mdSave it as .claude/skills/compare-cohorts/SKILL.md (or your agent's skills folder).
name
compare-cohorts
description
Use when comparing process cohorts, departments, periods or before-and-after results under matched definitions.
allowed-tools
Read, AskUserQuestion

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

  1. Copy baseline F twice. For attribute cohorts append {attributeName:A,dataType:T,attributeValues:[X],isInclusive:true} to attributeValueFilters for 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, request get_attribute_values_v2 {S,attributeName:A,itemsPerPage:20,itemsToSkip:0,filterOptions:F}; it returns values, not frequencies.
  2. get_process_overall_metrics_v2 {S,filterOptions:F_A} -> get_process_overall_metrics_v2 {S,filterOptions:F_B}. No metrics, groupBy or aggregation parameter exists. Use the same returned metric definitions; native CaseDuration/CaseWaitingTime are means.
  3. 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.

Show full SKILL.md (188 more words)Show less

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.

© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/process-intelligence/skills/compare-cohorts of microsoft/power-platform-skills.

Open the folder on GitHubat commit 7d6b845

Compare with similar skills

Compare Cohorts next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Compare Cohorts compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Compare Cohorts this skillmicrosoft/power-platform-skills984—~922Automated safety check: PassMIT
Cohort Analysis and Retention Explorerphuryn/pm-skills27k—~1.3kAutomated safety check: PassMIT
Geo Comparesickn33/agentic-awesome-skills47k1 repos~2.7kAutomated safety check: NotesMIT
Compare Python TypecheckersJetBrains/intellij-community21k—~617Automated safety check: PassCustom licence
Recipe Compare Sheet Tabsgoogleworkspace/cli31k—~182Automated safety check: PassApache-2.0
Comparetaishi-i/awesome-japanese-nlp-resources1k—~4.1kAutomated safety check: NotesCC0-1.0

Similar skills

  • Analyzes uploaded cohort data to compute retention curves and feature adoption trends, builds heatmaps and charts, and suggests qualitative follow-up research.

    27k GitHub stars~1.3k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Geo Compare

    sickn33/agentic-awesome-skills

    Monthly delta tracking and progress reporting for GEO clients.

    47k GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes
  • Compare Python Typecheckers

    JetBrains/intellij-community

    Official

    Compare Python type inference with ty, pyrefly, and basedpyright.

    21k GitHub stars~617 tokensUpdated yesterday
    Auto-check passed
  • Recipe Compare Sheet Tabs

    googleworkspace/cli

    Read data from two tabs in a Google Sheet to compare and identify differences.

    31k GitHub stars~182 tokensUpdated 4 days ago
    Documents & OfficeAuto-check passed
  • Compare

    taishi-i/awesome-japanese-nlp-resources

    Compare several Japanese NLP libraries, models, or datasets for a keyword (a specific tool name, or a function/task like '形態素解析') across a handful of criteria chosen for that comparison, rendered as…

    1k GitHub stars~4.1k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check: notes
  • Official

    Compare competing NemoClaw PRs for one issue and recommend a merge or salvage candidate from review evidence.

    23k GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed

More from microsoft/power-platform-skills

All 93 skills in this repo
  • Manage Firewall

    microsoft/power-platform-skills

    Official

    Inspects and configures the web application firewall (WAF) in front of a Power Pages production site.

    984 GitHub stars~4.5k tokensUpdated yesterday
    Auto-check: notes
  • Manage Headers

    microsoft/power-platform-skills

    Official

    Inspects and configures the security headers a Power Pages site sends to browsers — Content Security Policy, frame and clickjacking protection, cross-origin sharing, cookie behavior, and related…

    984 GitHub stars~3k tokensUpdated yesterday
    Auto-check: notes
  • Scan Code

    microsoft/power-platform-skills

    Official

    Scans a Power Pages site project for security issues in source code and dependencies.

    984 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check: notes
  • Scan Site

    microsoft/power-platform-skills

    Official

    Runs a security scan on a deployed Power Pages site, fetches the latest scan report, and produces a plain-language summary.

    984 GitHub stars~3.2k tokensUpdated yesterday
    Auto-check: notes
  • Setup Datamodel

    microsoft/power-platform-skills

    Official

    Creates Dataverse tables, columns, and relationships for a Power Pages site based on a data model proposal.

    984 GitHub stars~4k tokensUpdated yesterday
    Auto-check: notes
  • Add Localization

    microsoft/power-platform-skills

    Official

    Adds or extends multilingual localization in a Power Pages code-site SPA.

    984 GitHub stars~15k tokensUpdated yesterday
    Auto-check: notes

Questions about Compare Cohorts

What does Compare Cohorts do?

A skill your agent uses when comparing process cohorts, departments, periods or before-and-after results under matched definitions. Compare Cohorts is an agent skill from microsoft/power-platform-skills, published by the product's own GitHub organization. Use when comparing process cohorts, departments, periods or before-and-after results under matched definitions.

When should I use Compare Cohorts?

Compare Cohorts fits situations like: comparing process cohorts; before-and-after results under matched definitions.

How do I install Compare Cohorts in Claude Code?

Run `npx skills add microsoft/power-platform-skills --skill compare-cohorts -a claude-code`. Or copy the skill folder (plugins/process-intelligence/skills/compare-cohorts in microsoft/power-platform-skills) into .claude/skills/compare-cohorts in your project. Claude Code loads it when a task matches its description.

How do I install Compare Cohorts in Codex?

Run `npx skills add microsoft/power-platform-skills --skill compare-cohorts -a codex`. Or copy the skill folder (plugins/process-intelligence/skills/compare-cohorts in microsoft/power-platform-skills) into .agents/skills/compare-cohorts in your project. Codex loads it when a task matches its description.

Can I use Compare Cohorts in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/power-platform-skills --skill compare-cohorts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/compare-cohorts, .gemini/skills/compare-cohorts, .github/skills/compare-cohorts and .opencode/skills/compare-cohorts in your project.

What does Compare Cohorts need to run?

SKILL.md names no scripts, command-line tools or credentials: Compare Cohorts is instructions for the agent only. Its frontmatter pre-approves these tools: Read, AskUserQuestion.

Does Compare Cohorts access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Compare Cohorts safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Compare Cohorts use?

Compare Cohorts is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Compare Cohorts use?

About 922 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Compare Cohorts?

Skills that share tags, products or a category with Compare Cohorts: Cohort Analysis and Retention Explorer (phuryn/pm-skills, 27k stars), Geo Compare (sickn33/agentic-awesome-skills, 47k stars), Compare Python Typecheckers (JetBrains/intellij-community, 21k stars) and Recipe Compare Sheet Tabs (googleworkspace/cli, 31k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Compare Cohorts?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/power-platform-skills, which has 984 GitHub stars. The repository holds 93 skills in this directory. The repository was last updated on October 9, 2026.

Source: microsoft/power-platform-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.