npx skills add ...
npx skills add forcedotcom/sf-skills --skill platform-quick-deploy
Deploy validated metadata to a Production Salesforce org without re-running tests. TRIGGER when the user wants to deploy to production, says 'quick deploy', 'promote', 'ship to prod', or has just validated and wants to push the change live. REQUIRES a recent `sf project deploy validate` job ID (≤10 days old, ≤3 days for --use-most-recent). DO NOT TRIGGER for sandbox/scratch deploys (use platform-metadata-deploy) or unvalidated deploys (use platform-deploy-validate first).
npx skills add forcedotcom/sf-skills --skill platform-quick-deploy
Promote a validated deploy to a Production org using the job ID from a prior sf project deploy validate. No tests re-run, no components re-validated — just the promotion.
Before doing ANYTHING, verify all four:
Target is Production
Confirm the target really is production. The reliable check is the gate's classifier (returns production|sandbox|scratch|trial|devhub|unknown):
Production means isSandbox=false AND isScratch=false AND instance URL has no -- (sandbox marker) AND no test.salesforce.com AND it is not a trial/Developer Edition host (orgfarm-*, *.develop.my.salesforce.com, *.pc-rnd.*, or a trialExpirationDate in the response — these report isSandbox/isScratch as null and must not be taken for production).
If target is NOT production (classifier returns anything other than production) → STOP and redirect to platform-metadata-deploy (which handles non-prod natively).
A validation exists
.sfdx/last-validation.json if it exists (left there by platform-deploy-validate)--use-most-recent (validates within last 3 days)Validation is fresh enough
--job-id: must be ≤10 days old per Salesforce's quick-deploy window--use-most-recent: must be ≤3 days oldcreatedAt exceeds the window → STOP and run platform-deploy-validate firstExplicit user confirmation
Format exactly:
After "yes":
Or with --use-most-recent if the user opted in.
The quick deploy will:
After completion, persist for audit:
Surface to the user:
After a successful prod deploy, suggest:
sf project deploy start against a Production target (always validate then quick-deploy)--ignore-errors or --ignore-warnings on production.sfdx/deploy-history/ for the audit trailplatform-deploy-validate first