test-maintenance
Skill10 starsChanged 5 months agoMITView on GitHub
Keeps a Katalon True Platform (formerly TestOps) regression suite trustworthy as the application changes. It reads stability and result history, decides per case whether to repair, regenerate, or retire, applies reviewed repairs under healing guardrails, and feeds gaps back to planning. Use when a suite has drifted, tests turned flaky or stale, or a UI change broke many cases. Not for one red run (analyze-failures) or new cases (create-test-cases). For the automation tester and the test lead.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- llms.txtllms.txt
- 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-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
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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
- Distinctive: line 33
Read each tool schema before the first call.
- Very specific: line 63
Diagnose each case: Read the case first with read_test_cases and content_type FLOW for the steps.
- Distinctive: line 75
Never weaken an assertion: Do not remove it, loosen it, or swap a specific expected value for a generic one to get a pass.
- Distinctive: line 80
Cap the attempts: Stop after three repair attempts on one case and hand it to a person with the evidence.
- Very specific: line 107
Read references/maintenance-loop.md before you repair.
≈ “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
Test Maintenance
This skill covers the maintenance stage. It keeps the regression suite healthy over time and feeds what it learns back to the plan. It consumes stability and result history and produces repairs plus a refreshed coverage gap list.
The reader is the automation tester who repairs a suite that has started to lie, and the test lead who has to keep it trustworthy.
Katalon True Platform (formerly TestOps) holds the cases and the results. 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 |
| Stability and flaky history | fetch_test_stability_metrics |
| Results and executions | find_test_results, read_execution, list_executions |
| Impact of a requirement change | find_requirements, find_test_cases_by_requirement |
| Coverage after the change | fetch_requirement_metrics, fetch_test_case_metrics |
| Find a similar or duplicate case | search |
| Read and repair cases | find_test_cases, read_test_cases, update_test_cases, move_test_case, duplicate_test_case |
| Re-link requirements | manage_requirement_test_case_linkages |
| Reorganize | manage_test_folder, manage_test_suite |
| Confirm a repair | rerun_execution (automated only, consent needed), or a new run through execute-test |
Read each tool schema before the first call. This skill names only the parameters that change the answer.
Limits to state up front:
- MCP repairs are case-level content edits (title, steps, expected results, data, links, location, status). They are not object or script healing.
- Self-healing tests, Time Capsule, Studio Tracer, object refactoring, and StudioAssist Agent-mode edits are Katalon Studio desktop features. Code healing for Playwright happens in the user's repository, not through MCP.
update_test_casestakesrepository_idand an orderedupdateslist. Each item holds one action (RENAME,UPDATE_STATUS,UPDATE_DESCRIPTION,UPDATE_PRECONDITION,UPDATE_PRIORITY,UPDATE_AUTOMATION_STATUS,UPDATE_CUSTOM_FIELD,UPDATE_ASSIGNEE,UPDATE_LINKED_TEST_CASES,REMOVE_LINKED_TEST_CASE, orUPDATE_CONTENT) and atest_case_dataobject with the caseid. Actions run in order. Put every change to one case in one call.UPDATE_CONTENTreplaces all steps. Send the complete step list. Keep every Call Test Case step. A replacement that would silently drop a call is rejected. An incomplete list wipes steps.- To delete steps, use
REMOVE_STEPSwithstepNumbersif your tool schema lists it. Removing a Call Test Case step takes one approval.REMOVE_STEPSis the safer path than a rewrite of the whole list. - Since 2026-11-05,
update_test_casessets or clears tags, feature areas, and custom test types. A write changes only the list you send. Clearing one list leaves the others, so never send an empty list unless clearing is the intent.originis read-only. The confirmed contract lists 11 actions and none of these, so read the tool schema and use only the actions it lists. - An agent can report an update that did not land, or the reverse. After every update, read the case back with
read_test_cases(addinclude_attributesfor tags and custom test types) and compare it with the plan. - A case name starts with a letter or a digit and accepts letters, digits, spaces, and
( ) . , _ -. Other characters fail. delete_test_caseis destructive and permanent. PreferUPDATE_STATUSwithINACTIVE, ormove_test_case. Delete only with a yes that names the case.fetch_test_stability_metricshas no minimum-run parameter. Count the runs per case withfind_test_resultsbefore you trust a flaky signal.rerun_executionworks only on an automated execution, and only afterread_executionconfirms the type. The platform docs do not say whether a rerun picks up edits to case content. Check the new result against the repaired case. If unsure, start a fresh run throughexecute-test. A manual TestPak never reruns this way.searchfinds cases by meaning. A hit carries a title and a reference only, so read the case withread_test_casesbefore you act on it. Cases created in the last few minutes can be missing, and a search withincomplete=true,retrieval_mode="keyword_fallback", or a warning never proves that a case does not exist.- MCP is stateless. Ask in chat for missing input and carry IDs from call to call.
Workflow
+---------------+ +---------------+ +---------------+ +---------------+
| Detect change |-->| Diagnose: |-->| Repair under |-->| Validate and |
| impact | | repair, regen,| | guardrails | | feed back |
| | | or retire | | | | the gap list |
+---------------+ +---------------+ +---------------+ +---------------+- Detect impact. Call
fetch_test_stability_metricswithfilter_typeITERATION(anditeration_type,iteration_name) orEXECUTION(andexecution_id). Addfrom_dateandto_datefor the lookback window. Setreturn_teststo["FLAKY", "ALWAYS_FAIL", "NEW_FAILURE", "SLOW"]to get case lists. The default is three per category, so raiselimit_testsfor a long list. State the window and the run count per case. Usefind_test_resultsandread_executionto see what changed across recent runs. After a requirement change, callfind_requirementsfor the changed items andfind_test_cases_by_requirementfor the cases they link to. Check those cases first. Build one list of broken, flaky, and degraded cases. - Label flaky from history. A flaky case gave different results for the same test on the same build. Never label a case flaky from one read of its code. A flaky label that drives a quarantine needs two independent evidence sources that agree, for example run history and failure artifacts.
- Diagnose each case. Read the case first with
read_test_casesandcontent_typeFLOWfor the steps. Pick one:- Repair. The case is salvageable. Fix data, steps, or expected results with
update_test_cases. Reorganize withmove_test_case. Branch a variant withduplicate_test_case. - Regenerate. The behavior changed enough that the case needs re-derivation. Hand it to
create-test-cases, which can also draft cases from captured TrueTest sessions. - Retire. The behavior is gone. Name the cases and get an explicit yes. Prefer
UPDATE_STATUSwithINACTIVE, or a move to a retired folder, overdelete_test_case.
- Repair. The case is salvageable. Fix data, steps, or expected results with
- Repair under the healing guardrails (next section). Follow
references/write-policy.mdfor every write: preview the set, get one confirmation, execute, read back withread_test_cases. - Validate. Confirm the repair through a new run (
execute-test) or, for an automated execution,rerun_execution. A green result alone is not confirmation. Compare the new result with thefind_test_resultsrecord (filter_typeTEST_RESULT,include_details: true) that triggered the repair and check that the case still exercises the original failure path. - Feed back. Send the refreshed gap list to
test-plan. Callfetch_requirement_metrics(giveiteration_typeanditeration_name, and check the iteration exists withfind_iterations) andfetch_test_case_metrics(give afilterwithfilter_typeITERATION,DATE_RANGE, orDEFAULT) to measure the gaps. When a requirement link broke, repair it withmanage_requirement_test_case_linkages, which links or unlinks many cases and requirements in one call. Read the links back withfind_test_cases_by_requirement. Maintenance that stops at green has not closed the loop.
Healing guardrails
These rules hold for every repair, whether a person, an agent, or the Playwright healer makes it.
- Never weaken an assertion. Do not remove it, loosen it, or swap a specific expected value for a generic one to get a pass.
- Never delete a test or a case to reach green. Retire only with a named approval.
- Never add
test.fixme(),test.skip(), or a disabled status without a person's approval. - Diff the assertion count before and after every repair. For a manual case, count the expected results. Report any drop and stop until a person accepts it.
- Assert the outcome after a healed step. A healed click that runs does not prove the page reached the right state. The case must still check the result of the interaction.
- Cap the attempts. Stop after three repair attempts on one case and hand it to a person with the evidence.
- Keep an audit trail. Record the original value, the new value, and the reason for each change in the report.
Choose a healing level and state it:
| Level | What happens | Default |
| Runtime only | The fix applies to one run. Nothing persists. A person sees the audit entry. | Yes, for locator drift |
| Reviewed change | The fix is a diff or pull request that a person reviews and merges. | Yes, for anything that persists |
| Auto-merge | The fix lands with no review. | Never, unless the user gives a standing approval for a named scope |
For a Playwright suite, run the Playwright healer only on a named failing test. The same guardrails apply. Use test-case-to-playwright for the code side.
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 one failed run first:
analyze-failures. - Re-author changed behavior:
create-test-cases. - Confirm repairs:
execute-test, thentest-review. - Refreshed gaps:
test-plan. - Code-side healing for Playwright:
test-case-to-playwright.
Read references/maintenance-loop.md before you repair. It holds the per-case decision table, the healing detail, and the closing report.
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.

