Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

pwauto-heal

/pwauto-heal

Diagnozuje niestabilne lub padające testy na podstawie raportów, klasyfikuje błędy i poprawia testy bez ich osłabiania.

Repozytorium
pwauto ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
13.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Diagnozuje niestabilne lub padające testy na podstawie raportów, klasyfikuje błędy i poprawia testy bez ich osłabiania.

Wyzwalacze z opisu

tests are failingfix the testshealflakywhy did this fail
Oryginalny opis (EN)

Diagnoses failing or flaky pwauto tests from the report evidence (error, screenshot, video, trace, execution log, network errors, AI-fix prompt), classifies each failure as test bug, application bug, environment or flaky, fixes test bugs without weakening the tests and records application bugs. Use when the user says 'tests are failing', 'fix the tests', 'heal', 'flaky' or 'why did this fail'. Not for new scenarios (use pwauto-scenarios).

Jak działa

  1. Objective
  2. Workflow
  3. Never
  4. Done when
Sekcje z nagłówków SKILL.md, w oryginale · 43 linii, 610 słów
Podgląd SKILL.md
---
name: pwauto-heal
description: "Diagnoses failing or flaky pwauto tests from the report evidence (error, screenshot, video, trace, execution log, network errors, AI-fix prompt), classifies each failure as test bug, application bug, environment or flaky, fixes test bugs without weakening the tests and records application bugs. Use when the user says 'tests are failing', 'fix the tests', 'heal', 'flaky' or 'why did this fail'. Not for new scenarios (use pwauto-scenarios)."
license: Apache-2.0
metadata:
  version: "0.1.0"
---

# pwauto-heal

## Objective

A red test is information. Find out who is wrong — the test, the application, the environment or the timing — and act on that. A healer that changes expected results until the suite is green destroys the suite's value.

## Workflow

1. **Collect the failures.** Run the failing set: `npx bddgen && npx playwright test --project=app-chromium --grep "<name|tag>" --retries=0`. For each failure read, in this order:
   - the error and the failing step (terminal or `reports/results.json`);
   - `test-results/<test>/error-context.md` (page snapshot at failure) and `test-failed-1.png`;
   - attachments: `execution-log.txt` (steps, data seed), `network-errors.json` (status + response body), `browser-console-errors.txt`, the "Fix with AI" prompt;
   - when needed, the trace, from the command line with the `playwright-trace` skill: `npx playwright trace open test-results/<test>/trace.zip`, then `trace actions`, `trace action <id>`, `trace requests`, `trace console`, `trace errors`, `trace snapshot <id>`; or reproduce on the live page with the `playwright-cli` skill (`npx playwright cli open <url>`, `snapshot`).
2. **Reproduce.** Run the one test again. Then `--repeat-each=5 --workers=4`. Passes sometimes → flaky (step 3d).
3. **Classify and act** (write the class next to each failure):

   | Class | Signs | Action |
   |---|---|---|
   | a. Locator changed | element not found; snapshot shows it with another name/role | update the page object locator (inspect with `npx playwright cli snapshot` + `generate-locator <ref>`); never in the step |
   | b. Timing | passes alone, fails in parallel; action before the app was ready; list read before re-render | wait for a condition: `waitUntilReady()`, `expect(...).toBeVisible()`, `waitForResponse`, `expect.poll`, `toPass()`; never a sleep |
   | c. Test data | 4xx with a validation body; shared account; data left by another test | own data per test (API setup, `uniqueId()`), valid combinations (see the knowledge rules) |
   | d. Flaky app/env | random 5xx, timeouts on a slow env | report it; at most a targeted retry in config for that project, with a comment and an issue link |
   | e. Application bug | the app does not do what `knowledge/` (intended) says | **do not change the assertion.** Record it (below) |
   | f. Test expectation wrong | the knowledge base or a person confirms the test expected the wrong thing | fix the scenario/step and cite the source; update `knowledge/` |
   | g. Environment | DNS, VPN, cert, browser missing | fix setup (`pwauto-setup`), not the test |

4. **Record an application bug** (class e):
   - `knowledge/conflicts/<slug>.md` with `type: Gap` (intended source vs actual observation), then `lore build && lore check`;
   - a bug report in `test-plan/bugs/<slug>.md`: title, steps (the scenario), expected (with source), actual, evidence (report path, screenshot, network body), environment, data seed;
   - tag the scenario `@gap @fixme` with a comment linking the Gap — the test stays and shows as "fixme" in the report, so nobody forgets it. Never delete it.
5. **Verify.** Re-run the fixed tests with `--repeat-each=5`. Run the whole affected feature once. Run `npm run check`.
6. **Report** a table to the user: test, class, root cause (one line, with evidence), action, result.

## Never

Change an expected text/value to the current app output without a source · remove an assertion or a step · add `skip`, `only`, retries or `force: true` to get green · add a sleep · catch and ignore an error · edit `.features-gen/`. If you are not sure whether the app or the test is wrong, ask the user and show the evidence.

## Done when

- Every failure has a class and evidence; test bugs are fixed and stable over 5 repeats.
- Every application bug has a Gap page, a bug report and an `@gap @fixme` scenario; the user has the table.

Wersje

W bazie nie ma innych skilli o nazwie pwauto-heal.

Migawka bazy z 13.11.2026 · wersja paczki 17a78ef01153 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100pwauto-report
    Uruchamia zestaw testów pwauto i pisze zrozumiałe podsumowanie z wynikami, błędami i linkami do raportów.
  • 90pwauto-review
    Przegląda scenariusze BDD panelem recenzentów, szuka brakujących przypadków i po zatwierdzeniu przenosi je do gotowych.
  • 100fix
    Naprawia padające i niestabilne testy Playwright, w tym testy przechodzące tylko czasami i błędy sporadyczne.
  • 100fix
    Naprawia padające i niestabilne testy Playwright, w tym testy przechodzące tylko czasami i błędy sporadyczne.
  • 100fix
    Naprawia padające i niestabilne testy Playwright, w tym testy przechodzące tylko czasami i błędy sporadyczne.
  • 100self-heal
    Diagnozuje błąd, szuka przyczyny, poprawia i sprawdza, w pętli do pięciu prób, zanim eskaluje do człowieka.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.