forcedotcom/sf-skills

dx-devops-test-suite-assignments-configure

Recommends and manages DevOps Center test suite assignments for pipeline stages.

查看源码
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

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…ModeFollow
Know which suites to run for a commit/diff, or what covers their changesA — Recommend suitesreferences/recommendation-logic.md
Assign one suite to a stage as a one-offB — Assign a single suitereferences/suite-assignment-modes.md
Bulk-map multiple suites to a stage as a testing strategyC — Map multiple suitesreferences/suite-assignment-modes.md
Add/remove individual test classes within a suite assignmentD — Add/remove classesreferences/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.
来自同一仓库

更多 Skills

全部 Skills
forcedotcom
社区

automation-flow-generate

Generate Salesforce Flows using the MCP tool executemetadataaction. Use when the user asks to create, build, or generate a flow — including Screen, Autolaunched, Record-Triggered (before/after-save), Scheduled. Also trigger for flow-like requests such as \"when a record is created\", \"trigger daily at\", \"send an email when\", \"update the field when\", \"automate\", \"workflow\", or \"flow XML/metadata\". This is the only skill for Salesforce Flow generation.

安装量
1
GitHub Stars
1027
最近更新
9月18日
forcedotcom
社区

automation-sandbox-post-copy-config-generate

Generate 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, RemoteSiteSettings, and ScheduledApex 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).

安装量
1
GitHub Stars
1027
最近更新
9月18日
forcedotcom
社区

platform-apex-generate

Primary Apex authoring skill for class generation, refactoring, and review. ALWAYS ACTIVATE when the user mentions Apex, .cls, triggers, or asks to create/refactor a class (service, selector, domain, batch, queueable, schedulable, invocable, DTO, utility, interface, abstract, exception, REST resource). Use this skill for requests involving SObject CRUD, mapping collections, fetching related records, scheduled jobs, batch jobs, trigger design, @AuraEnabled controllers, @RestResource endpoints, custom REST APIs, or code review of existing Apex.

安装量
1
GitHub Stars
1027
最近更新
9月18日
forcedotcom
社区

platform-apex-logs-debug

Salesforce debug log analysis and troubleshooting with 100-point scoring. TRIGGER when: user analyzes debug logs, hits governor limits, reads stack traces, or touches .log files from Salesforce orgs. DO NOT TRIGGER when: running Apex tests (use platform-apex-test-run), generating or fixing Apex code (use platform-apex-generate), or Agentforce session tracing (use agentforce-observe).

安装量
1
GitHub Stars
1027
最近更新
9月18日