agentleFS
katalon-labskatalon-labs/true-skills/.cursor/rules/test-maintenance.mdc

true-skills / rules

Cursor rule10 starsChanged 5 months agoMITView on GitHub

Maintain and evolve a Katalon True Platform/TestOps regression suite as the application changes. Use when you need to detect which tests broke or became flaky from stability and result history, diagnose whether a case needs repair vs regeneration, repair test assets (update, move, reorganize cases), refresh coverage after application or requirement changes, and feed the resulting gap list back into planning. Closes the lifecycle loop. For classifying a specific run's failures use analyze-failures; for authoring brand-new cases use create-test-cases. Written for the automation tester repairing a suite that has started lying, and the test lead who has to keep it trustworthy.

The file

We split this test-maintenance.mdc into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for the maintenance stage: keep the regression suite healthy over time and feed learning back to the plan.

    line 10
  2. Very specific:

    Read references/maintenance-loop.md before repairing.

    line 56
  3. Very specific:

    Prefer update_test_case / move_test_case over delete_test_case (delete unreliable).

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
test-maintenance.mdc
---
description: Maintain and evolve a Katalon True Platform/TestOps regression suite as the application changes. Use when you need to detect which tests broke or became flaky from stability and result history, diagnose whether a case needs repair vs regeneration, repair test assets (update, move, reorganize cases), refresh coverage after application or requirement changes, and feed the resulting gap list back into planning. Closes the lifecycle loop. For classifying a specific run's failures use analyze-failures; for authoring brand-new cases use create-test-cases. Written for the automation tester repairing a suite that has started lying, and the test lead who has to keep it trustworthy.
alwaysApply: false
---

<!-- GENERATED by scripts/build-adapters.mjs from skills/. Do not edit by hand. -->

# Katalon Test Maintenance

Use this skill for the **maintenance** stage: keep the regression suite healthy over time and feed learning back to the plan. It consumes failure/stability signals and produces repairs plus a refreshed coverage gap list.

## Availability Boundary

- **Available via MCP:** change/impact signals (`fetch_test_stability_data`, `find_test_results`, `read_execution`), and case-level repair (`update_test_case`, `move_test_case`, `duplicate_test_case`).
- **Not directly available:** Self-healing tests, Time Capsule, Studio Tracer, object refactoring, and StudioAssist Agent-mode edits are **Studio-desktop** features. TrueTest regeneration from live journeys is a **TrueTest** surface. Narrate these; MCP repairs are case-level content edits, not object/script self-healing.

## Maintenance Workflow

```text
+---------------------+     +----------------------+     +----------------------+
| Detect change impact| --> | Diagnose: repair vs  | --> | Repair case assets   |
| stability + history |     | regenerate vs retire |     | update/move/dup      |
+---------------------+     +----------------------+     +----------------------+
                                                                   |
                                                                   v
                                                         +----------------------+
                                                         | Validate + feed back |
                                                         | to plan (gap list)   |
                                                         +----------------------+
```

## Steps and tool rules

1. **Detect impact.** `fetch_test_stability_data` for flakiness trend; `find_test_results` + `read_execution` for what changed across recent runs. Build the list of broken / flaky / degraded cases.
2. **Diagnose each.** Decide per case:
   - **Repair** — the case is salvageable: fix data, steps, or expected result via `update_test_case`; reorganize via `move_test_case`; branch a variant via `duplicate_test_case`.
   - **Regenerate** — behavior changed enough that the case should be re-derived (TrueTest regeneration / re-author) -> hand to `create-test-cases`; narrate the TrueTest boundary.
   - **Retire** — behavior removed: unlink/retire (prefer update/flag over unreliable `delete_test_case`); get approval.
3. **Repair (MCP-legal edits only).** Pass all intended updates in one `update_test_case` call. Do not claim to have self-healed locators/objects — that is Studio.
4. **Validate.** Re-run through `execute-test` and confirm via `find_test_results` / `read_execution`.
5. **Feed back.** Emit the refreshed coverage gap list to `test-plan` so maintenance closes the loop instead of dead-ending.

## Prompt recipes

- `Which regression cases became flaky this month, and which should we repair vs regenerate?`
- `Repair the login suite after the new auth flow: update the affected cases and tell me what still needs re-authoring.`
- `After this release's UI change, refresh coverage and give me the gap list for next sprint.`

## Hand-offs

- Classify a specific failed run first -> `analyze-failures`.
- Re-author changed behavior -> `create-test-cases`.
- Confirm repairs -> `execute-test` then `test-review`.
- Refreshed gaps -> `test-plan`.

Read `references/maintenance-loop.md` before repairing. Consult the orchestrator's `references/unavailable-capabilities.md` for the Studio/TrueTest boundary.

---

## Bundled references

_The reference material the skill points to is inlined below so this file is self-contained._


### references/maintenance-loop.md

# Maintenance loop reference

## Detect -> diagnose -> repair -> validate -> feed back

```text
stability/history  ->  per-case decision  ->  MCP-legal edit  ->  re-run  ->  gap list -> plan
```

## Per-case decision table

| Signal | Decision | MCP action |
|---|---|---|
| passes on re-run, no app change | flaky -> stabilize | `update_test_case` (waits/data); flag for Studio object review |
| consistent fail, app behavior changed | regenerate | hand to `create-test-cases`; narrate TrueTest regeneration |
| step/element gone from app | repair or retire | `update_test_case` to match new flow; retire with approval |
| duplicate/near-duplicate drift | consolidate | `duplicate_test_case` base + `move_test_case`; keep one canonical |
| wrong folder/suite after refactor | reorganize | `move_test_case`, `manage_test_suite` |

## Boundaries to narrate (never claim as MCP)

- Self-healing locators, Time Capsule object repair, Studio Tracer, object-repository refactor = **Studio desktop**.
- TrueTest regeneration from live user journeys = **TrueTest** surface.
- MCP maintenance = **test-case content edits** (title, steps, expected results, data, links, location) + reorganization.

## Closing the loop

Maintenance is not done at "green again." Emit:

```text
Repaired:     <cases + what changed>
Regenerate:   <cases handed to create-test-cases + why>
Retired:      <cases + approval note>
New gaps:     <coverage now missing> -> test-plan
Stability:    <before/after flakiness signal>
```

## Safe-mutation rules

- Prefer `update_test_case` / `move_test_case` over `delete_test_case` (delete unreliable).
- One `update_test_case` call carries all intended edits for a case.
- Approve bulk changes and any retire/delete before executing.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.