Install
$ agentstack add skill-adobe-skills-cja-dimension-analysis ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
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
- Call
findDataViewsto list available data views. If the user hasn't specified one,
ask which data view to analyze. Set it with setDefaultSessionDataViewId.
- 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)
- Ask which analyses to run (or confirm "all" as the default):
- Cardinality, Distribution/Skew, Trends, Anomalies, Data Quality, Comparisons, Forecasting
- 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.
- Ask for the primary metric to use for distribution/skew (default: occurrences or visits).
- Confirm the plan with the user before proceeding.
Phase 1 — Cardinality
For each dimension:
- 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.
- Classify cardinality:
| Level | Threshold | |-------|-----------| | LOW | 10,000 |
- Track cardinality over time (optional):
runReportwith dimension + date breakdown;
count unique dimension values per day/week to see cardinality growth trend.
- Flag HIGH and VERY HIGH dimensions with performance recommendations.
Store: {dimensionId, name, uniqueValueCount, cardinalityLevel, cardinalityTrend}
Phase 2 — Distribution & Skew
For each dimension:
runReportwith dimension as rows + primary metric (e.g., occurrences/visits).
Request at least 50 rows to capture the distribution shape.
- Compute top-N % share (top 1, 5, 10), Gini coefficient, and cumulative distribution.
- Classify skew:
| Label | Condition | |-------|-----------| | Extreme skew | Top 1 value > 50% of total | | High skew | Top 1 value > 30% of total | | Moderate | Top 5 values metric in period 1 by > 10%
- Decline: metric in period 2 10%
- Stable: 50% of total metric on a given day
- Value count that is > 2× the rolling average for that value
- New/disappeared alerts: flag values that appear or disappear mid-period (from Phase 3).
- 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:
- Search for known bad values using
searchDimensionItems:
"Unspecified","None","(empty)","","null","undefined","N/A","unknown"
- Count occurrences with
runReportfiltering to each known bad value. - Compute: missing data % = (sum of bad value occurrences) / total occurrences.
- Flag: dimensions where missing data > 5% (warning), > 20% (critical).
- 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+ dimensions OR requests period comparison.
Side-by-side (2–3 dimensions):
- For each dimension pair, compare cardinality level, skew, top-5 values, error rate.
- Produce a comparison table: dimension A vs B vs C on each metric.
Time-period comparison (single dimension):
- Compare two custom date ranges provided by the user (or auto-detect: first half vs second half).
- For each value: metric in period 1, metric in period 2, delta, % change.
- Surface the biggest movers (top 5 growing, top 5 declining).
Store: {comparisons: [{type, dimensions or periods, table}]}
Phase 7 — Forecasting
For each dimension with sufficient time-series data (>= 7 data points):
- For the top 5–10 values by metric, fit a linear regression to the time series.
- Project 7 periods forward.
- Report:
- Trend direction: Upward / Downward / Flat (based on slope)
- Confidence: High (R² > 0.7), Medium (0.4–0.7), Low ( \
"" \ "" \ [output_directory] \ [--format=html|markdown] \ [--keep-analyses=N] ```
Options:
--format=html(default): Interactive HTML dashboard with Chart.js visualizations--format=markdown: Comprehensive text-based report with tables--keep-analyses=N(default: 0 = keep all): Auto-cleanup of old analysis files
- The script generates a second output file: the report (HTML or markdown).
- Open with
open /dimension_analysis_report_*.html - Present the report path to the user and summarize key findings:
- Dimensions with HIGH/VERY HIGH cardinality
- Dimensions with extreme or high skew
- Any anomalies found
- Data quality issues above warning threshold
- Forecast trends worth watching
CJA MCP Tools Used
| Tool | Phase | Purpose | |------|-------|---------| | findDataViews | 0 | List available data views | | setDefaultSessionDataViewId | 0 | Set active data view for session | | findDimensions | 0 | Discover dimensions by name/search | | describeDimension | 0 | Get dimension metadata and ID | | searchDimensionItems | 1, 5 | Count unique values; search for specific items (error patterns) | | runReport | 1–7 | Primary data engine: dimension rows + metric, with optional date breakdown |
Output Format
HTML Dashboard (default)
Interactive report with:
- Executive summary cards (total dimensions, flagged dimensions, critical issues)
- Per-dimension sections: cardinality badge, distribution chart (Chart.js bar), skew metrics,
trend table, anomaly list, data quality indicators
- Comparison section (if multiple dimensions or period comparison requested)
- Forecast section (if forecasting was run)
- Recommendations panel: grouped by priority (critical → warning → info)
- Design: dark navy-to-blue gradient header, full-width, card-based layout, collapsible sections
Report HTML Style — Required
The generated HTML must use the editorial design system shared across all skills: warm off-white surface, serif display title, red-on-black gradient header, and underline-on-hover text-link nav. Do not introduce corporate-blue chrome, centered headers, or alternative gradients.
Read [template.html](template.html) and use it verbatim. It contains the Google Fonts ` tags, the full CSS block, and the structure. Paste the block into the generated report's , paste the block at the top of , and fill in the {ORGNAME}, {DIMENSIONCOUNT}, {DATERANGE}, {DATAVIEW_NAME}, and {DATE}` placeholders. Do not improvise the styling.
Where {ORG_NAME} is the customer's brand name (with technical suffixes like — Prod, - Demo, MCP, Stage stripped). Never substitute a vendor or product name into the title. The title is all white — do not color any word red. For single-dimension reports, replace the h1 with {ORG_NAME} {DIMENSION_NAME} Report.
Section titles — no phase prefix: Section headings in the HTML report must not include the phase number. Use the plain section name only:
- ✅ "Cardinality" — not "Phase 1 — Cardinality"
- ✅ "Distribution & Skew" — not "Phase 2 — Distribution & Skew"
- ✅ "Trends" — not "Phase 3 — Trends"
- ✅ "Data Quality" — not "Phase 5 — Data Quality / Errors"
Markdown Report
Text-based report with:
- Summary table across all dimensions
- Per-dimension deep-dive sections with inline tables
- Anomaly log
- Recommendations with rationale
The JSON schema consumed by scripts/cja_dimension_analysis.py is derived from the Store: {...} shapes in each phase above. The script knows its own input contract; build the JSON to match the per-phase Store entries.
Example Interaction
> "Can you analyze how our 'Marketing Channel' dimension is performing and break it down by device type?"
- Setup: Confirm the data view with
findDataViews. CallsetDefaultSessionDataViewId. - Dimension discovery: Call
findDimensionsto locate the 'Marketing Channel' dimension and its ID. Confirm it exists and has data withsearchDimensionItems. - Analysis: Run
runReportfor Marketing Channel performance over the last 30 days (visits, conversions, revenue). Identify top and bottom performers. - Breakdown: Run a second report cross-tabbing Marketing Channel by Device Type dimension to surface mobile vs. desktop patterns.
- Report: Run the Python analysis script to generate an interactive HTML report. Open it. Summarize top findings: "Email drives 38% of conversions despite only 12% of traffic. Paid Search converts 2× better on mobile than desktop."
Important Guardrails
- Never modify dimension definitions or project data. This is read-only analysis.
- If a dimension returns no data for the selected date range, try a broader range before giving up.
- For VERY HIGH cardinality dimensions (> 50k values), note that full distribution analysis
may be truncated — use sampled top-N values.
- If
runReporttimes out on a dimension, reduce the row limit and note the limitation. - Always tell the user which analyses are being run and which were skipped.
- For large dimension sets (> 20 dimensions), run phases 1–2 first and ask if the user wants
to proceed with deeper analysis on a subset.
- Let the user know progress as you move through phases: "Phase 1 complete (cardinality for 5
dimensions). Running Phase 2 (distribution)..."
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: adobe
- Source: adobe/skills
- License: Apache-2.0
- Homepage: https://www.adobe.com/ai/overview.html
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.