Agent skill

Aa Segment Performance Comparator

by adobe in adobe/skills

Compares the performance of two or more audience segments across key metrics side by side.

Apache-2.0Auto-check passedBusiness, Finance & HR

Install Aa Segment Performance Comparator

skills CLI
$ npx skills add adobe/skills --skill aa-segment-performance-comparator -a claude-code

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

GitHub CLI
$ gh skill install adobe/skills aa-segment-performance-comparator --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/adobe/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/adobe-analytics/skills/aa-segment-performance-comparator .claude/skills/aa-segment-performance-comparator && 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
aa-segment-performance-comparator
GitHub stars
195
Token cost
~2.4k tokens
SKILL.md length
984 words
Files
3
Skills in repo
105
Repo updated
First seen
Licence
Apache-2.0

At a glance

Compares the performance of two or more audience segments across key metrics side by side.

  • Works in 7 steps: Setup → Select Segments → Select Metrics → …
  • Someone wants to compare audiences
  • SKILL.md covers AA MCP Tools Used, Phase 0 — Setup, Phase 1 — Select Segments and Phase 2 — Select Metrics, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Aa Segment Performance Comparator is an agent skill from adobe/skills. Compares the performance of two or more audience segments across key metrics side by side. Use this skill when someone wants to compare audiences or visitor groups — for example, "how do mobile visitors compare to desktop on conversion," "compare new vs. returning visitors," "show me the difference between these two segments," "compare these audiences on our KPIs," or "which segment performs better." Also trigger for "segment comparison" or "audience comparison."

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `evals/evals.json`).

It sits in Business, Finance & HR, covering OKRs and executive reporting. The repository describes itself as: Adobe Skills for Agents. The licence is Apache-2.0.

When your agent uses it

  • Someone wants to compare audiences
  • Visitor groups — for example
  • How do mobile visitors compare to desktop on conversion
  • Segment comparison

Example prompts

  • “how do mobile visitors compare to desktop on conversion,”
  • “compare new vs. returning visitors,”
  • “show me the difference between these two segments,”
  • “/aa-segment-performance-comparator”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Setup
  2. Select Segments
  3. Select Metrics
  4. Select Date Range
  5. Run Comparison Reports
  6. Build the Comparison Matrix
  7. Generate HTML Comparison Report

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    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

Aa Segment Performance Comparator loads about 2.4k tokens when it runs. Until then it costs about 125 tokens; SKILL.md has 984 words of instructions outside code blocks.

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

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 adobe/skills at commit cbc9952, republished under its Apache-2.0 licence (© adobe). 984 words, ~2,448 tokens.

Download SKILL.mdSave it as .claude/skills/aa-segment-performance-comparator/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
aa-segment-performance-comparator
description
Compares the performance of two or more audience segments across key metrics side by side. Use this skill when someone wants to compare audiences or visitor groups — for example, "how do mobile visitors compare to desktop on conversion," "compare new vs. returning visitors," "show me the difference between these two segments," "compare these audiences on our KPIs," or "which segment performs better." Also trigger for "segment comparison" or "audience comparison."
license
Apache-2.0
metadata.author
Adobe
metadata.version
1.0

Segment Performance Comparator (Adobe Analytics)

Compare the performance of two or more audience segments across key metrics side by side to understand how different visitor groups behave. Uses direct segment-vs-segment comparison to determine a winner, loser, and spread for each metric, with a separate context panel showing segment sizing.

AA Call Budget: AA's runReport accepts a single segmentId per call. For N segments × M metrics the comparison requires N×M calls, plus 1 baseline call for the segment-size context panel. For 3 segments × 5 metrics = 16 calls. Limit to 4 segments and 6 metrics for practical performance. Always confirm the segment/metric list with the user before starting.


AA MCP Tools Used

  • findReportSuites — select report suite
  • setSessionDefaults — set session context (reportSuiteId + globalCompanyId)
  • findSegments — discover and select comparison segments
  • findMetrics — resolve metric IDs
  • runReport — one call per segment per metric, plus one unsegmented call for sizing context

Phase 0 — Setup

  1. Confirm report suite with findReportSuites / setSessionDefaults.
findReportSuites(globalCompanyId: "<gcid>", page: 0, limit: 10)
setSessionDefaults(globalCompanyId: "<gcid>", reportSuiteId: "<rsid>")

Phase 1 — Select Segments

Ask the user which segments to compare. If not specified, prompt:

"Which visitor audiences would you like to compare? For example: Mobile vs. Desktop, New vs. Returning, Paid Search vs. Organic, or specific named segments from your library."

Search for and confirm each segment:

