/mabl:mabl-test-edit-verifyfrom mabl
Certifies that an edit to a mabl test actually fixed the issue by diffing against the prior version, re-running isolated on a branch, and requiring multiple clean passes for flaky tests. Never edits or merges.
Ships in mabl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Someone changed a failing test and it's green now. That is not yet evidence. There are exactly two cheap ways to turn a red test green — fix the app behaviour it checks, or stop checking — and a passing run cannot tell them apart. This skill can.
Everything here is read-and-run. It never edits a test and never merges a branch. The output is evidence and a state; the merge is a person's.
The mabl MCP server, which ships in this plugin. Every step here is an MCP
call, so the mabl CLI is not used — nothing to install, no login to complete.
The absence of a CLI guard block is deliberate, not an omission.
The server is what takes a branch and hands back the ids of the runs it started,
which is why the isolated lane runs there. That lane is available when
run_mabl_test_cloud is in the tool list. Absent, the server isn't connected:
name it and stop after the content gate, reporting the behaviour as can't
verify — a real, reportable outcome, not a failure to be papered over. A tool
that is present can still refuse the call because the workspace isn't entitled
to it, and only the call reveals that: quote the error verbatim and take the
same fallback.
Workspace, environment, and application come from the caller. When the caller
gives only the workspace, they are recoverable rather than guessable: the
environment and branch of the run being verified are on its history entry
(environmentId, branch), and get_mabl_test carries the test's application,
credentials, labels, and the intent recorded on the test object.
The content gate comes first for a reason: it can fail a change that passes every run. A test that got smaller passes faster and proves less.
Requires mabl-version-compare. If that skill isn't there, stop and say
which skill is missing — don't hand-roll the diff, and don't guess how to
install it, because that depends on how this skill was installed.
What it has to give back, whatever route it arrives by: a removal separated into one it could resolve to an added step and one it could not. Those are different verdicts here — a resolved removal is a move, an unresolved one is can't verify — so if what you have cannot tell them apart, you are holding the dependency's name and not the dependency. Say that, and don't rule.
Getting this wrong is the quiet failure here: the diff comes back clean because it compared the wrong pair, and the gate passes on nothing.
Version numbers are global to the test, not to the branch. N-1 is the
previous number, which is very often a version somebody else created on an
unrelated branch. Read the branch, don't do arithmetic:
list_mabl_test_versions({ testId: "<*-j>" }) // newest first; carries created_on_branch
Look on a branch first. The normal subject here is a test edited on a branch
and waiting on a merge decision, so when the caller names a test and no branch,
don't settle for master: read the version list and take the newest version whose
created_on_branch is not the default. That is the change under scrutiny, and
saying which branch you picked is part of the answer.
Where more than one branch carries a recent version of the same test, those are different changes, not candidates for the same one. Two branch names a character apart, cut hours apart, are the ordinary case rather than the exotic one. Name them and ask which is being verified; picking the newest and proceeding silently answers a question nobody asked.
created_on_branch is the change's
branch. Name it explicitly as <id>:<N>; a bare <id> means the global latest
and may be someone else's.N-1. That is the state a merge would replace, and it is
the only baseline the verdict is about.Say which two you picked, and why, in the report.
A :0 baseline is not a baseline. Version 0 does not read back: once any
later version exists, <id>:0 returns the flow's newest content rather than the
steps version 0 held, so a diff with :0 on either side compares the after
version against itself and reports everything unchanged — no removals, whatever
was actually done. Versions from 1 on read back correctly.
So when before resolves to :0 — the edit under scrutiny is the test's first —
the gate has no baseline to rule on. That is can't verify — a missing
baseline, not a clean diff and not a defect — and the verdict falls to the intent
and the run. The sentence "nothing was removed" is unsupported here; don't write
it.
The endpoint diff — before to after — is what the verdict rests on. It is what a merge actually lands, and it is never optional.
Walking the branch's own versions in sequence answers a different question: not what the change is, but how it got there. Worth the extra calls when
Skip it when this skill runs per edit, one new version at a time. There the endpoint diff already is the walk, and re-diffing every pair spends calls to learn nothing.
Either way the verdict comes from the endpoints. The walk is context, never the gate.
These stop the verification outright, whatever any run says. Address them by the
class mabl-version-compare reports, not by re-deriving its matching — it
already separates a removal it could resolve from one it couldn't, and that
distinction is the whole difference between the first two rows.
| What the diff reports | Verdict |
|---|---|
| Coverage deleted — an assertion gone, and nobody asked to remove it | Problem found. Coverage was deleted. |
| Unmatched removal — a removal it could not join to any added step | Can't verify. Neither proof of deletion nor proof against it. Name the candidate it named, and say that resolving the pair is what would settle it. |
Strictness loosened — exact match to substring to existence, a value emptied, a step disabled, a check now behind an added If | Problem found. Same shape, less proved. |
| Date literal introduced | Problem found. It passes today and fails tomorrow. |
"Loosened" is this skill's word, not the diff's. The diff reports the change in what the assertion requires and leaves the valence alone, because only the intent says which direction was wanted.
Deleting a check is legitimate in exactly one case: the behaviour it checked genuinely went away, and the person who asked for the change said so. That has to come from the intent, never from the change's own convenience.
Where the test calls reusable flows, carry the diff's own hedge into the
verdict. An EvaluateFlow step names a flow and never a version, so which
version each side used is resolved on read, not recorded;
mabl-version-compare infers the pair and says so. An inferred pair is weaker
evidence than a step diff, and when both sides resolve to the same flow version
the diff says nothing about that flow's contents at all. Don't let either fact
get dropped on the way to a verdict — a gate that passes on an unstated
inference is the quiet failure this section exists to prevent.
State the gate's result before any run result. A reader who sees "passed" first will stop reading.
mabl-version-compare resolves a removal to moved when the same step id
turns up on the added side. That settles identity: the step was not deleted. It
says nothing about whether the step still works where it now sits, and that
question belongs here, because a test is a script. The steps before a step are
its preconditions.
So no move is waved through. For each one, ask which direction it went and what now runs between the old position and the new:
| The move | What it means |
|---|---|
| Later, past steps that don't touch its target | Usually fine. Same element, same state, later clock. |
| Later, past a step that changes the target's state | It still passes, and now proves something else. Coverage moved off the thing it guarded. |
| Later, past a navigation | The target may not be on the page at all any more. |
| Later, out from behind an assertion that guarded it | Whatever that assertion protected now runs unchecked. |
| Earlier, before the step that produces its target | Problem found. A selection moved above the click that opens the view is a broken script, whatever a run says. |
Answer from evidence rather than from reading the step list, and say which evidence you used.
Past runs settle this only when one of them failed. A failed run carries
step-level evidence — the failing step, and artifact URIs through
analyze_mabl_failure — so what the page held at that point is readable. A run
that passed carries its outcome and nothing more: no failureScreenshotUri, no
evidenceDetails, no way to ask what a given step saw. A move on a test whose
history is all green is therefore not answerable from history.
Where history cannot answer it, say so and take one of two routes: run the changed version and read the result against the move, or report the move as unverified and hand it to whoever holds the intent. Never pass a move as clean because nothing contradicted it.
A green run clears a move only as far as the reading you already did. A move that lands on the same element in a different state passes and proves less, which is the failure this gate exists to catch.
A real mode, not a courtesy. Ask for it whenever the runs are the expensive or irreversible half: an unattended session, someone else's workspace, a first look at what this would cost.
The content gate is read-only and still happens. So does reading the run history. What stops is the isolated run.
Report, then stop:
Never estimate a result. A dry run says what would be run and what the read-only half already found. The moment it says anything about whether the test would pass, it has stopped being a dry run.
Having the tool is not permission to use it. If run_mabl_test_cloud is in
the tool list and a dry run was asked for, it stays uncalled.
A version that already has terminal runs may already carry its own evidence. Firing another one spends minutes and credits to re-learn it. The run-count gate below says how many clean runs are needed; read it first.
list_mabl_test_runs({ testId: "<*-j>", workspaceId })
Runs are version-qualified. Each carries its testId as <*-j>:<N>, so a
run can be attributed to the exact version under verification — and a run on any
other version is not evidence about this one.
Count the runs on the target version that are terminal, success: true and
attemptCount: 1.
| Runs already on the target version | Do |
|---|---|
| Enough clean ones for the gate | Start nothing. Report them and go straight to the outcome |
| Fewer than the gate needs | Run the difference, not the whole gate again |
| Non-terminal, or needed recovery | Run — those are not clean |
| None | Run |
Say what a pre-existing run cannot tell you. The run object carries the version, the outcome and the attempt count. It does not carry the branch, environment, deployment or credentials it used, so a pass on the right version may have been a pass against a different URL. State that caveat. It is not on its own a reason to discard the evidence and re-run by reflex — but if the reader needs the branch pinned, say so and run one.
Run the changed version, on its branch, so nothing else can be mistaken for it:
run_mabl_test_cloud({
testId: "<*-j>", workspaceId, environmentId, applicationId,
browsers: ["chrome"],
branch: "<the branch the change is on>",
credentialsId, deploymentId // as the original run used
})
A call that returns no run ids did not start a run. When the environment
binds more than one URL for the application, the tool answers with the candidate
deployments instead of starting — and it delivers them as a tool error, with
the candidate list in the error payload. Nothing is running, and the call is not
retryable: retrying re-asks the same question. The candidates carry no marker
saying which is canonical, and the list can include URLs unusable from cloud
execution (a localhost binding, say). Ask which URL and re-invoke with that
deploymentId; the test's own url from get_mabl_test says which candidate
the test actually targets. Never pick one blind: the wrong URL verifies the
change against the wrong app and reads as a clean result.
Otherwise, use the run ids it returns. The tool hands back the ids of the runs it created — that is the only reliable way to know which runs are yours. A workspace has other plans on other schedules, and picking runs by "most recent" will eventually attribute someone else's execution to your change.
Then poll each returned id:
get_mabl_test_run({ testRunId: "<*-jr>", workspaceId })
terminal is false, about every 30 seconds; a cloud test run is
usually minutes. Give up after 30 minutes and report the run as still
running rather than as a result.lastAttemptError on a non-terminal run is a retry, not a verdict. Don't
read it as failure.terminal is true are success and failureSummary trustworthy.Each run is real cloud execution — minutes of wall clock, one run per browser. Say that before starting a multi-run gate. If a dry run was asked for, this is the step that does not happen.
One pass is enough evidence for a test that failed consistently. It is no evidence at all for one that failed intermittently — an intermittent test passes sometimes by definition, so a single green run is the outcome you'd expect from changing nothing.
| The test was | Clean runs required |
|---|---|
| Failing every time | 1 |
| Failing intermittently | 3, all clean |
| Unknown which | Treat as intermittent — 3 |
Check the history rather than assuming:
list_mabl_test_runs({ testId: "<*-j>", workspaceId })
The first page carries a history block — streaks, per-browser and
per-environment pass rates — which answers alternating-versus-solidly-failing
outright. Read that rather than eyeballing statuses. It returns 10 runs by
default, so say how many were looked at: "failed every time" over ten runs and
over fifty are different claims.
And for an intermittent test, ask what the change actually did. A longer wait around a race is not the same as fixing the race, and three green runs can't tell you which one you got.
Report exactly one. The two middle ones are the ones that get collapsed, and collapsing them is how an unproven fix reaches a merge.
"Problem found" and "Can't verify" are opposites, not shades. One says the edit is wrong and shows the evidence. The other says the evidence does not exist either way. Merging the first is a mistake; merging the second is a gamble the reader is entitled to know they are taking. A single label for both hides which one they are holding, so never reach for a phrase that covers both.
The report is the evidence. The answer is the verdict and what it costs the reader. Those are two documents, not two lengths of the same one — and writing the report twice is the failure to avoid, because the second copy is the worse one and it buries the line someone has to act on.
One file per verification, at .mabl/verify/<test-id>-<before>-<after>.md.
Not .mabl/compare/. That is mabl-version-compare' own cache, keyed by
the same <id>-<source>-<target> shape. A verification report written there
collides with the diff it was built from, and one silently replaces the other.
The report holds everything the answer leaves out: which two versions and why, the diff's classification and how each removal resolved, the gate table, the run history the required count was read from, the lane and the exact call made, the run ids and their outcomes, and what this verification could not see.
It carries four things, in this order:
Then the path to the report. Nothing else.
Never narrate the method. How a removal was joined to an addition, which lane ran, which call failed and how you got past it, how many versions were walked: all of it belongs in the report, none of it in the answer. Someone reaches for this skill so they don't have to know how it works. Where the method genuinely changed the verdict, the verdict is the thing to say.
Two that get emitted by reflex:
Length is the symptom rather than the rule, but an answer that restates the report's tables has already gone wrong.
success on a terminal run is the pass signal. Nothing else is.terminated run is not a failed run. It is terminal with
success: false, so it reads as a failure and isn't one — the run was stopped,
not beaten by the test. It proves nothing either way: don't count it toward the
clean runs, and don't report it as evidence the change didn't work. Re-run to
replace it, and say how many runs were terminated rather than folding them into
a pass rate.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mablhq/skills --plugin mabl9 skills in this plugin
/mabl-debugDiagnose and fix failures detected by mabl end-to-end tests. Forensic
inspection of an already-failed run (`mabl agent debug steps`,
`mabl agent debug artifact`) plus an interactive live session that
re-runs the test step-by-step in a real Chrome attached to the agent
via CDP (`mabl agent debug session …`).
Fire when the user mentions a mabl test failure, gives a test run ID
(`*-jr`) or plan run ID (`*-pr`), asks to investigate / debug / fix /
reproduce a failing test, or pairs "mabl" with words like "failing",
"broken", "regression", "step through".
/mabl-initOne-time project setup for mabl. Discover this user's mabl workspace,
applications, environments, and credentials over the mabl MCP server, then
save everything an AI agent needs to create and run mabl cloud tests where the
user wants it — an agent memory file (CLAUDE.md / AGENTS.md /
.github/copilot-instructions.md), a rule, or a skill.
Fire when the user says "set up mabl", "mabl init", "initialize mabl",
"configure mabl for this project", "save my mabl workspace / application /
environment / credentials", "add mabl to my CLAUDE.md", or "/mabl-init".
Run this once per project, before authoring or running tests. For creating a
single test use mabl-test-authoring; for a whole suite use
mabl-test-coverage-design.
/mabl-playwright-exportTurn a mabl browser test into a Playwright spec that runs in the user's own
Playwright project. The mabl CLI translates the test step by step, choosing
locators from what mabl learned about the page; this skill then fits the
file to the project (config, login, credentials, shared flows), writes the
steps the CLI could not translate where Playwright can express them, and
runs the spec locally, repairing failures until it passes or it can say why
not. The spec runs on this machine, not in the mabl cloud.
Fire when the user wants a mabl test "in Playwright", asks to "export",
"convert" or "migrate" a mabl test or plan to Playwright, or wants mabl
coverage in their own Playwright suite, with a test id (`*-j`), several, or
a plan, or to pick up an export left unfinished. Browser tests only.
To CREATE a mabl test use mabl-test-authoring; to debug a FAILING mabl run
use mabl-debug.
/mabl-test-authoringCreate a SINGLE mabl browser or API test through conversational planning
and cloud authoring. Plan one test with an AI agent, refine the plan
iteratively, initiate cloud (or local) test generation, then validate that
the test it built actually matches what you asked for and fix it if not.
Fire when the user wants to create one mabl test, asks to "plan a test",
"create a test for <one scenario>", "generate a mabl test", "author a
test", or mentions testing a single URL / ticket with mabl.
For broad coverage of a whole feature / page / flow with MULTIPLE tests,
use mabl-test-coverage-design instead — it explores the feature, designs
the suite, and calls THIS skill once per test.
/mabl-test-coverage-designUse when asked to create MULTIPLE mabl tests / a whole suite for a feature area — "add mabl coverage for X", "cover the X page/feature with mabl tests", "design a mabl test suite for X", "let's create tests for X", "explore X and create tests", or "/mabl-test-coverage-design". For testing a page, screen, form, flow, or feature broadly, not one specific scenario. This skill explores the feature, designs the set of tests, then authors each one in the mabl cloud. For a SINGLE test, use mabl-test-authoring directly.
/mabl-test-editChange a mabl test that already exists — rename it, relabel it,
enable/disable it, or edit its steps (replace, insert, delete, move). Reads the
test, then routes to the cheapest lane that can make the change
deterministically — a live browser agent only when it needs the running app.
Fire when the user names an existing test (a `*-j` id or a test name) and wants
to modify it: "rename this test", "add a label", "disable that test", "delete
step 7", "make step 4 wait for the spinner to disappear", "change the URL that
step 2 opens".
For CREATING a new test use mabl-test-authoring; for debugging a FAILING test
use mabl-debug.
One boundary: if the test was just authored this session and its validation
found a gap, mabl-test-authoring's validate-and-fix step owns that decision —
it holds the authoring intent and the rule against converging by deleting
coverage. Don't take the decision over. Do accept the specifiable fixes it
routes here: a structured step edit is instant and cannot delete anything.
Other plugins' skills for the same job