Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

UX Click Budget Tests

Writes Playwright tests that fail when a signup or checkout flow needs more clicks or fields than allowed.

Claude's review

7/10 Original, concrete idea: a Playwright UX meter fixture that fails CI when a flow needs more clicks, fields or navigations than budgeted, with precise counting rules.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Turn a user flow into an end-to-end test with a UX budget — the test fails when the happy path needs more clicks, fields or page loads than allowed, so UX regressions break CI the way performance regressions do. Playwright by default, adapted to Cypress or the project's existing E2E setup. Use when asked to test a flow, add a click budget, keep onboarding, signup or checkout from getting longer, or after a happy-path audit sets a budget.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: flow-test
description: Turn a user flow into an end-to-end test with a UX budget — the test fails when the happy path needs more clicks, fields or page loads than allowed, so UX regressions break CI the way performance regressions do. Playwright by default, adapted to Cypress or the project's existing E2E setup. Use when asked to test a flow, add a click budget, keep onboarding, signup or checkout from getting longer, or after a happy-path audit sets a budget.
---

# Flow Test

A flow that took 6 clicks at launch takes 11 a year later, one reasonable PR at a time, and nothing fails along the way. This skill makes the flow's cost an assertion: an end-to-end test walks the happy path the way a user would, counts the interactions, and fails when the count exceeds the budget.

## Phase 1: Find the E2E setup

Look for an existing end-to-end stack: `playwright.config.*`, `cypress.config.*`, `wdio.conf.*`, Maestro or Detox for mobile. Reuse its config, fixtures, authentication helpers, test-data seeding and CI job.

If there's none, propose Playwright and ask before adding it: a new tool in the project's toolchain is the team's decision.

## Phase 2: Get the flow and the budget

Read `flow-audit.md` in the feature folder (`docs/product/<feature-slug>/`) for the steps and the budget. Without one, trace the happy path quickly (entry point → steps → goal state) and set the budget to today's count: the test's first job is to stop the flow from getting worse.

What to assert, depending on the flow:

- **clicks** — activations of controls: buttons, links, options, checkboxes, tabs, including opening dropdowns and closing modals.
- **fields** — distinct inputs the user fills.
- **navigations** — page loads and client-side route changes after the start state.
- **time** (optional) — only with a generous margin, because CI machines are noisy.

These match the definitions in `happy-path-audit`, so the audit's budget can be asserted as is.

## Phase 3: Add the UX meter

Count interactions in the page, not in the test code. A listener on real DOM events counts every click, whichever helper or page object produced it. Add this once next to the project's other fixtures, adapted to its language and conventions (Playwright with TypeScript shown):

```ts
// e2e/fixtures/ux-meter.ts
import { test as base, expect, type Page } from '@playwright/test';

export type UxBudget = { clicks?: number; fields?: number; navigations?: number };

export class UxMeter {
  clicks = 0;
...

From Trystan-SA's repository, MIT licence.

Related skills

  • Checked

    JUnit and Mockito tests

    Writes and fixes Java tests with JUnit, AssertJ and Mockito that are deterministic and keep failures visible.

    by github 42k
    8/101 credit
  • Checked

    Test code review

    Reviews new or changed tests in pytest, Jest, Go and more, so weak tests are caught before merge.

    by amElnagdy 1.3k
    7/101 credit
  • Checked

    Go table driven tests

    Writes Go tests with table cases, fakes, fuzzing, benchmarks and golden files that stay fast and reliable.

    by ericrisco 691
    8/101 credit
  • Checked

    Test Cases From Tickets

    Turns a ticket's acceptance criteria into traceable test cases with data, steps, expected results and proof.

    by rampstackco 1.1k
    7/101 credit
  • Checked

    VSTest to Testing Platform

    Switches your .NET tests and CI from VSTest to Microsoft.Testing.Platform with the right settings and commands.

    by dotnet 6.4k
    8/101 credit
  • Checked

    Pragmatic test strategy

    Picks the cheapest test that proves a change works and skips flaky or self confirming tests, so done means done.

    by CodeAlive-AI 194
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added