dx-devops-test-failures-analyze

Analyzes Salesforce DevOps Center test failures and Code Analyzer violations into plain-language fix directions.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/padjei/SF_Build --skill dx-devops-test-failures-analyze-padjei
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dx-devops-test-failures-analyze
Source: https://github.com/padjei/SF_Build/tree/main/.claude/skills/dx-devops-test-failures-analyze
Command: npx skills add https://github.com/padjei/SF_Build --skill dx-devops-test-failures-analyze-padjei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Salesforce DevOps Center test runs and Code Analyzer scans produce raw failure payloads, stack traces, and cryptic rule names that are hard to interpret. This Skill translates those failures into plain-language explanations — the offending file, method, line, rule violated, and fix direction — so developers can act on quality gate failures without decoding raw JSON or internal error codes. ## Core Features & Use Cases - Failure Classification and Explanation: Categorizes each failure (assertion failure, exception, Code Analyzer violation, timeout, compile error) and translates it to file, method, line, and a plain-language fix direction. - Prioritized Improvement Suggestions: Reasons over failure messages to produce actionable recommendations with a fix location of Test vs Production code, separating test-quality issues from real code defects. - Confirmation-Gated Work Item Creation: On explicit request only, creates a tracked DevOps Center WorkItem for a fix after a mandatory confirmation gate, with plain-language error handling. - Use Case: A quality gate fails on your Integration stage. Ask the Skill to explain the run, and it reports that AccountService.cls line 42 violates ApexCRUDViolation (missing CRUD permission check) as a production-code fix, while a null-pointer assertion failure in the test class needs test setup hardening — then optionally files a fix work item assigned to a developer. ## Quick Start Explain the failures from my latest DevOps Center test suite run and suggest how to fix them.

Frequently Asked Questions about dx-devops-test-failures-analyze

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze Salesforce DevOps Center test failures?▼

Provide the failure payload from a test suite run, and the Skill classifies each failure by category, then translates it to the offending file, method, line, rule violated, and a plain-language fix direction. If the payload is not in context, it fetches execution results via the test suite run polling step.

How do I translate Code Analyzer violations like ApexCRUDViolation?▼

Each rule name is translated to plain English with the exact line number and a fix direction. For example, ApexCRUDViolation means a SOQL query or DML ran without an object-level permission check, fixed by adding a Schema.sObjectType isAccessible check.

Can this skill write the fix code for failed Apex tests?▼

No, it only describes what needs to change and why, without writing code. Writing fix code is delegated to platform-apex-generate, and authoring new test classes is delegated to platform-apex-test-generate.

Does it create work items automatically for test failures?▼

No, work item creation is an optional write triggered only on explicit user request. It requires a confirmation gate showing subject, assignee, and project before running sf data create record on the WorkItem object.

Why does the skill say no DevOps Center pipeline was found?▼

The prerequisite checks query the DevopsPipeline standard object on your authenticated org. If no records return, either DevOps Center is not set up on that org or you are pointing at the wrong org alias.

What Salesforce API version does DevOps Center test analysis require?▼

All DevOps testing system calls target Salesforce API v67.0 as the minimum required version. The skill also requires an authenticated org and the Agentforce DX plugin installed via sf plugins install @salesforce/plugin-agent.