analyze-failures

analyze-failures is a cursor rule for Cursor from katalon-labs/true-skills. It costs 125 tokens per session (1,282 once invoked), scanned A, original, MIT.

A failure-triage workflow for examining Katalon test results and deciding whether failures come from the product, the test automation, the environment, or test data. It can also file defects when the required result and integration details are known.

In plain words
What is it for?
Use it to collect failed results, group similar failure signatures, inspect execution and defect data, classify likely causes, and create linked defects through an available ALM integration.
Why use it?
It separates real product bugs from unreliable tests and temporary setup problems, reducing time spent investigating the wrong cause.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to collect failed results, group similar failure signatures, inspect execution and defect data, classify likely causes, and create linked defects through an available ALM integration.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/katalon-labs/true-skills/analyze-failures
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/katalon-labs/true-skills

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-failures

README.md
[![agentmods](https://agentmods.dev/badge/rules/katalon-labs/true-skills/analyze-failures.svg)](https://agentmods.dev/rules/katalon-labs/true-skills/analyze-failures)
Your own site
<a href="https://agentmods.dev/rules/katalon-labs/true-skills/analyze-failures"><img src="https://agentmods.dev/badge/rules/katalon-labs/true-skills/analyze-failures.svg" alt="Measured on agentmods" height="20"></a>
Per session 125 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,282 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00125 $0.01282
Opus 5 $0.00063 $0.00641
Sonnet 5 $0.00025 $0.00256
Haiku 4.5 $0.00013 $0.00128

Measured 8d ago against content hash 8d47d18cab23, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

analyze-failures scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/analyze-failures.mdc · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Katalon Analyze Failures

Use this skill for the failure-analysis part of the report/analysis stage: turn a set of failed results into a diagnosis and, when warranted, filed defects. The core value is classification — separating real product bugs from automation and environment noise.

Availability Boundary

  • Available via MCP: read results (read_test_result, read_execution_test_results, find_test_results, read_execution), defect context (fetch_defect_data), ALM discovery + filing (find_alm_integration_projects, create_defect).
  • Not directly available: AI root-cause summarization and automation-error-pattern analytics are TestOps/Studio product features, not MCP calls — narrate their availability, do not claim to call them. create_defect requires a known failed test result ID and ALM integration details; there is no ID-less defect creation.

Triage Workflow

+---------------------+     +----------------------+     +----------------------+
| Collect failures    | --> | Classify each        | --> | Cluster by signature |
| read results        |     | product/auto/env     |     |                      |
+---------------------+     +----------------------+     +----------------------+
                                                                   |
                                                                   v
                                                         +----------------------+
                                                         | File defects (asked) |
                                                         +----------------------+

Steps and tool rules

  1. Collect the failures. find_test_results (recent/specific) or read_execution_test_results for a run; read_test_result per failed case for detail.
  2. Classify each failure into one bucket:
    • Product defect — the application behaved wrong (assertion on real behavior failed, unexpected error/state). Candidate for a filed defect.
    • Automation defect — the test is wrong (bad locator, timing, stale data, broken step). Route to test-maintenance.
    • Environment / data — infra, account, network, fixture, or AUT-state issue. Route to re-run after fix.
  3. Cluster by signature. Group failures with the same error message / step / object so one root cause is not filed as N defects.
  4. Check existing defects. fetch_defect_data to avoid duplicate filings.
  5. File defects only when asked and only for product defects. find_alm_integration_projects -> create_defect with the failed result ID. Ask before creating unless the user explicitly requested defect filing.
  6. Report. Per cluster: classification, likely cause, affected cases, and action (file / repair / re-run).

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 99 lines · 125 tokens per session scan A 8d47d18cab23

Subscribe to this mod's changes

analyze-failures is a cursor rule published in the GitHub repository katalon-labs/true-skills (7 stars, last pushed yesterday), licensed MIT. It adds 125 tokens to every session and 1,282 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.