/sf-platform-extras:dx-devops-promotefrom sf-platform-extras
Drives the full DevOps Center promotion workflow — validate preconditions, prepare work items, optionally combine items sharing metadata, promote to a target pipeline stage, and complete the deployment.
Ships in sf-platform-extras. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Drives the full promotion workflow in DevOps Center — validate, prepare, optionally combine, promote, and complete — moving work items through the release pipeline. Provides headless, --json-driven, idempotent operations for autonomous release workflows in CI. Every promotion begins with a mandatory validate step.
dx-devops-work-item-manage), conflict detection, polling an existing promotion's status, pipeline or project setup (separate skills)Gather or infer before proceeding:
--target-stage-id — the pipeline stage to promote tosf devops promote takes --work-item-id (repeatable) XOR --stage-id--target-org <alias> (required unless the target-org config variable is set)Defaults unless specified:
--json for headless consumption--test-level for development-stage deploys (defaults to NoTestRun); use RunLocalTests for production-stage deploys with ApexIf the user gives a clear request ("promote work item 1fkxx… to stage 1QVxx…", "promote the QA stage to UAT", "combine these work items and promote"), proceed once you have the required IDs.
All operations use sf devops CLI commands with --json output. Validate ALWAYS runs first. All promotion commands are keyed on record IDs, not work item names — resolve names to IDs first if needed.
Verify org authentication before any operation:
sf org display --json
sf org login web --set-default --alias <alias>--target-org <alias> on every subsequent command (required unless the target-org config variable is set)Run the mandatory validate step — this is non-negotiable and always runs before prepare/combine/promote. sf devops promotion validate requires the target stage (-t/--target-stage-id) and one or more -i/--work-item-id:
# Capture the output — Phase 2 derives the combine decision from it deterministically.
VALIDATE_JSON=$(sf devops promotion validate --work-item-id <id> --target-stage-id <target-stage-id> --target-org <alias> --json)
--work-item-id to validate multiple work items in one callstatus == 0 and .result.success == true — proceedVCS_ERROR: No pull request exists…, with .result.errorType/.result.errorDetails set), STOP. Report the error and do not proceed. If it references metadata overlap, resolve the conflict before retrying.result.combineDetails is non-null, the work items share metadata — validate returns the parent/child grouping and suggestions. This is the authoritative signal for the Phase 2 combine decision (see step 4); do not guess whether to combine — the Phase 2 script reads .result.combineDetails from VALIDATE_JSONPrepare the work item for promotion:
sf devops work-item prepare --work-item-id <id> --target-stage-id <target-stage-id> --target-org <alias> --json
--target-stage-id is required — the same target stage the work item will be promoted toCombine work items — ONLY when the Phase 1 validate step reported shared components (.result.combineDetails non-null) or the work items otherwise have dependencies and must promote as one unit. Do not eyeball the JSON — derive the decision and the parent/child IDs deterministically from the saved validate output (VALIDATE_JSON):
# COMBINE == "true" only when validate returned a combineDetails block.
COMBINE=$(printf '%s' "$VALIDATE_JSON" | jq -r '(.result.combineDetails != null)')
if [ "$COMBINE" = "true" ]; then
PARENT_ID=$(printf '%s' "$VALIDATE_JSON" | jq -r '.result.combineDetails.parentWorkitemId')
# one --child-work-item-id arg per child, safe for use as a flag array
CHILD_ARGS=()
while IFS= read -r cid; do CHILD_ARGS+=(--child-work-item-id "$cid"); done < <(
printf '%s' "$VALIDATE_JSON" | jq -r '.result.combineDetails.childWorkitemsId[]')
fi
Then combine using those derived values (skip this command entirely when COMBINE is not "true"):
sf devops work-item combine \
--parent-work-item-id "$PARENT_ID" \
"${CHILD_ARGS[@]}" \
--target-stage-id <stage-id> \
--target-org <alias> \
--json
CHILD_ARGS expands to one --child-work-item-id <id> pair per child work item--work-item-id or --stage-id must be provided; --target-stage-id is always required. Pass --skip-validation ONLY when the Phase 1 validate step completed successfully in the current session for every work item being promoted. Otherwise, OMIT the flag and let the CLI run its built-in validation:
--work-item-id per item; use the parent's ID for a combined promotion). Include the --skip-validation line ONLY if Phase 1 validate passed this session; otherwise drop that line:
sf devops promote \
--work-item-id <id> \
--target-stage-id <target-stage-id> \
--skip-validation \
--target-org <alias> \
--json
--skip-validation line only if Phase 1 validate passed this session):
sf devops promote \
--stage-id <source-stage-id> \
--target-stage-id <target-stage-id> \
--skip-validation \
--target-org <alias> \
--json
sf devops promote's built-in pre-promote validation runs the same checks as the Phase 1 sf devops promotion validate step (including the associated-PR requirement). When the full workflow ran sequentially this session, that validation already passed, so --skip-validation only eliminates a redundant re-run. But if the agent resumed mid-workflow, promotion was invoked without a preceding Phase 1 validate, or Phase 1 was not run for every work item being promoted, DO NOT pass --skip-validation — bypassing it there would skip validation entirely with no prior guard--deploy-all to deploy all metadata in the branch rather than only changes not yet in the target stage--test-level RunLocalTests (or RunSpecifiedTests --tests <names>) for production-stage deploys that include Apex.resultComplete the promotion to finalize — advances the work items in the target stage:
sf devops promotion complete --target-stage-id <target-stage-id> --target-org <alias> --json
--target-stage-id is required (same target stage the work items were promoted to)Report the outcome:
| Constraint | Rationale |
|---|---|
| Validate ALWAYS runs first | Guarantees preconditions are met before any mutation; skipping it can corrupt pipeline state |
All sf devops commands must use --json | Structured output is required for headless consumption; human-readable output is unreliable to parse |
| Commands are keyed on record IDs, not names | --work-item-id, --stage-id, --target-stage-id, --parent/--child-work-item-id all take IDs; resolve names to IDs first |
--target-stage-id required for every promotion command (validate, prepare, combine, promote, complete) | The target stage is mandatory; the promotion has no destination without it |
Exactly one of --work-item-id or --stage-id on promote | These flags are mutually exclusive; promote either specific items or a whole source stage |
Pass --skip-validation on promote ONLY if Phase 1 validate passed this session | The CLI's built-in pre-promote validation runs the same checks (including the associated-PR requirement) as the Phase 1 promotion validate step. Skipping is safe only when that validation already ran successfully this session; if the agent resumed mid-workflow or promotion was invoked without a preceding validate, OMIT the flag so the CLI validates |
| Deploy runs async — capture and report the identifier | The promote deploy does not complete synchronously; completion is tracked separately |
| Do NOT busy-wait for deploy completion in this skill | Polling is a separate concern; blocking here wastes turns and risks timeouts |
| Combine only when work items share metadata/dependencies | Combining is for conflict-prone or dependent items, not a default for every multi-item promotion |
| Prepare is idempotent | Retry-safe for CI; re-running a completed prepare is a no-op |
| Never use interactive prompts | Skills run headless; all inputs must be CLI flags |
| Pass IDs as CLI flags, never interpolate into shell strings | Prevents prompt/command injection via crafted identifiers |
| Issue | Resolution |
|---|---|
| Validation fails | STOP — do not prepare/combine/promote. Report the non-zero status / error message; if metadata overlap, resolve the conflict before retrying |
| No default org set | Run sf org display --json; if it fails, instruct user to run sf org login web --set-default |
| Passing a work item name instead of an ID | Promotion commands need record IDs; resolve names via sf devops work-item list --project-id <id> --json | jq -r '.result.workItems[] | select(.subject == "<WI-subject>") | .id' |
Both --work-item-id and --stage-id supplied | They are mutually exclusive; pick specific work items OR a source stage, not both |
Missing --target-stage-id | Required on every promotion command (validate, prepare, combine, promote, complete); obtain the target stage ID from the pipeline configuration |
| Combined promotion promotes the wrong item | After work-item combine, promote the parent work item ID — children merge into the parent's branch |
| Treating the deploy as synchronous | The promote deploy is async; capture the identifier and confirm completion before running promotion complete |
| Production deploy fails on Apex coverage | Set --test-level RunLocalTests (or RunSpecifiedTests --tests <names>) for production-stage promotions with Apex |
| Deploy fails with conflict | A conflict slipped past validate; resolve the metadata conflict, then re-validate and retry |
Deliverables vary by operation:
.result.success plus, when work items share metadata, .result.combineDetails / .result.suggestions. A non-zero exit (with .result.errorType/.result.errorDetails) means the work item cannot be promoted to the target stageOutputs are derived from sf devops work-item, sf devops promote, and sf devops promotion complete CLI commands. Async deploy completion is NOT produced by the promote call — poll the returned identifier separately before completing.
| When | Action |
|---|---|
| Work item must be created or moved to a promotable status first | Delegate to dx-devops-work-item-manage |
| Validation reports metadata overlap / conflict | Resolve the metadata conflict before retrying |
| The promote deploy identifier must be polled to confirm completion | Poll the returned identifier separately, then run sf devops promotion complete |
| File | When to read |
|---|---|
references/cli-commands.md | When you need detailed CLI flag documentation, JSON output schemas, or error-handling patterns for validate/prepare/combine/promote/complete |
examples/promotion-workflows.md | When the user's request matches a common pattern (single work item promotion, combined promotion, whole-stage promotion, validate-first gate) |
What SKILL.md sets; muted values are Claude Code's defaults
26 skills in this plugin
/agentforce-hyperclassifier-configureOnboard a customer org and evaluate or improve Agentforce HyperClassifier routing descriptions against labeled utterances. TRIGGER for classifier evaluation, expected-versus-actual routing reports, repeated regressions, or description optimization with customer ECA authentication. DO NOT TRIGGER for general agent conversation testing, runtime session tracing, or automatic agent deployment./agentforce-offline-experimentation-runUse this skill when users want to execute this workflow when a user wants to test how a different LLM model would handle existing Agentforce agent conversations. Trigger when users mention agentforce, offline, experimentation./design-systems-slds2-migrateMigrate Lightning Web Components from SLDS 1 to SLDS 2 by running the SLDS linter and fixing violations. Use this skill whenever users mention SLDS 2, SLDS uplift, linter violations, LWC token migration, class overrides, hardcoded CSS values that need SLDS hook replacement, or styling hook selection. Covers all styling hook categories — color, spacing, sizing, typography, borders, radius, and shadows. Also use when users mention no-hardcoded-values, no-slds-class-overrides, lwc-to-slds-hooks, no-deprecated-tokens-slds1, or ask about SLDS component migration — even if they don't explicitly say "uplift" or "migration"./design-systems-slds-applyApply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons. Use when building any UI that needs SLDS, choosing between Lightning Base Components and SLDS Blueprints, applying styling hooks for theming, using utility classes for layout and spacing, or selecting icons. Triggers include "build a modal", "create a form", "data table", "SLDS styling", "style with hooks", "add an icon"./design-systems-slds-validateAudit Lightning Web Components for SLDS design-system compliance and produce a scored quality report. Runs the SLDS linter and analyzes CSS for theming hook usage and pairing, scoring SLDS findings across categories into an overall grade. Use when asked to "score my component's SLDS", "SLDS scorecard", "SLDS quality report", "audit SLDS compliance", "how good is my SLDS", "check SLDS quality", "rate my SLDS styling", "evaluate my component's SLDS", "is this component's SLDS ready to ship?", "look at my LWC for SLDS issues", "audit SLDS before I submit", "review my component's SLDS before code review", or any time a user wants an SLDS quality assessment or SLDS production-readiness check on an LWC. Not for fixing violations (use design-systems-slds2-migrate), building new components (use design-systems-slds-apply), or accessibility/WCAG/ARIA audits (use experience-accessibility-validate)./dx-apexguru-scanRun an ApexGuru performance scan on a Salesforce Apex project via the ApexGuru SFAP Scan API. Zips the project's Apex (any layout), submits it, polls to completion, decodes the base64 report, and presents performance antipattern violations (SOQL in loop, DML in loop, Schema.getGlobalDescribe(), SOQL without WHERE/LIMIT, unused SOQL fields) grouped by rule with severity, file:line, and suggested fixes — clearly attributed as 'Static only' or 'Production insights'. TRIGGER when the user says 'run ApexGuru', 'ApexGuru scan', 'check Apex performance', 'find governor-limit / performance antipatterns', 'SOQL in loop', 'scan my Apex for performance', or 'ApexGuru performance insights'. DO NOT TRIGGER for general static analysis or security scans (use dx-code-analyzer-run), for fixing code without scanning, or for onboarding an org to ApexGuru.npx claudepluginhub cloudzlab/sf-team-skills --plugin sf-platform-extras3 plugins ship this exact skill · first indexed Aug 23, 2026
Other plugins' skills for the same job