Skip to content
forcedotcom avatar

Dx Devops Test Failures Analyze

Analyzes DevOps Center test failures and Code Analyzer violations, then optionally files a tracked fix work item.

CCM score
71 of 100
skills.sh installs
5.2K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers failure classification, offending file and method, rule violated, fix direction, and prioritized test-versus-production improvement suggestions
  • Translates raw payloads into plain language, withholding JSON, stack traces, and internal error codes from the output
  • Keeps analysis as pure reasoning, with work-item creation gated behind explicit user confirmation
  • Designed for explaining quality gate failures or logging remediation as a WorkItem, not for writing fix code or new test classes

Install

$ npx -y skills add forcedotcom/sf-skills --skill dx-devops-test-failures-analyze -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Analyze DevOps Center Test Failures

Parses a test failure or Code Analyzer violation payload, explains it in plain language, produces prioritized improvement suggestions, and — only on explicit user request — creates a tracked fix work item. Parts 1–2 are pure reasoning (no writes); Part 3 is an optional, confirmation-gated write.

Never expose raw JSON, stack traces, or internal Salesforce error codes to the user. Always translate to file name, method, line, and plain description.


Prerequisites

  • Parts 1–2 (analysis): If the failure payload is already in context, no prerequisites are needed — this is pure reasoning. If you must fetch the payload yourself, run prerequisites (references/prerequisite-checks.md, Prereqs 1–4) and obtain the execution result via dx-devops-test-suite-run (its polling step).
  • Part 3 (work item): Run Prerequisites 1–4. You also need a DevopsProjectId to file under and an OwnerId (assignee). See references/work-item-creation.md.

Part 1 — Classify and explain each failure

Details

Repository
github.com/forcedotcom/sf-skills
Categories
DevOps & Cloud, Code Review & Quality
First seen
Jul 14, 2026

Questions

What does the dx-devops-test-failures-analyze skill do?

It analyzes DevOps Center test failures and Code Analyzer violations in plain language, naming the failure category, the offending file, class, method and line, the rule violated, and a fix direction. It also gives prioritized improvement suggestions for test code or production code. Creating a tracked fix work item happens only on explicit request.

How do I install the dx-devops-test-failures-analyze skill?

Run npx -y skills add forcedotcom/sf-skills --skill dx-devops-test-failures-analyze -y in a project. Once installed, the skill lets the agent explain a failed DevOps Center test run and translate Code Analyzer violations into plain language. It is listed under the DevOps and Cloud category.

What do I need before using this skill to analyze failures?

If the failure payload is already in context, no extra prerequisites are needed because the analysis is pure reasoning. If you must fetch the payload yourself, the skill relies on the prerequisite checks and the polling step from dx-devops-test-suite-run. Creating a work item additionally needs a DevopsProject and an owner, and the skill cannot file one without an existing DevopsProject in the org.

Does this skill write fix code or create new test classes?

No, it does not write fix code or author new test classes. It only describes what needs to change and why, without rewriting the test. For fix code, use platform-apex-generate, and for new test classes, use platform-apex-test-generate.

More from forcedotcom/sf-skills

All 78

Similar to Dx Devops Test Failures Analyze

More DevOps & Cloud