Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

debug-e2e-test

БесплатноЗапускает вложенные скриптыНе проверен

Use when investigating a specific named Positron e2e (Playwright) test that is failing or flaking -- in CI ("why is <test> failing on main", "this test is…

posit-devот posit-dev★ 4 361 звезда на GitHub

Об этом скилле

Debug E2E Test

Start from a test name (not a CI run), find its recent distinct failure modes, investigate one, falsify a root-cause mechanism, and land on fix-the-test vs. file-a-bug with the action to match. This is an orchestrator: deterministic work lives in scripts/, and detailed procedures live in references/ that you read only when a stage needs them.

Editing this skill: this file holds the invariant, the reference holds the mechanism. Restating a mechanism here makes two copies that drift apart silently.

When to use

You picked up one specific e2e test that is failing or flaking, and want its evidence without hunting for it by hand. Two entries, one triage. They differ only in where the evidence comes from; everything from "read the summary" onward is identical.

CI entry Local entry
Use when the test fails/flakes in CI it just failed on this machine
Evidence test-health history -> one occurrence's report this run's test-results/ artifacts
Needs E2E_INSIGHTS_API_KEY, gh nothing
Extra steps pattern table, which-pattern question, prior-triage check none

Pick local when the engineer just produced the failure or says "locally"; pick CI when they name a test CI is failing. When they said neither, don't ask -- look: run collect-local-evidence.js --test '<what they named>' (drop --test if they named nothing), and take the local entry if it returns ok (that call is the local entry's first step), the CI entry otherwise. They compose -- a local dig that needs a rate runs the history query afterwards, and a CI diagnosis reproduces locally in the verification half.

This is the debugging process for this case. Don't layer a general debugging workflow on top of it -- the rules below (one pattern at a time, a falsifiable mechanism, evidence ruled in and out) are that discipline. If you arrived here mid-way through another one, drop it and restart from the evidence; a hypothesis formed before the evidence was read is the thing this skill exists to prevent.

Not this skill: a test still being written or edited (author-e2e-tests); a whole run's failures or a run ID/URL (e2e-failure-analyzer); a Vitest or extension-host failure.

Non-negotiable rules

These hold on both entries unless a line names one.

  • Zero runs is never a clean result (CI) -- only nonzero runs with no failure patterns is. No local artifacts is not a dead end (local) -- it means the test hasn't run yet, so it ends in an offer to run it.
  • Resolve the test identity with resolve-test-key.js, never by hand; when it returns candidates instead of a resolution, ask which test before querying. The local entry needs this only to build a run command.
  • Investigate one selected pattern at a time (CI); ask which when there's more than one. Never fetch evidence for a pattern the engineer didn't select -- ask first, even to check a side theory about how patterns relate.
  • Never run a test in the foreground. Use Bash run_in_background: true and tail the log. A foreground call lasting minutes blocks delivery of the engineer's messages until it returns, so "it's hung, stop it" cannot reach you mid-run and you cannot TaskStop the run. This matters most here: debugging means watching a run you may well want to abandon.
  • Fetch one representative occurrence first; a second only for a listed reason in references/evidence-escalation.md -- name which.
  • Agree the fix approach before the first edit, the same way you agree the pattern before fetching evidence.
  • Escalate evidence only to answer a concrete question, and show the evidence block before you act on it. Large output stays on disk and out of the conversation; how the read is delegated is references/evidence-escalation.md.
  • Never increase a timeout or add an arbitrary wait as the fix.
  • Never claim a flaky test is fixed on one green run.
  • A previous merged fix must be checked against subsequent failures, and that check reported as four lines, not a triage report (references/prior-triage.md).
  • Root-cause claims cite observed evidence and the alternatives ruled out.
  • Checkpoint at every phase transition (CI). The local entry starts one only once it escalates (references/local-evidence.md).

Requirements

  • Claude Code, run from a Positron checkout: the scripts resolve the repo root from their own location and keep triage state in the shared git dir.
  • On PATH: node and git. The CI entry additionally needs gh (authenticated); the local entry needs neither gh nor a network.
  • Both entries run on Windows. The one step that does not is escalating into the e2e-failure-analyzer scripts, which shell out to unzip (references/evidence-escalation.md). Nothing in this skill nee
Полный SKILL.md на GitHub

Установить debug-e2e-test в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/diagnosis-block.mdreferences/evidence-escalation.mdreferences/history-query.mdreferences/local-evidence.mdreferences/prior-triage.mdreferences/reproduction.mdreferences/script-fallbacks.mdreferences/scripts.mdreferences/triage-rubric.mdscripts/checkpoint.jsscripts/collect-local-evidence.jsscripts/fetch-pattern-evidence.jsscripts/find-prior-triage.jsscripts/lib.jsscripts/record-diagnosis.jsscripts/resolve-test-key.jsscripts/triage-history.js

FAQ

Что делает скилл debug-e2e-test?

Use when investigating a specific named Positron e2e (Playwright) test that is failing or flaking -- in CI ("why is <test> failing on main", "this test is flaky in CI", "is this a test bug or a product bug") or on the engineer's machine ("this e2e test just failed locally", "debug this e2e failure"). From CI it surfaces the test's distinct failure modes from history and pulls evidence for one; locally it reads the run's own trace, snapshot, and logs. Either way it reasons to a falsifiable root cause with the engineer and lands on a test fix, a product-bug issue, or an accepted-flake note. Do NOT use for a test you are writing or currently editing (author-e2e-tests); a whole CI run's failures, or a run ID/URL (e2e-failure-analyzer); Vitest or extension-host failures.

Как установить скилл debug-e2e-test?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл debug-e2e-test запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить debug-e2e-test с