Skip to main content
skill CX Codex

dx-devops-test-suite-assignments-configure — Claude Code skill

Picks the test suites that match a commit and maps them onto DevOps Center pipeline stages. Useful when you don't know what to run after a change.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add forcedotcom/sf-skills --skill dx-devops-test-suite-assignments-configure -a claude-code
Open on GitHub

What dx-devops-test-suite-assignments-configure does

The skill reads suite-stage metadata from the Salesforce org. Mode A is pure reasoning: the agent looks at a commit diff, compares it against suites already assigned, and reports which ones are relevant and where coverage is missing. It writes nothing.

Modes B–D change org state through the testSuiteStages Connect API. B assigns a single suite to a stage, C bulk-maps several and shows a mandatory impact-preview table (Suite / Stage / Event / Action) before the confirmation gate, D adds or removes individual test classes. Every write needs an explicit yes, and rejected tests stay out of the payload.

Suite configuration lives in the org, not the repo, so grepping the filesystem gets you nowhere — use sf data query or sf api request rest. Modes B–D need doce-org-alias, pipelineId and stageId, plus the sf CLI at 2.67.0 or newer; all calls target API v67.0. If the suite you want isn't listed yet, configure or re-sync the provider first — that's a separate skill.

What it helps with

  • figure out which suites to run for a commit
  • close a coverage gap left by an unassigned suite
  • assign one suite to a pipeline stage
  • bulk-map several suites with an impact preview
  • add or remove test classes inside a suite assignment

Example prompts for the agent

  • which test suites should I run for this commit?
  • assign the regression suite to the staging stage
  • add AccountTest to the smoke suite

How to install dx-devops-test-suite-assignments-configure

1Skills CLI (Vercel)

npx skills add forcedotcom/sf-skills --skill dx-devops-test-suite-assignments-configure -a claude-code

2Manually: put the files in place

~/.claude/skills/dx-devops-test-suite-assignments-configure/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/dx-devops-test-suite-assignments-configure/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about dx-devops-test-suite-assignments-configure

How do I install dx-devops-test-suite-assignments-configure in Claude?

Run npx skills add forcedotcom/sf-skills --skill dx-devops-test-suite-assignments-configure -a claude-code. The skill lands at ~/.claude/skills/dx-devops-test-suite-assignments-configure/SKILL.md.

What does dx-devops-test-suite-assignments-configure do?

It recommends existing test suites for a commit diff and flags coverage gaps, then assigns and maps suites to DevOps Center pipeline stages through the testSuiteStages Connect API.

How is it different from dx-devops-test-suite-run?

This skill configures suite-to-stage assignments; running suites belongs to dx-devops-test-suite-run. Configuring or re-syncing a test provider is also handled elsewhere.

Source text

SKILL.md · Apache-2.0
---
name: dx-devops-test-suite-assignments-configure
description: "Recommends and manages DevOps Center test suite assignments for pipeline stages. Mode A analyzes a commit diff against assigned suite metadata to recommend relevant existing suites and flag coverage gaps (pure reasoning). Modes B-D assign a single suite, bulk-map multiple suites with a mandatory impact preview, or add/remove test classes with governance rules, via the testSuiteStages Connect API. Use this skill to recommend suites for a commit, assign or map suites to stages, or add/remove tests in a suite. TRIGGER when: the user asks which suites to run for a commit/diff or what covers their changes; a suite is unlinked and the user wants it assigned; the user wants to configure suite-to-stage mappings, assign multiple suites, or add/remove/sync tests in a suite. DO NOT TRIGGER when: configuring or syncing a test provider (use dx-devops-test-pipeline-configure), running suites (use dx-devops-test-suite-run), or authoring/running tests directly (use platform-apex-test-generate or platform-apex-test-run)."
metadata:
  version: "1.0"
  domains: ["Developer Experience"]
  minApiVersion: "67.0"
  relatedSkills:
    - "dx-devops-test-failures-analyze"
    - "dx-devops-test-pipeline-configure"
    - "dx-devops-test-suite-run"
    - "platform-apex-test-generate"
    - "platform-apex-test-run"
  cliTools:
    - tool: ["sf"]
      semver: ">=2.67.0"
---

# Configure DevOps Center Suite Assignments

Recommends which existing test suites to run for a change, and manages how suites are assigned and mapped to pipeline stages. These operations share the same suite-stage metadata: a recommendation surfaces relevant suites and flags gaps, and those gaps lead directly into assignment.

> **API version:** All DevOps testing system calls target Salesforce API **v67.0** (minimum required).

**Important:** All DevOps Center data lives in the Salesforce org — NOT the local repo. Never search the filesystem for suite configuration. Always query the org with `sf data query` or `sf api request rest`.

---

## Step 1 — Run prerequisites first (always)

