dx-org-analyze
Skill by forcedotcom
Compares two Salesforce orgs and produces a drift score report, or inventories a single org's configuration. It is for Salesforce admins and developers who need to audit differences between environments.
Install dx-org-analyze
Built from the published package, never by AI.
git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sf-skills/skills/dx-org-analyze ~/.claude/skills/dx-org-analyzeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sf-skills/skills/dx-org-analyze ~/.gemini/antigravity-cli/skills/dx-org-analyzeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
dx-org-analyze is an agent skill for Salesforce. It compares two authenticated orgs side by side and produces a comparison report with a weighted drift score. When only one org is available, or the user asks for an inventory, it analyzes a single org instead. The inventory covers metadata components, org permissions, system permissions, profiles, installed packages, licenses, and org limits.
The skill runs through the Bash tool and the sf CLI, with Python scripts that collect org data and compute the diff. It lists authenticated orgs, checks connectivity, collects data per org, and writes Markdown and JSON reports. It is meant for people who want to compare sandbox against production, audit configuration drift, or check what changed between environments. The skill is read-only and does not deploy or modify either org.
Written from the project's SKILL.md and checked against it.
What it can do
- Org comparisonCompares two orgs side by side and produces a report with a drift score.
- Single-org introspectionProduces an inventory of one org's configuration and metadata.
- Org discoveryLists authenticated orgs from the sf CLI and asks the user to pick a source and target.
- Connectivity checkConfirms each org is reachable with a lightweight query before collecting data.
- Metadata diffShows components only in source, only in target, and shared, per metadata type.
- Permission and profile diffsCompares org permissions, system permissions, and profiles between the two orgs.
- Package and license reviewCompares installed package versions and license quantities.
- Report outputWrites the full result to JSON and a Markdown report in an output directory.
What you need
- Salesforce CLI (sf) version 2.0.0 or later
- Python 3.10 or later
- At least one authenticated Salesforce org, and two for a comparison
Try asking
- Compare my sandbox against production and show the drift score
- Analyze my Salesforce org and give me an inventory of packages and limits
- Diff these two orgs and list what is only in the target
Good to know
- Read-only. It never deploys or modifies either org.
- Large orgs may time out on deep data. Use the --skip-deep-data flag for a faster pass.
- Many differences between Developer and Enterprise editions are edition-inherent, not configuration drift.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/dx-org-analyze/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to dx-org-analyze
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
dx-org-analyze: common questions
What does the drift score measure?
The source describes a weighted overall score of 60% metadata, 30% permissions, and 10% profiles, with a severity level of LOW, MODERATE, HIGH, or CRITICAL.
Can it compare orgs that are not authenticated?
No. The skill skips expired and disconnected orgs, and all authentication must go through the sf CLI.
What happens if I only have one org?
The skill offers single-org introspect mode, which produces an inventory of that org instead of a comparison.
How do I install dx-org-analyze?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is dx-org-analyze free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is dx-org-analyze safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to dx-org-analyze?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
