Adobe Customer Journey Analytics SDR Generator

A production-ready Python CLI that automates the creation of Solution Design Reference (SDR) documentation from your Adobe Customer Journey Analytics (CJA) implementation. Read-only against CJA.
Counterpart to aa_auto_sdr; shares UX conventions, does not share code.
Companion projects: sdr-visualizer turns generated JSON snapshots into self-contained visual catalogs, while sdr-grader provides deterministic, rule-based quality grading.
What It Is
A Solution Design Reference is the essential documentation that bridges your business requirements and your analytics implementation. It catalogs every metric and dimension in your CJA Data View, serving as the single source of truth for what data you're collecting and how it's configured.
The Problem: Manually documenting CJA implementations is time-consuming, error-prone, and quickly becomes outdated. Teams waste hours exporting data, formatting spreadsheets, and cross-referencing configurations—only to repeat the process when things change.
The Solution: This tool connects directly to the CJA API, extracts your complete Data View configuration, validates data quality, and generates professionally formatted documentation in seconds. It also tracks changes between Data Views over time with built-in diff comparison and snapshot capabilities.
How It Works
- Connects to your CJA instance via the Adobe API
- Extracts all metrics, dimensions, and configuration from your Data View(s)
- Validates data quality with core automated checks (duplicates, required fields, null values, missing descriptions, empty datasets, invalid IDs)
- Generates formatted documentation with color-coded quality indicators
Key Features
| Category |
Feature |
Benefit |
| Performance |
Parallel Batch Processing |
Process multiple Data Views simultaneously (3-4x faster) |
|
Validation Caching |
50-90% faster on repeated runs with intelligent result caching |
|
Optimized Validation |
Single-pass DataFrame scanning (30-50% faster) |
|
Configurable Workers |
Scale from 1-256 parallel workers based on your infrastructure |
| Quality |
Core Validation Checks |
Detect duplicates, missing fields, null values, invalid IDs, and empty datasets |
|
Severity Classification |
CRITICAL, HIGH, MEDIUM, LOW with color-coded Excel formatting |
|
Quality Dashboard |
Dedicated sheet with filtering, sorting, and actionable insights |
| Output |
Multiple Formats |
Excel, CSV, JSON, HTML, Markdown—or generate all at once |
|
Professional Excel |
Up to 8 formatted sheets with conditional formatting, frozen headers, auto-filtering |
|
Segments Inventory |
Document segment filters, complexity, and references with --include-segments (SDR + Snapshot Diff) |
|
Derived Field Inventory |
Document derived field logic, complexity, and dependencies with --include-derived (SDR only) |
|
Calculated Metrics Inventory |
Document calculated metric formulas and references with --include-calculated (SDR + Snapshot Diff) |
|
Inventory-Only Mode |
Generate only inventory sheets without standard SDR with --inventory-only |
|
Stdout Support |
Pipe JSON/CSV output directly to other tools with --output - |
|
Auto-Open Files |
Open generated files immediately with --open flag |
| Reliability |
Automatic Retry |
Exponential backoff with jitter for transient network failures |
|
Continue-on-Error |
Batch processing continues even if individual Data Views fail |
|
Pre-flight Validation |
Validates config and connectivity before processing |
|
Circuit Breaker |
Prevent cascading failures with automatic recovery |
|
API Auto-Tuning |
Dynamic worker adjustment based on response times |
|
Shared Validation Cache |
Cross-process cache sharing for batch operations |
| Comparison |
Data View Diff |
Compare two Data Views to identify added, removed, and modified components |
|
Snapshot Support |
Save and compare against baseline snapshots for change tracking |
|
Snapshot-to-Snapshot |
Compare two snapshot files directly without API calls |
|
Auto-Snapshot on Diff |
Automatically save timestamped snapshots during comparisons for audit trails |
|
CI/CD Integration |
Policy exit codes for automation (2=policy threshold exceeded, 3=diff warn threshold exceeded) |
|
GitHub Actions Step Summary |
Automatically writes Markdown summaries to GITHUB_STEP_SUMMARY when available |
|
Smart Name Resolution |
Fuzzy matching suggestions for typos, interactive disambiguation for duplicates |
| Git Integration |
Version-Controlled Snapshots |
Save SDR snapshots in Git-friendly format with auto-commit |
|
Audit Trail |
Full history of every Data View configuration change |
|
Team Collaboration |
Share snapshots via Git repositories with PR-based review workflows |
| Org-Wide Analysis |
Component Distribution |
Analyze metrics/dimensions across all data views with --org-report |
|
Similarity Matrix |
Identify duplicate or near-duplicate data views via Jaccard similarity |
|
Data View Clustering |
Group related data views using hierarchical clustering |
|
Governance Recommendations |
Automated insights for standardization opportunities |
|
CI/CD Exit Codes |
Threshold-based exit codes for governance automation |
|
Trending & Drift |
Compare reports over time to detect changes |
| Multi-Org |
Profile Management |
Switch between Adobe Organizations with --profile client-a |
|
Interactive Profile Setup |
Create profiles interactively with --profile-add |
|
Profile Testing |
Test sign-in and data view access separately with --profile-test |
|
Credential Source Check |
See every credential source and file path with --show-config (no API call) |
| Developer UX |
Quick Stats Mode |
Get metrics/dimensions count instantly with --stats (no full report) |
|
Connection & Dataset Discovery |
--list-connections and --list-datasets for infrastructure inventory |
|
Discovery Inspection |
Drill into a data view's metrics, dimensions, segments, and calculated metrics |
|
Machine-Readable Discovery |
--list-dataviews --format json for scripting integration |
|
Dry-Run Mode |
Test configuration without generating reports |
|
Color-Coded Output |
Global color controls via --no-color, NO_COLOR, and FORCE_COLOR |
|
Enhanced Error Messages |
Contextual error messages with actionable fix suggestions |
|
Comprehensive Logging |
Timestamped logs with rotation for audit trails |
| Agent & Automation |
AGENTS.md Contract |
Machine-parseable tool contract for AI agents (Claude Code, LangChain, etc.) |
|
Python Orchestrator |
Subprocess wrapper for programmatic automation (scripts/orchestrator.py) |
|
Shell Script Templates |
Cron-ready weekly, daily, and quarterly automation examples |
|
GitHub Actions Template |
Copy-paste workflow for scheduled SDR auditing |
|
Exit Code Conventions |
Structured exit codes (0/1/2/3) for agent decision-making |
Who It's For
- Analytics Teams needing up-to-date implementation documentation
- Consultants managing multiple client implementations
- Data Governance teams requiring audit trails and quality tracking
- DevOps Engineers automating CJA audits in CI/CD pipelines
Quick Start
Install from PyPI (recommended)
The tool is published on PyPI, so most users can install it without cloning. uv is recommended:
uv tool install cja-auto-sdr # isolated install; puts `cja-auto-sdr` on your PATH
# or run once without installing:
uvx cja-auto-sdr --list-dataviews
# or with plain pip:
pip install cja-auto-sdr
Optional features ship as extras:
uv tool install "cja-auto-sdr[full]" # clustering + env + shell completion + notion
Verify with cja-auto-sdr --version, then skip ahead to Configure Credentials.
To set up a development checkout from source instead, follow the numbered steps below.
1. Clone the Repository
# Clone the repository
git clone https://github.com/brian-a-au/cja_auto_sdr.git
cd cja_auto_sdr
2. Install Dependencies
macOS/Linux:
# Install uv package manager (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install project dependencies
uv sync
Windows (PowerShell):
# Install uv package manager
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Install project dependencies
uv sync
If uv doesn't work, use native Python instead (recommended for Windows):
python -m venv .venv
.venv\Scripts\activate
pip install -e .
Windows Users: If you encounter issues with uv run or NumPy import errors on Windows, we recommend using Python directly. See the Windows-Specific Issues section in the troubleshooting guide for detailed solutions.
Running commands: You have two equivalent options:
uv run cja_auto_sdr ... — works immediately on macOS/Linux, may have issues on Windows
cja_auto_sdr ... — after activating the venv: source .venv/bin/activate (Unix) or .venv\Scripts\activate (Windows)
This guide uses uv run. Windows users should activate the venv first (pip install -e . makes the command available). The Common Use Cases table omits the prefix for brevity.
3. Configure Credentials
Get your credentials from Adobe Developer Console (see QUICKSTART_GUIDE for detailed steps).
⚠ Important: Your Adobe Developer Console project must have both the CJA API and the AEP (Experience Platform) API added. The AEP API associates your service account with an Experience Platform product profile, which is required for CJA API authentication. See the Quickstart Guide for setup instructions.
Option A: Configuration File (Quickest)
Create a config.json file with your Adobe credentials:
# Copy the example template
cp config.json.example config.json
# Or generate a template (creates config.sample.json)
uv run cja_auto_sdr --sample-config
# Edit config.json with your credentials
Note: By default, the tool reads ./config.json from your current working directory. Use --config-file /path/to/config.json to load a file from a different location or filename.
{
"org_id": "YOUR_ORG_ID@AdobeOrg",
"client_id": "YOUR_CLIENT_ID",
"secret": "YOUR_CLIENT_SECRET",
"scopes": "your_scopes_from_developer_console"
}
Option B: Environment Variables (Recommended for CI/CD)
Use a .env file (copy from .env.example) or export directly: