VincentChuWaiChow/vanguard-frontier-agentic/skills/salesforce/salesforce-deployment-validator-skill/SKILL.md
salesforce-deployment-validator-skill
Runs `sf project deploy validate` against a SANDBOX or non-production org to surface deployment issues, test failures, and metadata dependency problems WITHOUT committing changes. T2 sandbox-mutating but reversible (dry-run only — no commit occurs). Production org targets are REFUSED — production deploys require human approval via salesforce-live-guard-agent. Feeds salesforce-change-impact-analyst-agent. TRIGGER when: user wants to validate a deployment package, dry-run a manifest, check pre-dep
- Source repository stars
- 21
- Declared platforms
- 0
- Static risk flags
- 0
- Last source update
- 2026-08-24
- Source checked
- 2026-08-25
Decision brief
What it does: where it fits
Sandbox-only deployment dry-run under T2 scope. This skill validates a deployment package without committing any changes. It is a preflight check, not a deployment. Production org targets are a hard refusal — any commit to production must be routed through salesforce-live-guard-…
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/VincentChuWaiChow/vanguard-frontier-agentic --skill "skills/salesforce/salesforce-deployment-validator-skill"Inspect the Agent Skill "salesforce-deployment-validator-skill" from https://github.com/VincentChuWaiChow/vanguard-frontier-agentic/blob/5e32c1f3b9ba9e9bacae9687f55bed35b5def90f/skills/salesforce/salesforce-deployment-validator-skill/SKILL.md at commit 5e32c1f3b9ba9e9bacae9687f55bed35b5def90f. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Recommended Workflow
Inspect the output for production indicators:
instanceUrl domain matches a known production pattern (seeisSandbox field is false or absenttrailblazer.salesforce.com or login.salesforce.com in the OAuth - 02
Step 1 — Verify target org is NOT production
Inspect the output for production indicators:
instanceUrl domain matches a known production pattern (seeisSandbox field is false or absenttrailblazer.salesforce.com or login.salesforce.com in the OAuth - 03
Step 2 — Refuse if target is production
If Step 1 reveals a production org, emit this refusal immediately:
If Step 1 reveals a production org, emit this refusal immediately:Do not proceed. Do not run any Metadata API call against a production org. - 04
Step 3 — Verify Run As account permissions
Confirm the connected user has: - Deploy (Metadata API) permission — required for validation - Does not have ModifyAllData in production scope — enforced at the Connected App allowlist and profile level
Deploy (Metadata API) permission — required for validationDoes not have ModifyAllData in production scope — enforced at theConfirm the connected user has: - Deploy (Metadata API) permission — required for validation - Does not have ModifyAllData in production scope — enforced at the Connected App allowlist and profile level - 05
Step 4 — Run the validation
Key flags: - --manifest package.xml — always use a manifest (not --source-dir for validation; manifest gives explicit scope control) - --target-org — never inferred; always explicit - --test-level RunSpecifiedTests — preferred for scoped changes (see references/test-selection-st…
--manifest package.xml — always use a manifest (not --source-dir for--target-org — never inferred; always explicit--test-level RunSpecifiedTests — preferred for scoped changes (see
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 97/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 21 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- VincentChuWaiChow/vanguard-frontier-agentic
- Skill path
- skills/salesforce/salesforce-deployment-validator-skill/SKILL.md
- Commit
- 5e32c1f3b9ba9e9bacae9687f55bed35b5def90f
- License
- Apache-2.0
- Collected
- 2026-08-25
- Default branch
- master
View the original SKILL.md
salesforce-deployment-validator-skill
Sandbox-only deployment dry-run under T2 scope. This skill validates a
deployment package without committing any changes. It is a preflight check,
not a deployment. Production org targets are a hard refusal — any commit to
production must be routed through salesforce-live-guard-agent with explicit
human approval.
When This Skill Owns the Task
Use salesforce-deployment-validator-skill when the work requires pre-deploy
validation in a non-production environment:
- "Validate this package.xml against our UAT sandbox before we ship"
- "Dry-run the deployment — I need to see test results before promoting"
- "Check whether the metadata dependencies are all satisfied in staging"
- "Preflight the change set — what will break?"
- "Give me the Apex test coverage delta for this deployment"
This skill NEVER commits changes. The --check-only flag is always
active. The --dry-run semantic is enforced structurally — no commit path
exists in this skill.
Delegate elsewhere when:
| Situation | Skill to use |
|---|---|
| Target is a production org (any commit) | T3 — salesforce-live-guard-agent (HITL required) |
| Only static metadata review needed (no org) | salesforce-metadata-review-skill |
| Bulk data operations in sandbox | salesforce-bulk-data-ops-skill |
| SCA / code quality review of Apex | salesforce-apex-lwc-code-review-skill |
| Change impact risk assessment after validation | salesforce-change-impact-analyst-agent |
Required Context to Gather First
Before running any validation, confirm:
- Deployment package path or manifest — local directory path containing
package.xmland theforce-app/tree, or a path to a barepackage.xmlmanifest. Accept only local filesystem paths, not org-to-org migration paths. - Target sandbox alias — the
--target-orgvalue recognized bysf org list. Never accept a raw instance URL or session token as input. - Expected test classes — list of Apex test class API names to run with
--test-level RunSpecifiedTests. If the deployment touches Apex, a test specification is mandatory. - Change impact summary (optional but preferred) — the output of
salesforce-change-impact-analyst-agentif it has already run. This pre-populates the risk context in the audit envelope. - Validation scope — which metadata types are included? (Apex classes, triggers, flows, profiles, custom objects, etc.) Affects test selection strategy.
If any of these are missing, ask before proceeding. Do not guess the target org alias — a wrong guess could validate against the wrong environment.
Recommended Workflow
Step 1 — Verify target org is NOT production
sf org display --target-org <alias>
Inspect the output for production indicators:
instanceUrldomain matches a known production pattern (seereferences/production-refusal-rules.md)isSandboxfield isfalseor absenttrailblazer.salesforce.comorlogin.salesforce.comin the OAuth endpoint (non-sandbox pattern)orgTypeindicatesProductionor the org ID prefix pattern matches a known production org
If any indicator suggests production: STOP. Emit a refusal. Do not proceed.
Step 2 — Refuse if target is production
If Step 1 reveals a production org, emit this refusal immediately:
refusal:
reason: "production_org_detected"
target_org_alias: "<alias>"
detected_indicators: ["<indicator1>", "<indicator2>"]
instruction: "Route to salesforce-live-guard-agent for HITL approval before any production deployment."
audit_timestamp: "<ISO-8601-UTC>"
Do not proceed. Do not run any Metadata API call against a production org.
Step 3 — Verify Run As account permissions
Confirm the connected user has:
Deploy(Metadata API) permission — required for validation- Does not have
ModifyAllDatain production scope — enforced at the Connected App allowlist and profile level
If the Connected App allowlist does not include the target sandbox org ID, stop and escalate to the org administrator.
Step 4 — Run the validation
sf project deploy validate \
--manifest package.xml \
--target-org <sandbox_alias> \
--test-level RunSpecifiedTests \
--tests <TestClass1> <TestClass2> \
--wait 30 \
--json
Key flags:
--manifest package.xml— always use a manifest (not--source-dirfor validation; manifest gives explicit scope control)--target-org <alias>— never inferred; always explicit--test-level RunSpecifiedTests— preferred for scoped changes (seereferences/test-selection-strategy.mdfor when to use RunLocalTests)--wait 30— wait up to 30 minutes for async validation; adjust to org test suite size--json— structured output for downstream parsing
Do NOT pass --dry-run with intent to remove it — this flag is not how
Salesforce CLI controls commit vs. validate. The validate subcommand
is inherently non-committing. The deploy commit path is a separate command
(sf project deploy start) which this skill never calls.
Step 5 — Capture validation result and test outcomes
From the JSON output, extract:
status—Succeeded/Failed/InProgressdeploymentId— the validation deployment ID (not a commit; does not persist changes)numberTestsTotal,numberTestsCompleted,numberTestsFailednumberComponentErrorsrunTestResult.codeCoverageWarnings— classes below 75% thresholdrunTestResult.failures— individual test failure messagesdetails.componentFailures— specific metadata component errors and dependency issues
Step 6 — Emit audit envelope
Populate and emit the audit envelope (see Audit Envelope Schema). The envelope must be emitted regardless of validation outcome — including on refusals.
Step 7 — Hand off to change-impact-analyst-agent
Package the validation result, test outcomes, and audit envelope as the
input payload for salesforce-change-impact-analyst-agent for risk
assessment. Required handoff fields:
audit_envelopevalidation_verdicttest_resultscoverage_deltadependency_issuesrefusal_triggers_fired
Step 8 — Stop conditions
Stop immediately and do not proceed if any stop condition is met (see Stop Conditions section).
Quality Scoring Rubric (100-point)
Score the validation execution quality before emitting results. The production-refusal gate must pass — failure voids the score.
| Dimension | Points | What earns full marks |
|---|---|---|
| Production refusal gate | CRITICAL | Sandbox verified before any API call; production target causes immediate refusal |
| Test coverage | 25 | All changed Apex classes covered by specified tests; aggregate coverage ≥ 75%; no coverage warnings |
| Validation result clarity | 25 | JSON output parsed; all component errors enumerated with type and detail; no silent failures |
| Dependency analysis | 20 | All componentFailures with problemType: Missing enumerated; missing dependencies identified by name |
| Audit envelope | 15 | All required audit fields present; package manifest hash computed; timestamp accurate |
| Handoff routing | 15 | Structured payload prepared for salesforce-change-impact-analyst-agent; refusal triggers enumerated |
Scoring penalties:
- Production refusal gate not checked before API call: score voided (CRITICAL failure)
- Test specification missing for Apex changes: −25
--waittimeout expired with inconclusive result: −15- Audit envelope incomplete or missing: −20
- Component failures not enumerated in output: −15
Refusal Triggers
Stop immediately and emit a refusal envelope when any of these conditions are detected:
| Trigger | Action |
|---|---|
| Target org identified as production | Hard refusal — do not proceed; route to salesforce-live-guard-agent |
Validation request implies commit (sf project deploy start) | Refuse — this skill never calls the commit command |
| Test specification missing for deployment containing Apex changes | Stop — require test class list before proceeding |
| Cross-org deploy from a production sandbox refresh (prod-sourced sandbox with prod data) | Escalate — treat as production-equivalent for data privacy |
| Connected App allowlist does not include target sandbox | Stop — escalate to org administrator |
--check-only false equivalent intent expressed | Refuse — this skill is validate-only |
Audit Envelope Schema
Every validation emits an audit envelope. The envelope travels with the validation result to any downstream skill or agent.
audit_envelope:
skill_id: "salesforce-deployment-validator-skill"
skill_version: "0.1.0"
target_org_alias: "<alias>"
target_org_type: "sandbox" # must be 'sandbox'; never 'production'
package_manifest_path: "<local path to package.xml>"
package_manifest_hash: "<sha256 of package.xml content>"
validation_id: "<deploymentId from sf CLI JSON output>"
test_level_used: "RunSpecifiedTests | RunLocalTests | RunAllTestsInOrg"
tests_specified: ["<TestClass1>", "<TestClass2>"]
test_results_summary:
total: <integer>
passed: <integer>
failed: <integer>
failures: ["<ClassName.methodName: failure reason>"]
coverage_delta:
classes_below_threshold: ["<ClassName>"]
aggregate_coverage_percent: <0-100>
deployment_proposed: false # always false — this skill never commits
component_errors:
- component: "<MetadataType>.<ApiName>"
problem_type: "<Missing|Error|Warning>"
problem: "<error message>"
refusal_triggers_fired: ["<trigger name or 'none'>"]
audit_user_role: "<Connected App OAuth username>"
timestamp: "<ISO-8601-UTC>"
Output Format
validation_verdict: "Succeeded | Failed | Refused | Inconclusive"
test_results:
total: <integer>
passed: <integer>
failed: <integer>
coverage_warnings: ["<ClassName: X% coverage>"]
failures:
- class: "<TestClassName>"
method: "<testMethodName>"
message: "<failure detail>"
coverage_delta:
aggregate_coverage_percent: <0-100>
classes_below_75_percent: ["<ClassName>"]
notes: "<coverage trend vs. last known baseline if available>"
dependency_issues:
- type: "<MetadataType>"
api_name: "<ApiName>"
problem: "<what is missing or broken>"
refusal_triggers_fired:
- "<trigger name or 'none'>"
change_impact_handoff:
target_agent: "salesforce-change-impact-analyst-agent"
payload_ready: true | false
notes: "<what the analyst agent should focus on>"
missing_evidence:
- "<what would strengthen the validation — e.g., missing test classes, missing dependencies>"
assumptions:
- "<explicit list of assumptions made>"
audit_envelope:
<see Audit Envelope Schema>
Handoff Rules
| Situation | Hand off to |
|---|---|
| Validation complete — risk assessment needed | salesforce-change-impact-analyst-agent |
| Static Analysis / SCA findings from Apex code | salesforce-apex-lwc-code-review-skill or salesforce-devsecops-pipeline-skill |
| Production commit approved after validation | salesforce-live-guard-agent (HITL required) |
| Metadata review (static, no org) | salesforce-metadata-review-skill |
Required handoff fields for all outbound payloads: audit_envelope,
validation_verdict, refusal_triggers_fired, missing_evidence,
assumptions.
Stop Conditions
Stop immediately and do not continue if:
- Production org detected —
sf org displayindicatesisSandbox: falseor production URL pattern. Stop, emit refusal envelope, route tosalesforce-live-guard-agent. - Validation implies commit — user requests
sf project deploy startor equivalent. This skill does not call the commit command. Refuse and explain. - Apex changes with no test specification — deployment manifest contains Apex classes or triggers and no test class list has been provided. Stop and require test specification before proceeding.
- Connected App allowlist mismatch — target org alias is not in the authorized sandbox allowlist. Stop and escalate to org administrator.
--waittimeout exceeded with no result — emit anInconclusiveverdict with the partial output and note the timeout. Do not re-run automatically.- Manifest hash mismatch — if the package.xml changes between the pre-hash step and the validation call (filesystem race), stop and require re-confirmation.
Security Notes
- T2 sandbox-only enforcement: The skill structurally refuses any production
org target. The
sf project deploy validatecommand is inherently non-committing but production refusal is enforced at the org-type check level before any API call is made. - No commit possible: This skill calls
sf project deploy validateonly — neversf project deploy start. The commit path does not exist in this skill's allowed-tools scope. - Org allowlist: The Connected App restricts which sandbox orgs can be
targeted. This skill verifies via
sf org displaybefore proceeding. - Audit emitted on every execution: Including on refusals. The audit envelope records the target org type, the refusal reason (if any), and the timestamp.
- Reversible:
sf project deploy validatemakes no persistent changes to the target org. The validation deployment ID is transient and does not alter metadata in the org. - Explicit production refusal: Any production org target triggers an
immediate structured refusal with routing to
salesforce-live-guard-agent. - No credential echo: OAuth tokens, refresh tokens, and session IDs are never included in output or audit envelopes.
- Run As permissions scoped: The connected service account has Deploy (Metadata API) permission but is blocked from ModifyAllData (production), Customize Application (production), and Manage Connected Apps by profile and Connected App policy.
Reference File Index
| File | When to read |
|---|---|
references/cli-commands.md | sf CLI deploy validate command flags, sf apex run test, sf org display, manifest formats |
references/production-refusal-rules.md | Detection rules for production orgs, refusal audit emission, live-guard routing |
references/test-selection-strategy.md | RunSpecifiedTests vs. RunLocalTests vs. RunAllTestsInOrg; 75% coverage; test list construction |
Frequently asked questions
What to verify before installation and use
What does the salesforce-deployment-validator-skill source document cover?
Sandbox-only deployment dry-run under T2 scope. This skill validates a deployment package without committing any changes. It is a preflight check, not a deployment. Production org targets are a hard refusal — any commit to production must be routed through salesforce-live-guard-…
How do I install salesforce-deployment-validator-skill?
The source record exposes this install command: npx skills add https://github.com/VincentChuWaiChow/vanguard-frontier-agentic --skill "skills/salesforce/salesforce-deployment-validator-skill". Inspect the command and pinned source before running it.
Alternatives
Compare before choosing
vasilyu1983/AI-Agents-public
qa-testing-ios
Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.
steipete/agent-scripts
one-password
REQUIRED before ANY `op` command or whenever a task needs an API key, token, password, credential, or secret (OPENAI_API_KEY, ANTHROPIC_API_KEY, deploy tokens, live-test keys). Prompt-free 1Password service-account reads; wrong invocations spam macOS dialogs.
microsoft/Sico
android-tester
Execute Android UI workflows on a sandbox device, review results, and produce a structured execution report.
mission69b/t2000
sui-publish
Publishing, upgrading, and deploying Sui Move packages. Use this skill when the user needs to publish a package, upgrade a published package, deploy to multiple networks, serialize transactions for multisig signing, run a local Sui network (localnet), prepare for Mainnet launch, monitor production deployments, or debug dry run failures. Also use when the user asks about sui client publish, sui client upgrade, UpgradeCap, upgrade policies, Published.toml, --serialize-output, localnet, mainnet lau