findSegments(page: 0, limit: 50)
# Filter locally by name. Built-in IDs: "Paid_Search", "Purchasers", "Return_Visits"

Note: findSegments does not accept a searchTerm parameter. Retrieve all segments and filter by name locally. Built-in template segments have short IDs like "Paid_Search" that can be passed directly as segmentIds in runReport.

If the user requests a segment that doesn't exist by name, offer to build it first using the aa-segment-builder skill, or suggest the closest existing segment from search results.

Limit: 4 segments maximum per comparison. Advise this limit upfront.


Phase 2 — Select Metrics

Ask the user which metrics to compare. Suggest a balanced mix:

  • Volume: metrics/visits
  • Engagement: metrics/pageviews, metrics/bouncerate, metrics/pagespervisit
  • Conversion: metrics/orders, conversion rate calculated metric
  • Revenue: metrics/revenue

Call findMetrics to resolve each metric ID:

findMetrics(expansions: "componentType,categories", page: 0, limit: 200)
# Filter locally by name. Key IDs: metrics/visits, metrics/revenue, metrics/orders, metrics/bouncerate

Limit: 6 metrics maximum. Confirm the final list with the user:

"I'll compare these 3 segments across 5 metrics. This requires 16 report calls (3 segments × 5 metrics + 1 sizing call). OK to proceed?"


Phase 3 — Select Date Range

Ask for or confirm the analysis period:

  • Last 7 days (good for quick comparison)
  • Last 30 days (recommended default)
  • Last 90 days (for seasonal smoothing)
  • Custom range

Phase 4 — Run Comparison Reports

4.1 Segment sizing (context only)

Run a single unsegmented call for metrics/visits to get the total population size, then one call per segment for metrics/visits to compute each segment's share of total. These sizing values populate the context panel — they are not used in the comparison matrix.

runReport(
  dimensionId: "variables/page",
  metricIds: "metrics/visits",
  startDate: "<start>",
  endDate: "<end>",
  limit: 1
)
# allVisitorVisits = summaryData.totals[0]
runReport(
  dimensionId: "variables/page",
  metricIds: "metrics/visits",
  segmentIds: "<segmentId>",
  startDate: "<start>",
  endDate: "<end>",
  limit: 1
)
# segmentVisits = summaryData.totals[0]; shareOfTotal = segmentVisits / allVisitorVisits × 100

Reuse these results if metrics/visits is already a comparison metric.

4.2 Per segment per metric

For each segment × metric combination:

runReport(
  dimensionId: "variables/page",
  metricIds: "<metricId>",          # note: "metricIds" not "metricId"
  segmentIds: "<segmentId>",        # note: "segmentIds" not "segmentId"
  startDate: "<start>",
  endDate: "<end>",
  limit: 1
)
# Total = summaryData.totals[0]

Read totals from summaryData.totals[0] (not rows[]). dimensionId is required — use any dimension with limit: 1 for aggregate totals. Segment IDs are the raw id field from findSegments.

Track progress: "Fetching Segment 2 of 3, metric 3 of 5..."


Phase 5 — Build the Comparison Matrix

The matrix compares segments directly to each other — no baseline column.

For each metric row, compute:

Computed ValueFormula
Segment valueRaw from runReport
WinnerSegment with the best value for this metric
LoserSegment with the worst value for this metric
Spread(max − min) / max × 100
Significant?true if spread > 10%

For metrics where lower is better (bounce rate, cost per acquisition), invert the winner/loser logic — the segment with the lowest value wins. Mark these metrics clearly in the report.

Show full SKILL.md (411 more words)Show less
5.1 Segment profile summary

For each segment, compute an overall performance profile:

  • Wins: count of metrics where this segment ranks #1
  • Losses: count of metrics where this segment ranks last
  • Biggest edge: metric where this segment outperforms others by the widest spread
  • Visits share: percentage of total visits from the context panel

Phase 6 — Generate HTML Comparison Report

Build the comparison report inline and write to /tmp/aa_segment_comparator_report_<YYYY-MM-DD_HHMMSS>.html.

HTML template

Read template.html and use it verbatim. Do not improvise the HTML structure or CSS — only fill in the {PLACEHOLDER} tokens ({ORG_NAME}, {DATE_RANGE}, {REPORT_SUITE}, {GENERATED_DATE}, {SEGMENT_NAMES_SUMMARY}, {SEGMENT_NAME}, {COLOR}, {VISITOR_COUNT}, {NUM_SEGMENTS}, {NUM_METRICS}, {NUM_SIGNIFICANT}, {OVERALL_WINNER}, {METRIC_NAME}, {VALUE}, {WINNER_SEGMENT}, {SPREAD}, {INSIGHT_TEXT}) and repeat segment chips, matrix rows, and insight boxes once per data item. Use the cell-winner / cell-loser classes per Phase 5 winner/loser rules.

