analyze-failures
Skill10 starsChanged 5 months agoMITView on GitHub
Diagnoses one red Katalon True Platform (formerly TestOps) run. It classifies each failed result as a product defect, an automation defect, or an environment issue, clusters failures by signature, and files ALM-linked defects for confirmed bugs. Use when a run has failures and the question is whether the app broke or the test did. Not for the ship call (release-analyze) or suite repair (test-maintenance). For the manual tester and the automation tester.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- llms.txtllms.txt
- create-test-casesSkill
- execute-testSkill
- exploratory-charterSkill
- get-startedSkill
- platform-setupSkill
- playwright-executeSkill
- project-memorySkill
- release-analyzeSkill
- test-case-to-katalon-studioSkill
- test-case-to-playwrightSkill
- test-dataSkill
- test-environmentsSkill
- test-estimationSkill
- test-maintenanceSkill
- test-managementSkill
- test-planSkill
- test-reportingSkill
- test-reviewSkill
- true-platform-testingSkill
- truetest-journeysSkill
- upload-reportSkill
- analyze-failuresSkill
- create-test-casesSkill
- execute-testSkill
- exploratory-charterSkill
- get-startedSkill
- platform-setupSkill
- playwright-executeSkill
- project-memorySkill
- release-analyzeSkill
- test-case-to-katalon-studioSkill
- test-case-to-playwrightSkill
- test-dataSkill
- test-environmentsSkill
- test-estimationSkill
- test-maintenanceSkill
- test-managementSkill
- test-planSkill
- test-reportingSkill
- test-reviewSkill
- true-platform-testingSkill
- truetest-journeysSkill
- upload-reportSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Read each tool schema before the first call.
- Very specific: line 46
No tool returns the signed-in user.
- Distinctive: line 74
Never invent a stack trace, a defect key, or an ALM project.
- Very specific: line 82
Keep the fetch_defects pre-check.
- Very specific: line 83
Never test create_defect on a customer integration.
- Very specific: line 98
Read references/failure-triage.md before you classify.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Analyze Failures
This skill turns a set of failed results into a diagnosis. When the user asks, it also files defects. The core value is classification: it separates real product bugs from automation and environment noise.
The reader is the manual tester or the automation tester who looks at a red run and needs to know whether the application broke or the test did.
Katalon True Platform (formerly TestOps) holds the results. Katalon Test Execution - Cloud (formerly TestCloud) holds the artifacts of cloud runs. Clients add a prefix to tool names (Claude Code uses mcp__<server>__<tool>). This skill uses bare names.
What the MCP gives you
| Need | Tool |
| Find recent or specific results | find_test_results (filter_type COMMON or RELATIVE), list_executions |
| Read one result with error detail | find_test_results with filter_type TEST_RESULT and include_details: true |
| Read the failed results of one execution | read_execution, then find_test_results with filter_type EXECUTION and status |
| Run history for flaky and trend signals | fetch_test_stability_metrics |
| Defects already linked to a result, case, or execution | fetch_defects |
| Defect distribution for an iteration or date range | fetch_defect_metrics |
| Artifacts of a cloud execution | list_execution_outputs |
| Run with AI session detail | read_manual_ai_session |
| Rerun a completed automated execution | rerun_execution |
| Attach evidence | prepare_artifact_upload, confirm_artifact_upload |
| File a defect | list_alm_integrations, create_defect |
Read each tool schema before the first call. This skill names only the parameters that change the answer.
Limits to state up front:
- AI root-cause summaries and automation error-pattern analytics are product features in the web app. They are not MCP calls. Do not claim to call them.
create_defectneeds a failed test result ID, an ALM integration ID, and an ALM connection ID. It files a real Jira or Azure DevOps bug. Defect creation without a result ID does not exist.- The Test Results Analysis report in the web app (live since early November 2026) filters results by source and profile and has an Insights button. It helps with clustering. It is web UI only. Point the user to it. Do not claim the metrics tools take a source or profile filter.
- Two ID spaces both use the word "execution".
read_executionandlist_executionsuse the numeric True Platform ID.list_execution_outputsuses the Test Execution - Cloud string ID. No tool converts one to the other. Never swap the two list tools. rerun_executionreruns an automated Studio, KRE, or Test Execution - Cloud execution only. A manual TestPak (a run withMANUALas its executionType, used for human testing and for Run with AI) restarts throughupdate_test_runinexecute-test.fetch_test_stability_metricshas no minimum-run parameter. It takes a window (from_date,to_date) or an execution or iteration. Count the runs yourself withfind_test_resultsbefore you trust a signal.find_test_resultswithinclude_detailsreturns error detail and failed assertions. It returns no log content. Read logs from the artifacts or the web app.- No tool returns the signed-in user. Take the user from the client session.
create_defectneeds no assignee. - MCP is stateless. Ask in chat for any missing input and carry IDs from call to call.
Workflow
+----------------+ +----------------+ +----------------+ +----------------+
| Collect |-->| Add history |-->| Classify and |-->| Report, then |
| failures | | and evidence | | cluster | | act (asked) |
+----------------+ +----------------+ +----------------+ +----------------+- Collect the failures. Use
find_test_resultswith a COMMON or RELATIVE filter for recent or targeted results. For one run, callread_execution, thenfind_test_resultswith filter_typeEXECUTIONandstatusset toFAILEDorERROR. The page parameters walk the execution's jobs, not single results, so keep paging until nothing is left. An execution without jobs returns results directly (manual results carryjobId: null). Read each failed case with filter_typeTEST_RESULTandinclude_details: true. If the user gives no scope, ask for an execution ID, a suite, or a date range. - Set aside results with no verdict. Blocked, not executed,
INCOMPLETE, and Run with AI sessions stuck in TODO or IN_TESTING are not failures. List them apart. Do not force them into a bucket. - Read run history first. Call
fetch_test_stability_metricswithfilter_typeEXECUTIONandexecution_id, orITERATIONwithiteration_typeanditeration_name. Addfrom_dateandto_datefor a lookback window. Setreturn_teststo name the cases you need (FLAKY,ALWAYS_FAIL,NEW_FAILURE,SLOW, orALL). Omit it and the call returns metrics only. The call returns three cases per category unless you raiselimit_tests. A case is flaky when the same test on the same build gave different results. Never label a case flaky from one read of its code. A model may explain a root-cause category after history shows the pattern. - Read the evidence. Call
list_execution_outputswith the cloud execution ID for artifact links. Enumerate every output it returns and do not alter the presigned URLs. For Playwright results, open the trace and the error context (see the reference). For a Run with AI result, read the session withread_manual_ai_sessionand check whether the agent misread the step. - Classify each failure into one bucket:
- Product defect. The application behaved wrong and the failure repeats.
- Automation defect. The test is wrong: locator, wait, stale data, or a step that no longer matches the UI.
- Environment or data. Infrastructure, account, network, fixture, or AUT state. A case that passed 8 or more of its last 10 runs needs a rerun or stability evidence before you call its failure a product defect.
- Cluster by signature. Group failures with the same step, error message, and object. One cluster is one candidate root cause and at most one defect.
- Rerun only to learn something.
rerun_executioncosts Test Execution - Cloud minutes and can change AUT data. Callread_executionfirst to confirm the execution type, and ask the user before you rerun. An execution ID alone is no authorization. A pass on an unchanged rerun is flaky evidence. It does not clear the failure. Do not loop reruns until green. - Check for existing defects. Call
fetch_defectswithfilter: {"filter_type": "TEST_RESULT", "test_result_ids": [<failed result IDs>]}, orfilter: {"filter_type": "EXECUTION", "execution_id": <execution ID>}. A result with an emptydefectslist has no linked defect. A linked defect on a sibling case of the same cluster means the cluster already has an owner. Callfetch_defect_metricswhen the question is the standing defect load for an iteration or date range. Usefilter_typeITERATION,DATE_RANGE, orDEFAULT. The defaultresolution_stateisUNRESOLVED, so a question about all defects needs a second call withRESOLVED. The metrics call shows distributions, not keys. If a known defect for the signature lives in the tracker only and is not linked to the result, ask the user to search the tracker before you file. - File defects only when asked, and only for product defects. Follow
references/write-policy.md: preview each defect (summary, description, failed result ID), get one confirmation, calllist_alm_integrationsif the integration is unknown, callcreate_defect, then report the key or link the call returns. If the summary is missing, ask the user for it. Suggest the failed case name, or "Defect for {test case name}". If the call returns no key, say so. Read the result back withfetch_defects. - Attach evidence only when asked. Follow
references/write-policy.md: preview each file (filename, exact byte size, mime type, and that project members can see it) and get one confirmation before any upload call. Measure the exact byte size of the file (1 to 10,485,760). Callprepare_artifact_upload, upload the raw bytes without Platform credentials, then callconfirm_artifact_upload. See the tool schema for what the artifact attaches to. - Report per cluster: classification, likely cause, affected cases, evidence, and action (file, repair, or rerun after a fix).
Never invent a stack trace, a defect key, or an ALM project. If an input is missing, report blocked and name the input.
Defect filing notes
State as of November 2026:
create_defectsends the Jira issue-type ID together with the name. Before the November 2026 fix, a Jira integration with an allowed defect type such as Bug returned HTTP 400 "Issue type is not configured for defects". Company-managed Jira projects with a required custom field are also fixed.- Report Defect on a manual-run result with attachments can fail with a storage 404 for Jira and Azure DevOps. The fix lands in the 2026-11-18 release. Until then, if filing fails on a result with attachments, file without them and tell the user.
- Keep the
fetch_defectspre-check. It still shows whether a sibling result already has an owner. - Never test
create_defecton a customer integration. It files a real ticket. Use a controlled test project.
Prompt recipes
Triage the failures in execution 8842: which are product bugs, flaky tests, or environment?Cluster today's failed results by root cause and tell me what to file.File defects for the confirmed product bugs in the checkout suite and link them to the failed results.
Hand-offs
- Automation defects and flaky cases go to
test-maintenance. - A ship decision from the failure picture goes to
release-analyze. - A coverage gap exposed by a failure goes to
test-plan. - The full capability boundary lives in
true-platform-testing.
Read references/failure-triage.md before you classify. It holds the signal table, the flaky rules, the evidence reading steps, and the report template.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

