Skip to content
Skills Library
Programming · Review & audit

e2e-prune

/e2e-prune

Review a Playwright suite and propose which tests to drop and which steps to trim, with one reason per finding. Use when a suite has grown faster than anyone can read it, when asked which tests are noise, duplicates or theater, or before a maintenance pass. Proposes only; changes no test and no app file.

Licence
MIT
Last repository change
13.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Review a Playwright suite and propose which tests to drop and which steps to trim, with one reason per finding. Use when a suite has grown faster than anyone can read it, when asked which tests are noise, duplicates or theater, or before a maintenance pass. Proposes only; changes no test and no app file.

Original author description

Review a Playwright suite and propose which tests to drop and which steps to trim, with one reason per finding. Use when a suite has grown faster than anyone can read it, when asked which tests are noise, duplicates or theater, or before a maintenance pass. Proposes only; changes no test and no app file.

How it works

  1. Classes
  2. 1. Run the suite once
  3. 2. Read every test
  4. 3. Report
Original SKILL.md headings · 50 lines, 658 words
SKILL.md preview
---
name: e2e-prune
description: Review a Playwright suite and propose which tests to drop and which steps to trim, with one reason per finding. Use when a suite has grown faster than anyone can read it, when asked which tests are noise, duplicates or theater, or before a maintenance pass. Proposes only; changes no test and no app file.
license: MIT
---

# e2e-prune

Input: a suite directory (`tests/`, `e2e/`) and the environment file `.e2e/e2e-env.md`, called ENV below. No `.e2e/e2e-env.md` in the repo: run the `e2e-setup` skill first. Output: a report that names every test to drop, every step to trim, and the reason. Nothing is edited: deletion is the team's call, the skill supplies the evidence.

A test earns its place by failing when the user-visible behaviour it names breaks. Everything else is cost: minutes per run, a line in every failure report, a thing to update when the page changes.

## Classes

Each dropped test gets exactly one class, the strongest that applies:

- **no-assert**: no `expect` on anything a user sees. `goto` then `waitFor`, `toHaveURL` alone, a page `toBeVisible`. It is green against an empty page. Catches nothing.
- **duplicate**: asserts the same user-visible outcome as another test, through the same flow. Different title, different locators, same facts checked. One copy stays: the one that asserts more (a subset is the copy to drop); on equal assertions, the shorter one with the more durable locators. Overlap alone is not duplication: two tests that share setup steps but check different outcomes both stay, since a suite is run in parts.
- **implementation-coupled**: asserts how the page is built, not what it shows. CSS classes, element ids, DOM structure (`div > span`), API response shape, request payloads, data attributes other than the test ids ENV names as stable. Breaks on a refactor that changes nothing for the user. Where it also checks a user outcome, the test may be worth rewriting instead of dropping; say so.
- **wrong-scope**: not an end-to-end check. Arithmetic on constants, a unit test of a helper, a pixel or CSS-value check, a test with no `page` interaction. Right thing, wrong layer.

**trim** is for tests that stay: steps that prove nothing the test is about. Title checks, a `reload` with no state to re-read, a detour to a page the test never asserts on, the same assertion repeated after an action that could not change it, a reset (per ENV) when nothing was changed. Name the step, keep the test.

## 1. Run the suite once

If the Playwright config does not load `.env.e2e`, load it into the shell first (`set -a; . ./.env.e2e; set +a`).

```bash
npx playwright test --reporter=line
```

A failing test gets reported as failing, not classified: triage comes first (the `e2e-triage` skill). Note runtime per test; a drop saves that time on every run.

## 2. Read every test

For each test write down: title, pages visited, outcomes asserted (what the user would see), locator style. Two tests with the same outcomes list are duplicate candidates; a test with an empty outcomes list is no-assert or wrong-scope; a test whose assertions name markup is coupled. Steps that add nothing to the outcomes list are trim candidates.

Reading the test is enough for the verdict. Open the page with `playwright-cli` only when a locator's meaning is unclear (does `.badge` carry the status the user reads, or decoration?).

## 3. Report

Summary line, then one line per finding, nothing else per finding:

```
Suite: 10 tests, 4 files, 14.2s. Proposed: drop 7, trim 1, keep 2.

- drop checkout page opens: no-assert: only toHaveURL after goto, green on an empty page
- drop shipping fee drops to zero once the cart passes $100: duplicate: same amounts on /cart as "socks alone pay $5.99 shipping..." (shipping.spec.ts:3), keep that one
- drop product grid renders eight cards with price tags: implementation-coupled: asserts article.card.product and span.price classes
- drop shipping and tax math: wrong-scope: arithmetic on constants, never opens a page
- trim guest cart survives sign-in and is gone after sign-out: toHaveTitle twice, reload on /, empty-cart check before anything is added: none bear on the merge
```

Title is the exact test title. Class is one of the four. Reason names the evidence from the test body. A keep needs no line.

Versions

The database has no other skills named e2e-prune.

Database snapshot: 13.11.2026 · package version 4237e25d6989 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 81burn-tests
    Use when asked to burn tests, prune a test suite, or cut a slow or bloated test suite down to the tests that matter.
  • 100review
    Review Playwright tests for quality. Use when user says \"review tests\", \"check test quality\", \"audit tests\", \"improve tests\", \"test code review\", or \"playwright best practices check\".
  • 100review
    Review Playwright tests for quality. Use when user says "review tests", "check test quality", "audit tests", "improve tests", "test code review", or "playwright best practices check".
  • 90write-playwright-test
    Use when asked to write, add or change Playwright tests in this repo. Gives the exact steps and conventions so every test is reviewed, uses page objects, and is proven to fail when the app is wrong.
  • 100generate
    Generate Playwright tests. Use when user says "write tests", "generate tests", "add tests for", "test this component", "e2e test", "create test for", "test this page", or "test this feature".
  • 100generate
    Generate Playwright tests. Use when user says "write tests", "generate tests", "add tests for", "test this component", "e2e test", "create test for", "test this page", or "test this feature".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.