/cja-dimension-analysis
Comprehensive dimension analysis and reporting for CJA. Use this skill whenever the user wants to analyze one or more dimensions — including cardinality, distribution/skew, trends, anomalies, data quality errors, comparisons, and forecasting. Also trigger when someone asks "what
Claude Code
$ npx -y skills add adobe/skills --skill cja-dimension-analysis --agent claude-code
Codex
$ npx skills add adobe/skills --skill cja-dimension-analysis -a codex -y
Cursor
$ npx skills add adobe/skills --skill cja-dimension-analysis -a cursor -y
Gemini CLI
$ npx skills add adobe/skills --skill cja-dimension-analysis -a gemini-cli -y
GitHub Copilot
$ npx skills add adobe/skills --skill cja-dimension-analysis -a github-copilot -y
OpenCode
$ npx skills add adobe/skills --skill cja-dimension-analysis -a opencode -y
Windsurf
$ npx skills add adobe/skills --skill cja-dimension-analysis -a windsurf -y
SKILL.md
cja-dimension-analysis.SKILL.mdname: cja-dimension-analysis
description: >
Comprehensive dimension analysis and reporting for CJA. Use this skill whenever the user
wants to analyze one or more dimensions — including cardinality, distribution/skew, trends,
anomalies, data quality errors, comparisons, and forecasting. Also trigger when someone
asks "what are the top values for...", "dimension health", "explore this dimension",
"dimension dashboard", "dimension statistics", "data quality check on a dimension",
"dimension cardinality", "dimension trends", "dimension skew", "dimension anomalies",
"compare dimensions", or any similar request to understand what's inside a CJA dimension.
Produces an interactive HTML dashboard or a markdown report. Works with the CJA MCP server.
license: Apache-2.0
metadata:
author: Adobe
version: "1.0.0"
CJA Dimension Analysis
Analyze one or more CJA dimensions to understand their cardinality, distribution, trends, anomalies, data quality issues, and forecasts. Produces an actionable report that helps teams understand what's inside their dimensions and where to focus attention.
Workflow
Execute phases in order. Each phase is **selectable** — the user can ask for a subset (e.g., "just cardinality and errors") or the full analysis. Default is all phases.
Phase 0 — Setup
1. Call `findDataViews` to list available data views. If the user hasn't specified one, ask which data view to analyze. Set it with `setDefaultSessionDataViewId`. 2. Ask which dimensions to analyze. Options:
- **Named dimensions**: "Analyze Page Name and Browser Type"
- **By ID**: user provides dimension IDs directly
- **All dimensions**: warn that this may be slow; ask for a limit (default: top 50 by name)
3. Ask which analyses to run (or confirm "all" as the default):
- Cardinality, Distribution/Skew, Trends, Anomalies, Data Quality, Comparisons, Forecasting
4. Ask for the date range. If the user hasn't specified one, test a few ranges to find data:
- Try last 30 days, last 90 days, last 6 months, last year — use the first that returns rows.
5. Ask for the primary metric to use for distribution/skew (default: occurrences or visits). 6. Confirm the plan with the user before proceeding.
Phase 1 — Cardinality
For each dimension:
1. Call `searchDimensionItems(dimensionId, limit: 50000)` to estimate unique value count, or `runReport` with the dimension as rows and a count metric to get row count. 2. Classify cardinality: | Level | Threshold | |-------|-----------| | LOW | < 100 unique values | | MEDIUM | 100 – 1,000 | | HIGH | 1,000 – 10,000 | | VERY HIGH | > 10,000 | 3. Track cardinality over time (optional): `runReport` with dimension + date breakdown; count unique dimension values per day/week to see cardinality growth trend. 4. Flag HIGH and VERY HIGH dimensions with performance recommendations.
Store: `{dimensionId, name, uniqueValueCount, cardinalityLevel, cardinalityTrend}`
Phase 2 — Distribution & Skew
For each dimension:
1. `runReport` with dimension as rows + primary metric (e.g., occurrences/visits). Request at least 50 rows to capture the distribution shape. 2. Compute top-N % share (top 1, 5, 10), Gini coefficient, and cumulative distribution. 3. Classify skew: | Label | Condition | |-------|-----------| | **Extreme skew** | Top 1 value > 50% of total | | **High skew** | Top 1 value > 30% of total | | **Moderate** | Top 5 values < 70% of total | | **Long tail** | Top 10 values < 50% of total | 4. Note: per-value breakdown with percentage and cumulative %.
Store: `{dimensionId, distribution: [{value, metric, pct, cumulative}], gini, skewLabel, top1Pct, top5Pct, top10Pct}`
Phase 3 — Trends
For each dimension:
1. `runReport` with dimension + date granularity (day or week depending on range). Compare two periods: first half vs second half of the selected date range. 2. Identify:
- **New values**: appeared in period 2 but not period 1
- **Disappeared values**: present in period 1, absent in period 2
- **Growth**: metric in period 2 > metric in period 1 by > 10%
- **Decline**: metric in period 2 < metric in period 1 by > 10%
- **Stable**: < 10% change between periods
3. Assign trend badges per value: 🟢 Growing | 🔴 Declining | 🟡 Stable | 🆕 New | ⬜ Disappeared
Store: `{dimensionId, periodComparison: {period1, period2, changes: [{value, p1Metric, p2Metric, pctChange, badge}]}, newValues: [], disappearedValues: []}`
Phase 4 — Anomalies
For each dimension:
1. From the Phase 3 time-series, compute rolling mean and stddev per dimension value. 2. **Z-score detection**: flag (value, date) pairs where the z-score exceeds the threshold (default: 2.0; sensitive: 1.5; conservative: 3.0). 3. **Threshold alerts**:
- Any single value holding > 50% of total metric on a given day
- Value count that is > 2× the rolling average for that value
4. **New/disappeared alerts**: flag values that appear or disappear mid-period (from Phase 3). 5. Collect: anomaly type (spike, drop, new, disappeared, threshold), dimension value, date, magnitude.
Store: `{dimensionId, anomalies: [{value, date, type, magnitude, zScore}]}`
Phase 5 — Data Quality / Errors
For each dimension:
1. Search for known bad values using `searchDimensionItems`:
- `"Unspecified"`, `"None"`, `"(empty)"`, `""`, `"null"`, `"undefined"`, `"N/A"`, `"unknown"`
2. Count occurrences with `runReport` filtering to each known bad value. 3. Compute: missing data % = (sum of bad value occurrences) / total occurrences. 4. Flag: dimensions where missing data > 5% (warning), > 20% (critical). 5. If the dimension has an expected format (URL, email, date), note it — but don't auto-validate patterns unless the user asks.
Store: `{dimensionId, errorPatterns: [{pattern, count, pct}], missingDataPct, missingDataSeverity}`
Phase 6 — Comparisons (multi-dimension or time-period)
This phase runs when the user is analyzing 2+
Read more
name: cja-dimension-analysis description: > Comprehensive dimension analysis and reporting for CJA. Use this skill whenever the user wants to analyze one or more dimensions — including cardinality, distribution/skew, trends, anomalies, data quality errors, comparisons, and forecasting. Also trigger when someone asks "what are the top values for...", "dimension health", "explore this dimension", "dimension dashboard", "dimension statistics", "data quality check on a dimension", "dimension cardinality", "dimension trends", "dimension skew", "dimension anomalies", "compare dimensions", or any similar request to understand what's inside a CJA dimension. Produces an interactive HTML dashboard or a markdown report. Works with the CJA MCP server. license: Apache-2.0 metadata: author: Adobe version: "1.0.0"
CJA Dimension Analysis
Analyze one or more CJA dimensions to understand their cardinality, distribution, trends, anomalies, data quality issues, and forecasts. Produces an actionable report that helps teams understand what's inside their dimensions and where to focus attention.
Workflow
Execute phases in order. Each phase is **selectable** — the user can ask for a subset (e.g., "just cardinality and errors") or the full analysis. Default is all phases.
Phase 0 — Setup
1. Call `findDataViews` to list available data views. If the user hasn't specified one, ask which data view to analyze. Set it with `setDefaultSessionDataViewId`. 2. Ask which dimensions to analyze. Options:
- **Named dimensions**: "Analyze Page Name and Browser Type"
- **By ID**: user provides dimension IDs directly
- **All dimensions**: warn that this may be slow; ask for a limit (default: top 50 by name)
3. Ask which analyses to run (or confirm "all" as the default):
- Cardinality, Distribution/Skew, Trends, Anomalies, Data Quality, Comparisons, Forecasting
4. Ask for the date range. If the user hasn't specified one, test a few ranges to find data:
- Try last 30 days, last 90 days, last 6 months, last year — use the first that returns rows.
5. Ask for the primary metric to use for distribution/skew (default: occurrences or visits). 6. Confirm the plan with the user before proceeding.
Phase 1 — Cardinality
For each dimension:
1. Call `searchDimensionItems(dimensionId, limit: 50000)` to estimate unique value count, or `runReport` with the dimension as rows and a count metric to get row count. 2. Classify cardinality: | Level | Threshold | |-------|-----------| | LOW | < 100 unique values | | MEDIUM | 100 – 1,000 | | HIGH | 1,000 – 10,000 | | VERY HIGH | > 10,000 | 3. Track cardinality over time (optional): `runReport` with dimension + date breakdown; count unique dimension values per day/week to see cardinality growth trend. 4. Flag HIGH and VERY HIGH dimensions with performance recommendations.
Store: `{dimensionId, name, uniqueValueCount, cardinalityLevel, cardinalityTrend}`
Phase 2 — Distribution & Skew
For each dimension:
1. `runReport` with dimension as rows + primary metric (e.g., occurrences/visits). Request at least 50 rows to capture the distribution shape. 2. Compute top-N % share (top 1, 5, 10), Gini coefficient, and cumulative distribution. 3. Classify skew: | Label | Condition | |-------|-----------| | **Extreme skew** | Top 1 value > 50% of total | | **High skew** | Top 1 value > 30% of total | | **Moderate** | Top 5 values < 70% of total | | **Long tail** | Top 10 values < 50% of total | 4. Note: per-value breakdown with percentage and cumulative %.
Store: `{dimensionId, distribution: [{value, metric, pct, cumulative}], gini, skewLabel, top1Pct, top5Pct, top10Pct}`
Phase 3 — Trends
For each dimension:
1. `runReport` with dimension + date granularity (day or week depending on range). Compare two periods: first half vs second half of the selected date range. 2. Identify:
- **New values**: appeared in period 2 but not period 1
- **Disappeared values**: present in period 1, absent in period 2
- **Growth**: metric in period 2 > metric in period 1 by > 10%
- **Decline**: metric in period 2 < metric in period 1 by > 10%
- **Stable**: < 10% change between periods
3. Assign trend badges per value: 🟢 Growing | 🔴 Declining | 🟡 Stable | 🆕 New | ⬜ Disappeared
Store: `{dimensionId, periodComparison: {period1, period2, changes: [{value, p1Metric, p2Metric, pctChange, badge}]}, newValues: [], disappearedValues: []}`
Phase 4 — Anomalies
For each dimension:
1. From the Phase 3 time-series, compute rolling mean and stddev per dimension value. 2. **Z-score detection**: flag (value, date) pairs where the z-score exceeds the threshold (default: 2.0; sensitive: 1.5; conservative: 3.0). 3. **Threshold alerts**:
- Any single value holding > 50% of total metric on a given day
- Value count that is > 2× the rolling average for that value
4. **New/disappeared alerts**: flag values that appear or disappear mid-period (from Phase 3). 5. Collect: anomaly type (spike, drop, new, disappeared, threshold), dimension value, date, magnitude.
Store: `{dimensionId, anomalies: [{value, date, type, magnitude, zScore}]}`
Phase 5 — Data Quality / Errors
For each dimension:
1. Search for known bad values using `searchDimensionItems`:
- `"Unspecified"`, `"None"`, `"(empty)"`, `""`, `"null"`, `"undefined"`, `"N/A"`, `"unknown"`
2. Count occurrences with `runReport` filtering to each known bad value. 3. Compute: missing data % = (sum of bad value occurrences) / total occurrences. 4. Flag: dimensions where missing data > 5% (warning), > 20% (critical). 5. If the dimension has an expected format (URL, email, date), note it — but don't auto-validate patterns unless the user asks.
Store: `{dimensionId, errorPatterns: [{pattern, count, pct}], missingDataPct, missingDataSeverity}`
Phase 6 — Comparisons (multi-dimension or time-period)
This phase runs when the user is analyzing 2+
Skills that teach AI coding agents to work with Adobe products. A skill is a folder with a SKILL.md that an agent loads when a task calls for it (agentskills.io).
Other skills on skills.
More skills from other plugins.
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
agent-builder
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…
Questions about cja-dimension-analysis.
- Which coding agents can use cja-dimension-analysis?
- cja-dimension-analysis installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

