/sf-devops:dx-devops-work-item-managefrom Salesforce — DevOps & Orgs
Manages DevOps Center work items: list, create, update, commit changes, transition status, and create pull requests via CLI. For Salesforce developers using sf and git.
Ships in Salesforce — DevOps & Orgs. 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.
Manages the complete work item lifecycle in DevOps Center — from creation through status transitions to promotion readiness. Provides headless CLI-driven operations for autonomous release workflows.
Gather or infer before proceeding:
sf devops project list --json if not providedsf devops review createDefaults unless specified:
--json for headless consumption--work-item-name (WI-000001) over --work-item-id when both are available (names are human-readable)If the user provides a clear request ("list work items for Project Alpha", "create work item to fix login bug", "move WI-12345 to In Progress", "create PR for WI-12345"), proceed immediately without unnecessary questions.
Operations use sf devops work-item CLI commands with --json output; the API commit path also uses sf api request rest and sf data query.
Verify org authentication before any operation:
sf org display --json
sf org login web --set-default --alias <alias>
--target-org <alias> on all subsequent commandssf org display --target-org <alias> --json for both the dev org and the hub orgList work items — when the user wants to see existing work items:
sf devops work-item list --project-id <project-id> --json
--project-id is required — if the user provides a project name instead of ID, first run sf devops project list --json to resolve the name to an ID.result[] arrayname (e.g., WI-000001), subject, branch, environment, status, description.result[] is an empty array, confirm "No work items found in project ."sf devops work-item list --project-id <id> --json | jq '.result[] | select(.status == "<requested-status>")'
Then present the matching work itemsCreate a work item — when the user wants to create a new work item:
sf devops work-item create \
--project-id <project-id> \
--subject "<subject>" \
--description "<description>" \
--json
--project-id is required (obtain from user or via sf devops project list --json)--subject is required (user-facing title)--description is optional (defaults to blank if omitted)Execute commit operation — when operation type is commit. Choose the path first:
sf project deploy start, or use git). Dev org alias: commitChanges, DevopsRequestInfo. Hub alias: sf devops and WorkItemComponentList. DevOps Center retrieves the named components from the dev org and commits them as DevOps Center <[email protected]>.sf project retrieve start --target-org <dev-org> first.API path (commands, body, error codes and polling in references/commit-api.md):
GET /connect/devops/doceConnectionType on the dev org; a failed call (non-zero exit or error body) or isCore not true means use the git path.sf devops project list → project id, then sf devops work-item list --project-id <id> --target-org <hub> → work item id and name. Status must be New, In Progress, In Review or Ready to Promote.POST /connect/devops/commitChanges on the dev org; the body is the inner object (no commitChanges wrapper).status: "ERROR" with reqId = CODE:message: surface it and stop.status is SUCCESS (accepted only), poll DevopsRequestInfo WHERE RequestToken = '<reqId>' on the dev org every 10 seconds until Status is SUCCESS or ERROR (report Message/ErrorDetails), 12-minute deadline. Past it the request is stuck; report it and do not retry automatically.WorkItemComponentList exists on the hub before creating a review.Git path:
branch field as the branchgit checkout <branch-name>
git add <files>
git commit -m "<commit-message>"
git push origin <branch-name>
Update work item — when the user wants to change subject, description, or status:
sf devops work-item update \
--work-item-name <WI-name> \
--subject "<new-subject>" \
--description "<new-description>" \
--status "<In Progress|Ready to Promote>" \
--json
--work-item-name <WI-000001> (preferred) or --work-item-id <id>sf devops work-item list --project-id <id> --json | jq -r '.result[] | select(.subject == "<user-provided-subject>") | .name'
Then pass the returned name (e.g., WI-000001) to the update command--subject, --description, or --status must be provided.result.name, .result.subject, .result.status contain the updated values.result.status in the response. If the status field is absent from the update response, re-query the work item via list to verify the status persistedCreate pull request — when the user wants to create a PR for code review. Choose the path first:
doceConnectionType preflight (step 5, API path, item 1) succeeds. The call runs on the dev org and DevOps Center creates the PR with its stored VCS credentials.API path (body, errors and idempotency in references/review-api.md):
sf devops work-item list --project-id <id> --target-org <hub>). The work item must have a committed component list and must not be Nevered.POST /connect/devops/createReview on the dev org with {workItemId, workItemName, workItemLink}; the body is the inner object (no createReview wrapper).status: "Error" and errorMessage = CODE:detail. Surface it using the error table in the reference and stop.Success, reviewUrl is the PR URL. Calling again for the same work item returns the same URL, so a repeat call is safe.IN_REVIEW and ReviewRemoteReference holds the PR number.CLI path:
sf devops review create \
--work-item-name <WI-name> \
--json
--work-item-name <WI-000001> (preferred) or --work-item-id <id>sf devops work-item list --project-id <id> --json | jq -r '.result[] | select(.subject == "<user-provided-subject>") | .name'
Then pass the returned name (e.g., WI-000001) to the review create command.result.pullRequestUrl contains the PR URL, .result.status contains the PR status (typically "open" for newly created PRs), .result.number contains the PR numberVerify operation success:
.result[] array, and verify it contains work items (or is empty if no matches). If the user specified a project by name, confirm the resolved project ID matches..result.name (work item ID like WI-000001), .result.branch (branch name), and .result.environment fields.git push succeeds, the commit is saved to the work item branch; the hub registers it asynchronously.status, then DevopsRequestInfo.Status, are SUCCESS, and that a new WorkItemComponentList with a CommitReference exists on the hub. A new list with an empty CommitReference means nothing new was committed; report that, not a clean success..result.subject matches the new value..result.status in the JSON response matches the target status (e.g., "Ready to Promote"). If the response doesn't include the status field, re-run sf devops work-item list filtered to this work item and verify the status persisted..result.pullRequestUrl (the PR URL) and .result.status (should be "open" or equivalent). If VCS credentials are missing, the CLI returns an error — surface this to the user.status is Success with a non-empty reviewUrl, then that the hub work item is IN_REVIEW with ReviewRemoteReference set.Report results:
reqId, components committed and hub CommitReference (author is DevOps Center)reviewUrl, and note when the call returned an existing PR rather than creating one| Constraint | Rationale |
|---|---|
All sf devops commands must use --json flag | Structured output is required for headless consumption; human-readable output is unreliable for parsing |
| Work item identifier required for commit, update, and create-review | Use --work-item-name (preferred) or --work-item-id; obtain from list or prior create |
| Project ID required for list and create | All work items belong to a project; use sf devops project list --json if not provided |
| At least one update field required | Update command fails if no --subject, --description, or --status flag is provided |
| Status values must be exact strings | "In Progress" and "Ready to Promote" (with spaces, proper capitalization); other values fail |
| Idempotent create operations | Check for existing work item with same subject + project before creating duplicates |
| Commit before creating a PR | Commit first and confirm a component list exists on the hub before review create |
| API commit only sends components already in the dev org | The API retrieves from the dev org, not from local disk; deploy local-only edits first (sf project deploy start) or use the git path |
Check status in the commit API response | Errors are returned as HTTP 200 with status: "ERROR" |
Check status in the review API response | Errors are returned as HTTP 200 with status: "Error" and errorMessage as CODE:detail |
| PR creation requires VCS credentials in org | DevOps Center API uses stored VCS credentials; no local git auth needed |
| Never use interactive prompts | Skills run in headless environments; all inputs must be via CLI flags |
| Issue | Resolution |
|---|---|
| No default org set | Run sf org display --json first; if it fails, instruct user to run sf org login web --set-default |
| User provides work item by subject, not name | Resolve via: sf devops work-item list --project-id <id> --json | jq -r '.result[] | select(.subject == "<subject>") | .name'; then pass the returned name to the update/create-review command |
| User provides project by name, not ID | First run sf devops project list --json and filter .result[] by .name field to find the project ID, then use that ID in the list/create command |
| Status update response missing status field | The CLI doesn't always return the status field in the update response; re-run sf devops work-item list filtered to this work item and check .result[0].status to verify the transition persisted |
| Work item not found | User provided invalid work item name/ID; run list command to show available work items |
| Invalid status value | Only "In Progress" and "Ready to Promote" are valid (exact strings with spaces); check spelling and capitalization |
| Project not found | User provided invalid project ID; run sf devops project list --json to show available projects |
| Duplicate work item subject | Idempotent create check should catch this; return existing work item name instead of creating duplicate |
| Commit pushed while work item is New | The hub ignores external pushes for New work items; set In Progress first and, if already pushed, re-check after the status change |
| API commit still in progress past the deadline | Report it as stuck; do not retry automatically (a new request could race it) |
| Git push fails - no commits or branch not found | Verify files are staged with git status and branch name retrieved from work item via list command |
Review API returns REVIEW_VCS_AUTHENTICATION_FAILED | Core maps any "not found" to this code, so a missing branch looks like an auth failure; check the work item and target branches exist as well as the credential |
| PR creation fails - VCS credentials | VCS credentials not configured in DevOps Center UI; instruct user to configure in Setup → DevOps Center → VCS Credentials |
Deliverables vary by operation:
reqId, final request status and CommitReferencereviewUrl and hub IN_REVIEW confirmation)Outputs are derived from sf devops work-item CLI, sf devops review create CLI, the DevOps Center commit and review APIs, and standard git commands.
Before reporting results to the user:
sf org display --json?--json flag?--target-org specified on all commands?--project-id provided?--subject provided and included in the command?--project-id provided (or obtained via project list)?status checked, DevopsRequestInfo polled to SUCCESS, new WorkItemComponentList with CommitReference seen on the hub?git add, git commit and git push all exit 0?.result.pullRequestUrl for the CLI, reviewUrl for the API)?status checked, and was the hub work item confirmed IN_REVIEW?| File | When to read |
|---|---|
references/commit-api.md | When committing through the DevOps Center API: request body, response and error codes, polling, preflight |
references/review-api.md | When creating a review through the DevOps Center API: request body, response and error codes, idempotency, hub confirmation |
references/cli-commands.md | When you need detailed CLI flag documentation, JSON output schemas, or error handling patterns |
examples/common-workflows.md | When the user's request matches a common pattern (bulk updates, reassignment, idempotent creation, sequential transitions) |
What SKILL.md sets; muted values are Claude Code's defaults
27 skills in this plugin
/automation-sandbox-post-copy-config-generateGenerates the JSON config file that the Salesforce sandbox post-copy automation tool consumes, from a customer SOP in any format (PDF, xlsx, csv, JSON, docx, Markdown, plain text, or a screenshot of an endpoint table). Use when the user asks to create, build, generate, produce, or convert a post-copy or post-refresh automation config — turning a sandbox-refresh SOP into a JSON array of OutboundMessages (OBM), RemoteSiteSettings, ScheduledApex, and Flows entries with ConfigurationName, Label, Fields, IsActive, and ExecutionOrder. Also trigger for phrasings like "post-copy config", "post-refresh automation JSON", "update the outbound message (OBM) endpoints after refresh", "convert this SOP to config", "remote site settings JSON", "refresh planner to JSON", or "sandbox refresh config". DO NOT TRIGGER when: user wants to deploy the generated config to an org (use platform-metadata-deploy), or apply/execute/run/dry-run the post-copy automation JSON against a sandbox (use automation-sandbox-post-copy-configure)./automation-sandbox-post-copy-configureApply a Salesforce sandbox post-copy automation JSON config against a target org. Use when the user asks to apply, run, execute, dry-run, or preview a post-copy or post-refresh config file (e.g. `post-copy-config.json`) against a sandbox — including activating/deactivating a Flow (PATCH `FlowDefinition.Metadata.activeVersionNumber` to the version, or `null`), re-pointing an OBM endpoint, updating a RemoteSiteSetting URL, or re-scheduling a ScheduledApex job after refresh. Also trigger for phrasings like "apply post-copy config", "run post-copy automation", "activate Flow <name> post-refresh", "deactivate Flow <name>", "re-point outbound messages after refresh", or "configure sandbox after refresh". Per entry, derive the Tooling API sobject, verify via describe, resolve the Id via SOQL, then PATCH the compound `Metadata` field (`ScheduledApex` uses anonymous Apex). DO NOT TRIGGER for generating config JSON from an SOP (use `automation-sandbox-post-copy-config-generate`) or for deploying metadata XML./dx-app-analytics-queryISV App Analytics metadata types — AppAnalyticsQueryRequest and AppAnalyticsSettings. Use this skill when the user asks about retrieving managed package usage data, configuring App Analytics simulation mode, querying subscriber snapshots, or understanding the AppAnalyticsQueryRequest lifecycle (New → Pending → Complete → Expired). TRIGGER when: user mentions App Analytics, AppAnalyticsQueryRequest, AppAnalyticsSettings, package usage data, subscriber analytics, ISV analytics, or simulation mode for app analytics. DO NOT TRIGGER when: the task is about standard Salesforce reports/dashboards (use reporting skills), custom SOQL on Account/Contact (use querying-soql), or Data Cloud query/search (use retrieving-datacloud)./dx-devops-conflict-resolveUse this skill to diagnose and resolve what blocks a DevOps Center promotion of a work item's feature branch: Git merge conflicts and deployment failures. DevOps Center is Git-backed, so overlapping metadata changes surface as merge conflicts against the target stage branch, resolved with git (detect, resolve markers, commit, push). Deploy failures often cite a missing dependency a full promotion can fix when the component already exists on the branch. TRIGGER when the user wants to check a work item for conflicts before promoting, resolve merge conflicts or leftover conflict markers in metadata files (.xml, .object-meta.xml, .cls), reconcile a feature branch with its target stage branch, or diagnose why a DevOps Center promotion or deployment failed and whether a full promotion or a missing-dependency fix will resolve it. DO NOT TRIGGER for running the promotion itself (use dx-devops-promote), creating or updating work items (use dx-devops-work-item-manage), or deploying metadata directly to an org./dx-devops-pipeline-manageUse this skill to manage the full lifecycle of a DevOps Center pipeline — list all pipelines, get a single pipeline's details, create a new pipeline linked to a Git repository, add or remove stages, rename a stage, add or remove Salesforce environments on stages, attach or detach projects, and activate or deactivate the pipeline. Invoke when the user wants to set up a release pipeline, wire promotion stages across integration, UAT, staging, and production orgs, connect environments to stages, attach a project, or activate a continuous delivery pipeline. Uses sf devops pipeline and sf devops stage commands with --json output. DO NOT TRIGGER for work-item lifecycle, promotion or deployment execution, conflict detection, or standalone project creation (separate skills)./dx-devops-project-manageUse to list, view, or manage DevOps Center projects in a Salesforce org — show all projects, create a project, or update an existing project's name, description, or active status. Invoke to run sf devops project list on any listing request, or to create a project, set up a new pipeline foundation, initialize DevOps Center for a feature, update project settings, or activate/deactivate (archive) a project. Consolidates sf devops project list/create/update. DO NOT TRIGGER for work item, pipeline, promotion, or conflict operations — those are separate skills.npx claudepluginhub reej-consulting/reej-sf-skills --plugin sf-devops3 plugins in 2 repositories ship this exact skill · first indexed Nov 14, 2026
Other plugins' skills for the same job