A Claude Code skill for detecting Salesforce Data 360 metadata drift between environments in a branch-per-org pipeline.
Answers three distinct questions about metadata state across environments:
| Question | Mode |
|---|---|
| Did anyone bypass devops and change an org directly? | org-vs-branch |
| What's deployed in one env but not promoted to the next yet? | org-vs-org |
| What's been merged to one branch but not the other? | branch-vs-branch |
Invoke in Claude Code with phrases like:
- "check drift"
- "compare orgs"
- "what's different between dev and stage"
- "did anyone make manual changes to prod"
- "what's backlogged"
Claude will read config/pipeline.config for your org-to-branch mapping before running anything.
Every run produces:
- Terminal summary — drift counts by metadata category
- HTML report — saved to
reports/and auto-opened in the browser, showing full drift grouped by type with expandable inline diffs
Reports are scoped to the manifest(s) in manifests/ so only relevant data kits appear.
./scripts/4-compare.sh org-vs-branch <org> # manual org changes
./scripts/4-compare.sh org-vs-org <org-a> <org-b> # environment backlog
./scripts/4-compare.sh branch-vs-branch <branch-a> <b> # git backlog- UI deletions may not be detected — when a field mapping is deleted in the Data Cloud UI, the metadata file often still comes back on retrieve due to a platform limitation. Verify deletions directly in Data Cloud Setup → Data Kits.
<externalDataTranField>false positives — stripped automatically bydiff_report.pybefore diffing.
This skill requires a pipeline repo based on d360-deploy-cli-pipeline. Your project repo must have:
config/pipeline.config— definesORG_BRANCH_MAPandPROMOTION_ORDERscripts/4-compare.sh— runs the diffmanifests/— contains yourpackage.xmlmanifest(s) to scope the comparison
Clone or copy from d360-deploy-cli-pipeline to get started.
Register this repo as a Claude Code plugin marketplace, then install the skill:
claude plugin marketplace add https://github.com/everanngitmaker/d360-skill-org-diff.git
claude plugin install d360-org-diff