Executes TMS test cases against live apps, captures stable selectors, flags defects, and produces an Automation-Friendly Spec (AFS) for downstream automation engineers.
Ships in test-case-analysis. 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.
Read when SKILL.md points to them.
Execute a TMS test case against the live app, observe what actually happens, and emit an Automation-Friendly Spec (AFS) a downstream engineer can implement without re-exploring.
Core philosophy: a written test case is a hypothesis. The app is the only source of truth. This skill never trusts the case as authored — it runs it step by step, captures stable selectors, flags defects, and only then produces a spec.
.spec.ts, no test_*.py, no step
definitions. The output is a markdown AFS file. Automation is
implemented downstream — your agent knows which role / workflow
picks the AFS up.un-automatable and stop.This skill IS the analyst slot in the test-automation pipeline. When
dispatched — by an orchestrator like test-automation-lead, or
standalone for "analyse SCRUM-T101" — role, context, parameters, and
return shape are fixed here so dispatch prompts don't have to inline
them.
Role. Execute one TMS test case end-to-end against the live app, capture stable selectors, classify the finding, emit an AFS. No automation code (see § Absolute boundaries).
Session context — read once at session start. Typically
auto-imported via @-blocks in your agent's AGENT.md; if your
agent doesn't auto-import, read them now:
.agents/profile.md — project systems, base URL, credentials
matrix, sample users, bug filing target.agents/workflow.md — branch/PR rules, EPIC pattern.agents/testing.md — framework, locator strategy, TMS case-gate
exclusion list.agents/memory/<your-agent>/project_briefing.md — accumulated
project gotchas from prior sessions.agents/architecture.md — the surfaces you'll touch (also
referenced in Phase 2)Missing context → flag the gap; don't fabricate defaults.
Per-case parameters (caller provides at dispatch time):
SCRUM-T101).agents/profile.md § Roles & sample users
(e.g. ${TEST_USER} / ${TRIAL_USER}).agents/profile.md, but caller may
overridestory-subtask styleReturn contract:
ready-for-automation / already-covered /
extend-existing / blocked / defect-found /
out-of-scope-by-author / un-automatable. Full semantics in
Phase 0 (out-of-scope) and § 5 Classify findings (the rest).test-specs/<feature>/l<pri>_<slug>_<tms-id>.md
for fresh-implementation, lcovered_* for already-covered,
lextend_* for extend-existing. Omitted for un-automatable and
out-of-scope-by-author (no AFS emitted).defect-found, the tracker IDs created
per § 5's bug-filing routing.Before fetching the case body, probe its TMS author metadata. Skip cases the author has marked as not actionable — there's no analyst value in executing them, and downstream the implementer / orchestrator will reject them.
What to probe (project-defined in .agents/testing.md § TMS case-gate; if absent, default to fetching all and flag the gap):
| Metadata field | Typical exclusions | Why |
|---|---|---|
| Status | Out of Scope, Untested, Draft, Deprecated | Author has signalled the case isn't currently a target — don't burn cycles |
| Folder / parent membership | Mismatch vs requested folder | Catches raw-key-ASC iteration drift across folders (e.g. KEY-NNN is in folder A, KEY-NNN+1 jumped to folder B) — drift recurs when iterating by key |
| Version / last-modified | Stale per the project's freshness threshold | Stale cases often contradict the live product (case-text drift) — see test-automation-workflow § Reverse-masking guard |
How to probe. Probe the single-case status field directly via your adapter (get_field_value / fetch_case(id, fields=[status]) / equivalent). Don't query-set — JQL-style status in (...) queries on TMS custom fields are unreliable across adapters; verify the field on each case directly.
Outcomes:
out-of-scope-by-author with the field value as evidence; close the case in the tracker (or mark per project convention)..agents/testing.md.1. Fetch the case → TMS adapter (pluggable; see test-automation.yaml)
2. Read app context → .agents/architecture.md + previous AFS files
3. Execute → browser-driving capability (your agent's wired MCP), step-by-step
4. Capture selectors → stable, accessible, fallback-ready
5. Classify findings → ready / already-covered / extend-existing / blocked / defect-found / un-automatable
6. Emit AFS → test-specs/<feature>/l<pri>_<slug>_<tms-id>.md
Use the adapter declared in .agents/test-automation.yaml. If
transport: mcp and the MCP server is online, prefer MCP tool calls
(mcp__<server>__<tool> / <server>/<tool> depending on host) —
no secrets travel through the agent's context. Otherwise use HTTP
with the configured auth_env. If no adapter is configured, read
the markdown case from test-specs/. If the TMS is unreachable,
open the case in the browser and copy it by hand — do not block on a
flaky TMS.
Extract: name, priority, preconditions, steps, expected, cleanup, linked story, attachments.
.agents/architecture.md — know the surfaces you'll touchtest-specs/<feature>/ — match their shapeThree browser tools sit at different layers; pick by what's wired and
what challenge you're solving. Full triage:
../test-automation-workflow/references/browser-tools.md.
In short:
playwright-testing
(Playwright MCP). Prefer its accessibility-snapshot tool for accessible-name
discovery — it yields both the ref you need to click and the
role-name pair you'll assert on.playwright-cli
drives the same browser surface from the shell (codegen,
--trace, multi-tab, storage, request mocking).browser-verify
for computed styles, real CDP input events, storage/cookies, or axe
audits.Soft guidance, not a hard rule: switching tools mid-case is fine when the first one isn't producing useful evidence — note which tool produced which observation in the AFS so the next reader can follow.
For each step:
page.evaluate — the app may react differently.Priority order — document in the AFS for every interactive element:
data-testid / data-test — stable, intentionalgetByRole('button', { name: 'Apply' })getByLabel('Email')getByText('Sign in') (fragile to i18n)Always give a fallback. Apps change. A single selector per element is a single point of failure.
Status per case (goes in the AFS metadata block):
test-specs/<feature>/lcovered_<slug>_<tms-id>.md containing the
dedup proof: covering spec at file:line + a one-paragraph
behavioural-equivalence argument (why the existing assertion
satisfies this case's expected observable). Link the original
TMS case to the covering one in the tracker so the audit trail
resolves both ways. The lcovered_ filename prefix is the
contract — downstream audits grep for it to enumerate
Rule-6-dedup coverage distinct from fresh-implementation coverage..spec.ts; the
implementer extends the covering spec with the gap assertions.
Emit an extension AFS at
test-specs/<feature>/lextend_<slug>_<tms-id>.md containing: the
covering spec at file:line, a one-paragraph behavioural-overlap
argument (what's already proven), and a Gap assertions section
listing exactly what the existing spec doesn't cover (the new
selectors / observations / expecteds the implementer needs to
append). Link the TMS case to the covering one in the tracker.
The lextend_ filename prefix is the contract — downstream audits
distinguish extension work from fresh-implementation and from full
lcovered_ dedup. Boundary call: if the gap is large enough that
the extension would be a near-rewrite of the covering spec, treat
as ready-for-automation instead and let the implementer decide
whether to extend or split.Reverse-masking guard — case-text drift is a CLARIFICATION, not a defect. When the live product correctly diverges from the case text (case says ≥44px, product = 40px and that's the design; case says "Save button visible", product correctly removed Save), the case text is what's stale, not the product. Don't classify as
defect-found; classify asready-for-automationand assert the live contract. File the case-text drift as a CLARIFICATION per the project'sBug filing style, not a Bug. Full treatment intest-automation-workflow§ Reverse-masking guard.
When you find a defect during execution:
Do not force-continue past it hoping it "probably works later".
Always file a tracking ticket. Nothing slips through: every finding (clarification, question, blocker, full defect) gets tracked somewhere the team sees. How depends on profile.md.
Determine where the ticket lands by reading
.agents/profile.md § Project systems § Bug filing. Two orthogonal
fields drive the routing — scout's Step 0.7 fills both:
Issue tracker — the system the ticket lands in
(github-issues / gitlab-issues / jira / azure-devops /
linear / …). Your agent has a bug-filing capability wired in; use
it. Filing the ticket itself is not this skill's job — this skill
hands you the what (severity, repro, evidence) and the where
(tracker + style + target); your agent's bug-filing skill does
the how.
Bug filing style — the shape of the ticket. Three styles:
github-issue (default) — open a standalone issue in the
tracker named above. Same shape regardless of tracker system (a
standalone issue in GitHub / GitLab / Jira / …).story-subtask — create a sub-task under the originating
story (Jira / Azure DevOps only; the story the TMS case is
linked to). Fetch the story ID via the TMS adapter's
get_test_case_links, then pass it as the parent when handing
off to the bug-filing skill.separate-ticket — file in a dedicated QA/bugs project,
not the main development tracker. Target is named in
profile.md § Bug filing target. Same tracker system, different
project key.Determine whether to bundle or split by reading § Bundling policy and classifying the finding's severity:
Classify the finding first:
strict-per-bug (default) — every finding (either class)
gets its own ticket. Done.
bundle-per-case (opt-in, requires umbrella-ticket
convention already in place on the project):
The umbrella-lookup is the fragile step — getting it wrong
duplicates tickets. Defer to strict-per-bug unless the
operator's profile.md § Bug filing style explicitly selects
bundle-per-case and the project already has:
strict-per-bug is the safe default; one more
ticket is cheaper than a missed clarification.Hand the body, tracker, style, and (for story-subtask) parent
story ID to your agent's bug-filing skill. Do not run a dev-side
fix lifecycle (failing test → RCA → implement fix → verify) — those
steps belong to whoever picks the defect up later, not to you
during analysis. You file and walk away.
If .agents/profile.md § Bug filing is Unconfirmed, or your
agent has no wired tooling for the named tracker, stop and ask the
operator before filing — don't pick a default silently. Flag the
gap in the AFS so scout can fill the field on the next onboarding
pass.
Note the finding in the AFS under "Known Defects Found" with the
ticket ID, filing style, and a recommendation — soft-expect
(isolated) or natural-fail (blocking). Under bundle-per-case,
reference both the umbrella ticket ID and the comment anchor so
the downstream implementer can find the specific note (e.g.
"Known defect: JIRA SCRUM-BUG-42 comment-3 — soft-expect", or
"Known defect: GH#234 — natural-fail").
A single markdown file per case, per the structure in
references/spec-format.md. Path:
test-specs/<feature>/l<priority>_<slug>_<tms-id>.md
The AFS is the contract. If it's ambiguous, the downstream engineer will come back asking — which means the execution pass wasn't complete. Make it stand alone.
test-results/screenshots/<tms-id>-step-<n>-<action>.png
test-results/json/<tms-id>-<iso-timestamp>.json
Relative paths inside the AFS; the automation engineer re-uses the same convention for CI artifacts.
When handed multiple cases:
Agent(...) (Claude Code), runSubagent(...)
(Copilot). Each sub-agent gets its own browser context.When the AFS is ready:
test(spec): add AFS for <id>blocked or un-automatable, stop here and
report up — do not pass a broken spec downstreamtest.fail()-style thinking. If a step fails for a real
product reason, that's a defect, not a caveat in the AFS.defect-found instead of
CLARIFICATION. If live product is correct and the case is
stale, the case is the bug, not the product. Asserting the
stale case-text is reverse-masking (see § Classify findings note).already-covered with a
traceability AFS (lcovered_*.md), not a duplicate .spec.ts.ready-for-automation. When
an existing merged spec covers most of the observable and only a
small number of assertions are missing, classify as
extend-existing with lextend_*.md + a Gap assertions section.
Forcing the implementer to rediscover the overlap defeats Rule-6
dedup and ends with two specs asserting the same behaviour.What SKILL.md sets; muted values are Claude Code's defaults
/test-case-analysis:test-case-analysisfrom test-case-analysis
npx claudepluginhub arozumenko/sdlc-skills --plugin test-case-analysisOther plugins' skills for the same job