Run the prerequisite checks in `references/prerequisite-checks.md` before any query or system call. On any failure, surface the plain-language message and stop.

- **Mode A (recommend):** Prerequisites 1–4 (org login, plugin, DevOps Center org auth, pipeline identified). No stage required — recommendation reads the pipeline-level Review trigger.
- **Modes B–D (assign/map/classes):** Prerequisites 1–4 **and** Prerequisite 5 (stage). You need `doce-org-alias`, `pipelineId`, and `stageId`.

---

## Step 2 — Select the mode

| If the user wants to… | Mode | Follow |
|---|---|---|
| Know **which suites to run** for a commit/diff, or what covers their changes | **A — Recommend suites** | `references/recommendation-logic.md` |
| Assign **one** suite to a stage as a one-off | **B — Assign a single suite** | `references/suite-assignment-modes.md` |
| **Bulk-map** multiple suites to a stage as a testing strategy | **C — Map multiple suites** | `references/suite-assignment-modes.md` |
| **Add/remove** individual test classes within a suite assignment | **D — Add/remove classes** | `references/suite-assignment-modes.md` |

Mode A is pure reasoning (no writes). Modes B–D mutate org state via the same `testSuiteStages` endpoint (`references/api-endpoint.md`).

**How A feeds B–D:** When recommendation flags a relevant suite that is *not assigned* to the stage, that gap is the input to Mode B/C. When it flags a *new method with no suite coverage*, direct the developer to author tests manually (v1 constraint — never suggest generating tests here).

---

## Step 3 — Governance & confirmation (Modes B–D)

Modes B–D **must** confirm before any write:

- **Mode B** — single confirmation prompt naming the suite, stage, and event.
- **Mode C** — a **mandatory impact-preview table** (Suite / Stage / Event / Action) before the confirmation gate.
- **Mode D** — re-present the final test list before confirming. **Rejected tests must be EXCLUDED from the payload.** If tests were modified during review, re-present the final list before requesting confirmation. Never call without explicit approval.

Do not call the API until the user gives an affirmative response. If the user declines, stop without writing. Full wording for each gate is in `references/suite-assignment-modes.md`.

Mode A (recommendation) makes no writes and needs no confirmation gate.

---

## Step 4 — Execute and report

Follow the chosen reference file:

- `references/recommendation-logic.md` — Mode A: diff classification, provider matching, ranking, gap flagging, output format.
- `references/suite-assignment-modes.md` — Modes B–D: inputs, confirmation wording, success messages.
- `references/api-endpoint.md` — the shared `testSuiteStages` POST payload schema (Modes B–D).
- `references/error-handling.md` — status-code → plain-language tables.

Never expose raw API errors, stack traces, or JSON to the user.

---

## Related skills

- **`dx-devops-test-pipeline-configure`** — if the suite you want to assign doesn't appear yet, configure or re-sync the provider; also configures quality gates on a stage after mapping.
- **`dx-devops-test-suite-run`** — execute a recommended/assigned suite on a stage.
- **`dx-devops-test-failures-analyze`** — analyze failures and improvement suggestions for the tests within a suite.

© forcedotcom · Apache-2.0 · forcedotcom/sf-skills

Similar skills

Everything for DevOps and infrastructure →

From the same set167

integration-eventing-cdc-configure Generates Salesforce Change Data Capture metadata for standard and custom objects. Useful when configuring change event subscriptions and channels. CX Codex +1 5,100installs experience-cms-brand-apply Finds a brand in Salesforce CMS, pulls its guidelines, and applies voice, tone and style to whatever the agent writes. CX Codex +1 5,000installs experience-ui-bundle-agentforce-client-generate Embeds the Agentforce Conversation Client in React and Angular UI Bundle apps: detects the framework, validates agentId, wires the component into a page. CX Codex +1 5,000installs dx-devops-test-suite-run Triggers DevOps Center test suites on Salesforce pipeline stages and polls execution until finished. Useful for pre-promotion gates and re-running checks after code coverage fixes. CX Codex +1 5,000installs dx-devops-test-pipeline-configure Configures DevOps Center pipeline testing: enables a test provider so its suites show up, re-syncs a configured provider, or sets a quality gate on a stage. CX Codex +1 5,000installs experience-ui-bundle-site-generate Generates Salesforce Digital Experience Site infrastructure for hosting React UI bundles. Useful when setting up thin site containers, guest access, and locale configs. CX Codex +1 5,000installs data360-schema-get Pulls the list of Data Lake and Data Model objects from Salesforce Data Cloud, plus field-level schema for one object. Handy before you write a query. CX Codex +1 5,000installs data360-code-extension-generate Generates, tests, and deploys Salesforce Data Cloud Python code extensions using the SF CLI plugin. Useful when building batch scripts or real-time functions for DLO and DMO transformations. CX Codex +1 4,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor