Index of every page on this site: llms.txt
All skills
jaganpro avatar

/sf-deploy

@53c9956
by Jag Valaiyapathyjaganpro/sf-skills424 stars
96
Run it yourself

Salesforce DevOps automation using sf CLI v2. TRIGGER when: user deploys metadata, creates/manages scratch orgs or sandboxes, sets up CI/CD pipelines, or troubleshoots deployment errors with sf project deploy. DO NOT TRIGGER when: writing Apex/LWC code (use sf-apex/sf-lwc), creating metadata XML (use sf-metadata), or querying org data (use sf-data).

Use this Skill: https://skilld.dev/gh/jaganpro/sf-skills/sf-deploy

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈849 tokens on demand. Your agent reads this file only when SKILL.md points to it.

sf-deploy

Comprehensive Salesforce DevOps automation using sf CLI v2. Validate, deploy, verify, and hand off cleanly to post-deploy activities.

Features

  • Deployment Management: Execute, validate, and monitor deployments
  • DevOps Automation: CI/CD pipelines, automated testing workflows
  • Org Management: Authentication, scratch orgs, environment management
  • Quality Assurance: Dry-run validation, tests, code coverage, pre-production verification
  • Post-Deploy Handoff: Guide users to the next safe step after validation or deployment
  • Troubleshooting: Debug failures, analyze logs, provide solutions

Installation

# Install as part of sf-skills
npx skills add Jaganpro/sf-skills

# Or install just this skill
npx skills add Jaganpro/sf-skills --skill sf-deploy

Quick Start

1. Invoke the skill

Skill: sf-deploy
Request: "Deploy all changes to org dev with validation"

2. Common operations

Operation Example Request
Deploy "Deploy force-app to org dev"
Validate "Dry-run deploy to check for errors"
Quick deploy "Quick deploy validated changes"
Cancel "Cancel the current deployment"
Status "Check deployment status"

Key Commands

# Validate before deploy (ALWAYS DO THIS)
sf project deploy start --dry-run --source-dir force-app --target-org [alias]

# Deploy with tests
sf project deploy start --source-dir force-app --test-level RunLocalTests --target-org [alias]

# Quick deploy (after validation)
sf project deploy quick --job-id [id] --target-org [alias]

# Check status
sf project deploy report --job-id [id] --target-org [alias]

# Cancel deployment
sf project deploy cancel --job-id [id] --target-org [alias]

Recommended post-validation flow

After a successful dry run, guide the user to the next safe step:

  1. deploy now
  2. assign permission sets
  3. create test data with sf-data
  4. run tests or smoke checks
  5. combine multiple post-deploy steps in order

Orchestration Order

sf-metadata → sf-flow → sf-deploy → sf-data

Within sf-deploy:

  1. Objects/Fields
  2. Permission Sets
  3. Apex
  4. Flows (as Draft)
  5. Activate Flows

Best Practices

Rule Details
Always --dry-run first Validate before actual deployment
Deploy order matters Objects → Permissions → Code
Test levels Use RunLocalTests for production
Flow activation Deploy as Draft, activate manually
Post-deploy data Hand off to sf-data rather than mixing raw data creation into deploy logic

Cross-Skill Integration

Related Skill When to Use
sf-metadata Create objects/fields BEFORE deploy
sf-testing Run tests AFTER deployment
sf-data Create describe-validated test data AFTER deployment

Documentation

Requirements

  • sf CLI v2
  • Target Salesforce org
  • Proper permissions for deployment

License

MIT License. See LICENSE file. Copyright (c) 2024-2026 Jag Valaiyapathy

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides a set of tools and instructions for Salesforce DevOps automation using the standard sf CLI. It handles deployment orchestration, validation, and reporting. While it includes standard command execution for its intended purpose, it possesses a surface for indirect prompt injection as it processes and summarizes output from external tools like deployment logs and reports.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    8/13 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 53c9956. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 8 months ago
metadata
{
  "version": "2.3.0",
  "author": "Jag Valaiyapathy"
}

README badge

README badge for jaganpro/sf-skills