agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Runs DevOps Center test suites on a pipeline stage (Pre-Promote, Post-Promote, or Review event) end to end: triggers async execution via the Connect API after an explicit confirmation gate, then polls by runId at provider-specific intervals until it completes, fails, or times
Claude Code
$ npx -y skills add forcedotcom/sf-skills --skill dx-devops-test-suite-run --agent claude-code
Codex
$ npx skills add forcedotcom/sf-skills --skill dx-devops-test-suite-run -a codex -y
Cursor
$ npx skills add forcedotcom/sf-skills --skill dx-devops-test-suite-run -a cursor -y
Gemini CLI
$ npx skills add forcedotcom/sf-skills --skill dx-devops-test-suite-run -a gemini-cli -y
GitHub Copilot
$ npx skills add forcedotcom/sf-skills --skill dx-devops-test-suite-run -a github-copilot -y
OpenCode
$ npx skills add forcedotcom/sf-skills --skill dx-devops-test-suite-run -a opencode -y
Windsurf
$ npx skills add forcedotcom/sf-skills --skill dx-devops-test-suite-run -a windsurf -y
name: dx-devops-test-suite-run
description: "Runs DevOps Center test suites on a pipeline stage (Pre-Promote, Post-Promote, or Review event) end to end: triggers async execution via the Connect API after an explicit confirmation gate, then polls by runId at provider-specific intervals until it completes, fails, or times out, and hands results to failure analysis. Also retriggers a quality gate after fixes, but only once coverage meets the threshold. Use this skill when a user wants to run, kick off, or launch test suites on a stage, re-run a quality gate, or watch an in-progress run to completion. TRIGGER when: the user wants to run/launch suites on a stage, execute tests before or after promotion, re-run a quality gate after fixing failures, unblock a blocked promotion after adding tests, or poll/watch an in-progress run. DO NOT TRIGGER when: running sf apex run test directly (use platform-apex-test-run), or configuring a NEW gate or threshold (use dx-devops-test-pipeline-configure)."
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-assignments-configure"
- "platform-apex-test-run"
cliTools:
- tool: ["sf"]
semver: ">=2.67.0"Triggers a DevOps Center test suite execution and watches it to completion. Running and polling are two halves of one operation — never poll without first having (or being handed) a `runId`.
> **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. Always query the org with `sf data query` or `sf api request rest`.
---
Run the prerequisite checks in `references/prerequisite-checks.md` — Prerequisites 1–4 **and** Prerequisite 5 (stage), since this skill operates on a specific stage. You need the confirmed `doce-org-alias`, `pipelineId`, and `stageId`.
| Input | How to obtain | |---|---| | `pipelineId` | Prerequisite 4 (pipeline selection) | | `stageId` | Prerequisite 5 (pipeline stage confirmation) | | `event` | Confirm with user: `Pre-Promote`, `Post-Promote`, or `Review` | | `testSuiteIds` | Confirmed suite IDs from selection or recommendation | | `doce-org-alias` | Prerequisite 1 |
---
**This call mutates org state — do not proceed without explicit user confirmation.** Before calling the API, show:
> "I'm about to run tests with the following configuration: > - Pipeline: `<pipelineName>` > - Stage: `<stageName>` > - Event: `<event>` > - Suite(s): `<suiteName(s)>` > - Org: `<doce-org-alias>` > > Shall I proceed?"
Do not make the API call until the user confirms.
sf api request rest \
"/services/data/v67.0/connect/devopstesting/pipeline/<pipelineId>/stage/execute" \
--method POST \
--body '{
"stageId": "<stageId>",
"event": "<event>",
"testSuiteIds": ["<suiteId1>", "<suiteId2>"]
}' \
--target-org <doce-org-alias>| Field | Type | Description | |---|---|---| | `stageId` | string | The ID of the pipeline stage to execute tests on | | `event` | string | `Pre-Promote`, `Post-Promote`, or `Review` | | `testSuiteIds` | string[] | One or more test suite IDs to execute |
Extract the `runId` (execution ID) from the response. Inform the user:
> "Tests are running in `<doce-org-alias>`. I'll update you when results are ready."
Then proceed **immediately** to Step 2 (polling) with the `runId`.
See `references/error-handling.md`. If the org rejects execution (e.g. `environmentId: null`, or `classIdList is null or empty — no tests to execute`), read the actual error, explain the root cause and required fix in plain language, and finish cleanly. **Do not retry in a loop and do not fabricate a `runId` or results.**
---
**Confirmation required:** No — polling is automatic and read-only.
Poll the execution record by `runId` at the provider-appropriate interval. Full intervals, timeout behavior, and the poll query are in `references/polling-configuration.md`.
Summary of the loop (the `runId` is a `DevopsTestSuiteExecution` Id — poll that object, not `DevopsTestExecution`):
---
Use when a promotion was blocked by a gate failure and the coverage gap has since been addressed. **All preconditions, gate, and the retrigger API call are in `references/retrigger-mode.md`.** Key rule: do **not** retrigger unless the latest `Coverage` meets or exceeds the `DevopsQualityGateRule` threshold. After the retrigger returns a new `runId`, hand it to Step 2 (polling).
---
This repository provides Salesforce agent skills, plugins, and sample apps for building applications.
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Use this skill to Upgrade Einstein Bots into Agentforce agents end-to-end in a single pass, orchestrating per-bot Agent Spec…
Data Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific…
Build, modify, audit, repair, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates,…
Analyze production Agentforce agent behavior using session traces and Data Cloud, and manage Agent Health Monitoring (AHM)…
Use to design an AI agent persona — identity, voice, tone, behavioral style, guardrails — and encode it into Agent Script (.agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.