Loading...
Loading...
Analyzes DevOps Center test failures and Code Analyzer violations in plain language — failure category, offending file/class/method/line, rule violated, fix direction, and prioritized improvement suggestions (test-code vs production-code) — then optionally creates a tracked fix WorkItem on explicit request. Analysis is pure reasoning; work-item creation is a confirmation-gated write. Use this skill to explain failures or improvement suggestions, translate Code Analyzer violations, or track a fix as a work item. TRIGGER when: a run failed and the user wants root cause; a quality gate failure needs explaining; violations need translating; the user shares a failure payload and asks how to address it; wants to strengthen tests; or wants to create a fix work item, log a remediation, or assign a failure. DO NOT TRIGGER when: the user wants fix code written (use platform-apex-generate) or new test classes authored (use platform-apex-test-generate).
npx skill4agent add forcedotcom/sf-skills dx-devops-test-failures-analyzereferences/prerequisite-checks.mddx-devops-test-suite-runDevopsProjectIdOwnerIdreferences/work-item-creation.md| Category | Description |
|---|---|
| Assertion failure | A test assertion failed (expected vs actual mismatch) |
| Exception | An unhandled exception was thrown |
| Code Analyzer violation | A static-analysis rule was violated (e.g. |
| Timeout | Test exceeded execution time limit |
| Compile error | Class failed to compile |
Test failure summary:
<N> failure(s) found:
1. [<Category>] `<ClassName>.cls` — `<methodName>()` at line <N>
What happened: <plain-language description>
Rule violated: <ruleName or assertion description>
Fix direction: <plain-language suggestion>references/failure-categories.mdreferences/code-analyzer-violations.mdreferences/failure-categories.mdTest improvement suggestions based on execution results:
`<testMethodName>()` — [Assertion Failure / Exception / etc.]
Failure: "<failure message>"
What this reveals: <plain-language explanation>
Suggestion: <specific, actionable recommendation>
Fix location: Test | Production code
Overall: <N> improvement(s) across <M> failed test(s).references/work-item-creation.mdsf data create record --sobject WorkItemUse(no namespace) —WorkItemis not a supported sObject in this org version.DevopsWorkItem
DevopsProjectdx-devops-test-suite-rundx-devops-test-suite-assignments-configureplatform-apex-generateplatform-apex-test-generate