Section titles — no phase prefix: Section headings in the HTML report must not include the phase number. Use the plain section name only (e.g., "Segment Comparison" not "Phase 2 — Segment Comparison", "Metric Details" not "Phase 3 — Metric Details").

Write to /tmp/aa_segment_comparator_report_<YYYY-MM-DD_HHMMSS>.html and open:

bash
open /tmp/aa_segment_comparator_report_<YYYY-MM-DD_HHMMSS>.html

Inline Summary (Always Deliver)

Always follow the HTML report with a text summary:

Segment Comparison — [Date Range] | Report Suite: [Name]

Segment Context:  Mobile 48,200 visits (38.7%)  Desktop 72,400 (58.2%)

                  Mobile   Desktop   Winner     Spread
────────────────  ───────  ────────  ─────────  ──────
Visits            48,200   72,400    Desktop    33%
Bounce Rate       61.4%    40.1% ✓  Desktop    35%  ✦
Conversion Rate    1.2%     3.1% ✓  Desktop    61%  ✦
Revenue           $9,400   $31,200   Desktop    70%  ✦

✦ = spread > 10%  ✓ = winner

Key findings:
- Desktop converts 2.6× better (3.1% vs 1.2%). Prioritize mobile checkout.
- Paid Search (not shown) has highest CVR at 4.8% — most efficient channel.

Guardrails

  • Confirm segments and metrics with the user before starting — the call count is N×M and can grow quickly.
  • For bounce rate and other "lower is better" metrics, invert the winner logic — the segment with the lowest value wins. Label these metrics clearly in the report (e.g., "↓ lower is better").
  • If a segment returns very few visits (< 1,000), note that results may not be statistically reliable.
  • Do not show baseline delta percentages (segment vs. All Visitors) in the comparison matrix. Segments are subsets of the total population, so count-metric deltas are always negative and misleading. Use the context panel for segment sizing instead.

Example Interaction

"Compare our mobile and desktop visitors on conversion metrics."

  1. Confirm report suite.
  2. Find segments: "Mobile Devices" and "Desktop" (or offer to create them).
  3. Confirm metrics: visits, bounce rate, orders, conversion rate, revenue.
  4. Date range: last 30 days.
  5. Preview: "2 segments × 5 metrics + 1 sizing call = 11 reports. Proceed?"
  6. Run all reports; announce progress.
  7. Context: Mobile = 48.2k visits (38.7%), Desktop = 72.4k visits (58.2%).
  8. Matrix: Desktop wins 3 of 5 metrics. Conversion rate spread 61%.
  9. Generate HTML report and open.
  10. Insight: "Desktop is your primary conversion engine. Mobile drives volume (39% of visits) but converts at 1.2% vs. Desktop's 3.1% — a 61% spread. Prioritize mobile checkout optimization for the biggest conversion lift opportunity."

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

Files

SKILL.md and 2 other files in plugins/adobe-analytics/skills/aa-segment-performance-comparator of adobe/skills.

  • SKILL.md
  • evals/evals.json
  • template.html

Open the folder on GitHubat commit cbc9952

Compare with similar skills

Aa Segment Performance Comparator 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.

Aa Segment Performance Comparator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Aa Segment Performance Comparator this skilladobe/skills195—~2.4kAutomated safety check: PassApache-2.0
Analytics Strategyrampstackco/claude-skills9351 repos~2.4kAutomated safety check: PassMIT
Pine BacktesterTradersPost/pinescript-agents1671 repos~3.9kAutomated safety check: PassNone
Onboarding Plannerbpinheiroms/dotfiles108—~5.4kAutomated safety check: PassNone
Replit Decksanqiufong/slides-from-anything1321 repos~2.9kAutomated safety check: PassApache-2.0
Building Streamlit Dashboardsiusztinpaul/designing-real-world-ai-agents-workshop512—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Analytics Strategy

    rampstackco/claude-skills

    Design measurement frameworks including event taxonomy, KPI hierarchy, dashboard architecture, attribution models, and analytics implementation strategy.

    935 GitHub starsUsed in 1 repo~2.4k tokens
    Business, Finance & HRAuto-check passed
  • Pine Backtester

    TradersPost/pinescript-agents

    Implements comprehensive backtesting and performance metrics.

    167 GitHub starsUsed in 1 repo~3.9k tokens
    Business, Finance & HRAuto-check passed
  • Onboarding Planner

    bpinheiroms/dotfiles

    Plan high-conversion mobile app onboarding flows from scratch.

    108 GitHub stars~5.4k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Replit Deck

    sanqiufong/slides-from-anything

    Single-file horizontal-swipe HTML deck in the style of Replit Slides's landing-page template gallery.

    132 GitHub starsUsed in 1 repo~2.9k tokens
    Business, Finance & HRAuto-check passed
  • Building Streamlit Dashboards

    iusztinpaul/designing-real-world-ai-agents-workshop

    Building dashboards in Streamlit. An agent skill from iusztinpaul/designing-real-world-ai-agents-workshop.

    512 GitHub stars~1.1k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Massing Bim

    ibuilder/massing

    Drive a Massing BIM/AEC project from an AI agent over MCP — read a project's status, records, CDE, KPI and model-quality checks; run standards-compliance, schedule-risk, embodied-carbon, permit-…

    121 GitHub stars~1.1k tokensUpdated 5 days ago
    Business, Finance & HRAuto-check passed

