dx-devops-test-pipeline-configure — скилл для Claude Code: тесты
Настраивает тестовую инфраструктуру пайплайна DevOps Center: включает провайдера тестов, обновляет список сьютов или ставит quality gate на стадию.
npx skills add forcedotcom/sf-skills --skill dx-devops-test-pipeline-configure -a claude-codeЧто делает dx-devops-test-pipeline-configure
Скилл закрывает три операции на уровне пайплайна. Первая — включить провайдера тестов, который ещё не настроен, чтобы его сьюты стали доступны. Вторая — пересинхронизировать уже настроенного провайдера и подтянуть новые сьюты. Третья — создать quality gate с правилами на стадии, включая порог покрытия.
Сначала скилл всегда прогоняет проверки из references/prerequisite-checks.md: вход в орг, плагин Agentforce DX, авторизация в орг DevOps Center, найденный пайплайн. Для quality gate добавляется проверка стадии. Если проверка падает, работа останавливается — в непроверенную среду запись не идёт. Дальше режим выбирается по состоянию провайдера: Available — настройка, Configured со устаревшими сьютами — синхронизация. Перед любой записью в орг показывается подтверждение, а для quality gate ещё и предпросмотр влияния.
Все данные DevOps Center — пайплайны, стадии, провайдеры, сьюты, гейты — живут в орг Salesforce, а не в локальном репозитории, поэтому искать конфиги по файлам бессмысленно: скилл ходит в орг через sf data query и sf api request rest. Нужен CLI sf версии >=2.67.0 и API не ниже v67.0. Отдельно про грабли: повторный POST на настройку уже настроенного провайдера создаёт дубли DevopsPipelineTestProvider, так что это повод сначала посмотреть статус провайдера. Если сьюты не видны при назначении на стадию, дело не в конфигурации — это задача скилла dx-devops-test-suite-assignments-configure.
Какие задачи решает
- включить провайдера тестов, чтобы его сьюты появились в пайплайне
- подтянуть новые сьюты в уже настроенный провайдер
- задать порог покрытия на стадии пайплайна
- создать quality gate с правилами для стадии
- разобраться, почему сьюты не видны при назначении на стадию
Примеры запросов агенту
- Настрой провайдера тестов в пайплайне DevOps Center
- Пересинхронизируй провайдера и подтяни новые сьюты
- Поставь quality gate с порогом покрытия на стадию
Как установить dx-devops-test-pipeline-configure
1Через Skills CLI (Vercel)
npx skills add forcedotcom/sf-skills --skill dx-devops-test-pipeline-configure -a claude-code2Вручную: положить файлы
~/.claude/skills/dx-devops-test-pipeline-configure/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/dx-devops-test-pipeline-configure/
1Через Skills CLI (Vercel)
npx skills add forcedotcom/sf-skills --skill dx-devops-test-pipeline-configure -a codex2Вручную: положить файлы
.agents/skills/dx-devops-test-pipeline-configure/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add forcedotcom/sf-skills --skill dx-devops-test-pipeline-configure -a cursor2Вручную: положить файлы
.cursor/skills/dx-devops-test-pipeline-configure/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install forcedotcom/sf-skills dx-devops-test-pipeline-configure2Вручную: положить файлы
.github/skills/dx-devops-test-pipeline-configure/SKILL.md1Через Skills CLI (Vercel)
npx skills add forcedotcom/sf-skills --skill dx-devops-test-pipeline-configure -a gemini-cli2Командой платформы
gemini skills install https://github.com/forcedotcom/sf-skills --path skills/dx-devops-test-pipeline-configureВручную: положить файлы
.devin/skills/dx-devops-test-pipeline-configure/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add forcedotcom/sf-skills --skill dx-devops-test-pipeline-configure -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о dx-devops-test-pipeline-configure
Как установить dx-devops-test-pipeline-configure в Claude?
Одной командой: npx skills add forcedotcom/sf-skills --skill dx-devops-test-pipeline-configure -a claude-code. Файл скилла окажется в ~/.claude/skills/dx-devops-test-pipeline-configure/SKILL.md.
Что делает dx-devops-test-pipeline-configure?
Настраивает тестовую инфраструктуру пайплайна DevOps Center: включает провайдера тестов, пересинхронизирует уже настроенного провайдера или создаёт quality gate с правилами на стадии. Режим выбирается по состоянию провайдера в орг.
Что нужно для работы скилла?
CLI sf версии >=2.67.0, плагин Agentforce DX, авторизация в орг DevOps Center и найденный пайплайн; для quality gate ещё и стадия. Вызовы идут к Salesforce API v67.0.
Исходный текст
SKILL.md · Apache-2.0
---
name: dx-devops-test-pipeline-configure
description: "Configures DevOps Center pipeline testing infrastructure: enables a test provider so its suites become available, re-syncs a configured provider to pull in new suites, or creates a quality gate with rules on a stage. Routes by intent across three modes after running shared prerequisite checks and an explicit confirmation gate. Use this skill when a user wants to set up, configure, enable, sync, or refresh a test provider, or set/configure a quality gate or coverage threshold on a DevOps Center pipeline stage. TRIGGER when: the user wants to configure/enable/add/set up a test provider, re-sync or refresh a provider's suite list, pull in new suites, or set/configure a quality gate, coverage threshold, or testing benchmark on a stage. DO NOT TRIGGER when: assigning existing suites to a stage (use dx-devops-test-suite-assignments-configure), running or retriggering a suite (use dx-devops-test-suite-run), or non-DevOps-Center work."
metadata:
version: "1.0"
domains: ["Developer Experience"]
minApiVersion: "67.0"
relatedSkills:
- "dx-devops-test-failures-analyze"
- "dx-devops-test-suite-assignments-configure"
- "dx-devops-test-suite-run"
cliTools:
- tool: ["sf"]
semver: ">=2.67.0"
---
# Configure DevOps Center Pipeline Testing Infrastructure
Sets up and configures a DevOps Center pipeline's testing infrastructure. This skill handles three closely related "configure your pipeline" operations that share the same org context, prerequisites, and entity scope (the pipeline level). Pick the mode that matches the user's intent.
> **API version:** All DevOps testing system calls target Salesforce API **v67.0** (minimum required).
**Important:** All DevOps Center data (pipelines, stages, providers, suites, gates) lives in the Salesforce org — NOT the local repo. Never search the filesystem for pipeline configuration. Always query the org with `sf data query` or `sf api request rest`.
---
## Step 1 — Run prerequisites first (always)
Before any query or system call, run the prerequisite checks in `references/prerequisite-checks.md`. On any failure, surface the plain-language message and stop — never write to an unverified environment.
- **Modes A & B (provider configure/sync):** run Prerequisites 1–4 (org login, Agentforce DX plugin, DevOps Center org auth, pipeline identified). Prerequisite 5 (stage) is **not** required — providers are configured at the pipeline level.
- **Mode C (quality gate):** run Prerequisites 1–4 **and** Prerequisite 5 (stage). Prereq 5 gives the `DevopsPipelineStage` only — the target `DevopsTestSuiteStage` record Id is resolved separately in Mode C's Step 0 (trigger → suite-stage row).
Carry forward the resolved `doce-org-alias`, `pipelineId`, and (Mode C) `stageId` / `testSuiteStageId`.
---
## Step 2 — Select the mode
| If the user wants to… | Mode | Follow |
|---|---|---|
| Enable / set up / add a provider that is **not yet configured** | **A — Configure a test provider** | `references/configuring-test-provider.md` |
| Re-sync / refresh an **already-configured** provider to pull in new suites | **B — Sync a configured provider** | `references/syncing-test-providers.md` |
| Set / configure a quality gate, coverage threshold, or testing benchmark on a stage | **C — Configure a quality gate** | `references/configuring-quality-gate.md` |
**Disambiguating A vs B (the critical decision):** First fetch the pipeline's providers (`GET .../testProviders?status=all`) — both modes start there. Then:
- Provider is **Available** (not configured) → **Mode A** (configure).
- Provider is **Configured** but suites are stale/missing → **Mode B** (sync).
- Provider is **Configured** and the user can't see suites *when assigning to a stage* → this is a **stage-assignment gap, not a configuration gap**. Redirect to `dx-devops-test-suite-assignments-configure`.
**Never POST to the configure endpoint for an already-configured provider** — it creates duplicate `DevopsPipelineTestProvider` records. See `references/gotchas.md`.
---
## Step 3 — Confirmation gate (required in every mode)
Every mode mutates org state and **must** show a confirmation gate before any write. Each mode's reference file contains its exact gate wording (Mode C additionally requires a mandatory impact preview before the gate). Do not call any write API until the user gives an affirmative response. If the user declines, stop without writing.
---
## Step 4 — Execute and report
Follow the chosen reference file for the exact API calls, success messages, and error handling:
- `references/configuring-test-provider.md` — Mode A
- `references/syncing-test-providers.md` — Mode B
- `references/configuring-quality-gate.md` — Mode C
- `references/error-handling.md` — consolidated status-code → plain-language tables for all modes
- `references/gotchas.md` — duplicate-provider trap, API-name differences, trigger-type rules
Never expose raw API errors, stack traces, or JSON payloads to the user — always translate to plain language.
---
## Related skills
- **`dx-devops-test-suite-assignments-configure`** — after configuring/syncing a provider, assign or map its suites to a stage; also recommends which suites to run for a commit.
- **`dx-devops-test-suite-run`** — run a suite, or retrigger a quality gate after fixes meet the threshold.
- **`dx-devops-test-failures-analyze`** — explain failures from a run and optionally create a fix work item.
© forcedotcom · Apache-2.0 · forcedotcom/sf-skills