sf-devops-ci-cd

Automate Salesforce CI/CD pipeline setup and deployment validation with GitHub Actions.

13|2|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-devops-ci-cd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-devops-ci-cd
Source: https://github.com/jiten-singh-shahi/salesforce-claude-code/tree/main/.cursor/skills/sf-devops-ci-cd
Command: npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-devops-ci-cd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @salesforce/cli, sfdx-git-delta, jq, and includes scripts (resource) components.

What problem does it solve?

Setting up reliable, secure CI/CD for Salesforce projects is complex and error-prone; this Skill consolidates patterns for GitHub Actions, non-interactive JWT authentication, scratch-org workflows, sandbox promotion, and deployment automation to reduce configuration friction and deployment failures.

Core Features & Use Cases

  • GitHub Actions workflows: opinionated templates for PR validation, scratch-org testing, and production promotion that integrate with branch strategies.
  • JWT non-interactive authentication: step-by-step guidance for creating a connected app, generating certificates and private keys, and storing base64-encoded secrets for CI environments.
  • Scratch-org per-branch and promotion flow: workflows to create ephemeral scratch orgs for feature branches, run targeted tests, and safely promote changes through develop, staging, and main.
  • Change-detection and targeted deploys: a bash helper to compute changed Salesforce metadata (with optional sfdx-git-delta) and deploy only affected components using validation and quick-deploy patterns.
  • Operational guidance: test-level strategy, quick-deploy recommendations (use job-id, avoid --use-most-recent), and cleanup of temporary orgs.

Quick Start

Generate a GitHub Actions CI workflow that authenticates using JWT, validates changes in a scratch org or sandbox, and performs a controlled quick-deploy to production.

Frequently Asked Questions about sf-devops-ci-cd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Salesforce CI/CD pipelines using GitHub Actions and JWT authentication?

Salesforce CI/CD pipelines using GitHub Actions and JWT authentication require configuring a connected app, generating certificates, and storing base64-encoded private keys as CI secrets to enable non-interactive deployments. This Skill provides opinionated workflow templates for scratch-org testing, PR validation, and production promotion across feature, staging, and main branches.

What is the best way to deploy only changed Salesforce metadata in a CI/CD pipeline?

Deploying only changed Salesforce metadata in a CI/CD pipeline is done using change detection with sfdx-git-delta. This Skill includes a bash helper that computes changed metadata components between branches and deploys only affected files using validation and quick-deploy patterns to reduce deployment time and failures.

How do I configure scratch-org workflows for Salesforce feature branch testing?

Configuring scratch-org workflows for Salesforce feature branch testing involves creating ephemeral scratch orgs per branch, running targeted tests, and safely promoting changes through develop, staging, and production environments. This Skill provides GitHub Actions templates that automate this ephemeral org lifecycle and cleanup process.

Does Salesforce CI/CD quick-deploy support job id validation with RunLocalTests?

Salesforce CI/CD quick-deploy supports job id validation with RunLocalTests by validating changes first and then performing a controlled quick-deploy using the job id. This Skill's operational guidance recommends using the job id for quick-deploy and explicitly advises avoiding the --use-most-recent flag to ensure reliable deployments.

What dependencies are needed to automate Salesforce deployment validation with sfdx-git-delta?

Automating Salesforce deployment validation with sfdx-git-delta requires the Salesforce CLI v2, sfdx-git-delta plugin, and jq for JSON parsing. This Skill integrates these tools to compute metadata changes, validate deployments, and execute quick-deploy workflows within GitHub Actions pipelines.