More from adobe/skills

All 105 skills in this repo
  • Scaffolds, implements, deploys and debugs Adobe Runtime actions in App Builder projects, with templates for webhooks, events, database CRUD, sequences and Asset Compute workers.

    195 GitHub stars~3.1k tokensUpdated yesterday
    Auto-check passed
  • Launches Chrome with an unpacked extension over CDP, opens its sidepanel, popup or options page, and hands over to cdp-connect for clicks, typing and screenshots.

    195 GitHub stars~952 tokensUpdated yesterday
    Auto-check passed
  • Extracts icons, metadata, text, forms, videos and social links from any web page with playwright-cli, with SVG icon classification and cleanup.

    195 GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Page Langs

    adobe/skills

    Detect all languages used on a webpage — both declared (html@lang, hreflang alternate links, nested lang= attributes, meta content-language) and actually present in the body text (Google CLD3 via…

    195 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Page Prep

    adobe/skills

    Prepare any webpage for clean interaction by detecting and removing disruptive overlays (cookie banners, GDPR consent, modals, popups, newsletter signups, paywalls, login walls).

    195 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Page Reduce

    adobe/skills

    Reduce a webpage to a structural skeleton with semantic tokens.

    195 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed

Questions about Aa Segment Performance Comparator

What does Aa Segment Performance Comparator do?

Compares the performance of two or more audience segments across key metrics side by side. Aa Segment Performance Comparator is an agent skill from adobe/skills. Compares the performance of two or more audience segments across key metrics side by side.

When should I use Aa Segment Performance Comparator?

Aa Segment Performance Comparator fits situations like: someone wants to compare audiences; visitor groups — for example; how do mobile visitors compare to desktop on conversion; segment comparison.

How do I install Aa Segment Performance Comparator in Claude Code?

Run `npx skills add adobe/skills --skill aa-segment-performance-comparator -a claude-code`. Or copy the skill folder (plugins/adobe-analytics/skills/aa-segment-performance-comparator in adobe/skills) into .claude/skills/aa-segment-performance-comparator in your project. Claude Code loads it when a task matches its description.

How do I install Aa Segment Performance Comparator in Codex?

Run `npx skills add adobe/skills --skill aa-segment-performance-comparator -a codex`. Or copy the skill folder (plugins/adobe-analytics/skills/aa-segment-performance-comparator in adobe/skills) into .agents/skills/aa-segment-performance-comparator in your project. Codex loads it when a task matches its description.

Can I use Aa Segment Performance Comparator 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 adobe/skills --skill aa-segment-performance-comparator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aa-segment-performance-comparator, .gemini/skills/aa-segment-performance-comparator, .github/skills/aa-segment-performance-comparator and .opencode/skills/aa-segment-performance-comparator in your project.

What does Aa Segment Performance Comparator need to run?

SKILL.md names no scripts, command-line tools or credentials: Aa Segment Performance Comparator is instructions for the agent only.

Does Aa Segment Performance Comparator 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 Aa Segment Performance Comparator 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 Aa Segment Performance Comparator use?

Aa Segment Performance Comparator is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Aa Segment Performance Comparator use?

About 2.4k tokens (SKILL.md is roughly 9.8k 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 Aa Segment Performance Comparator?

Skills that share tags, products or a category with Aa Segment Performance Comparator: Analytics Strategy (rampstackco/claude-skills, 935 stars), Pine Backtester (TradersPost/pinescript-agents, 167 stars), Onboarding Planner (bpinheiroms/dotfiles, 108 stars) and Replit Deck (sanqiufong/slides-from-anything, 132 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Aa Segment Performance Comparator?

adobe (a GitHub organization) maintains it in adobe/skills, which has 195 GitHub stars. The repository holds 105 skills in this directory. The repository was last updated on October 6, 2026.

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