ui-test

ui-test is a skill for Claude Code from mostafa-drz/claude-skills. It costs 190 tokens per session (6,529 once invoked), scanned A, original, MIT.

A browser-based testing tool that follows plain-English instructions in real Chrome, such as opening pages, filling forms, and checking results.

In plain words
What is it for?
Testing end-to-end flows, taking screenshots, comparing them with earlier versions, checking accessibility, measuring web performance, and debugging interactively.
Why use it?
It helps find broken user journeys, visual changes, accessibility problems, and performance issues through the same browser people use.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is /ui-test --file <path> Run a single ./tests/ui/*.md file.

Good fit Testing end-to-end flows, taking screenshots, comparing them with earlier versions, checking accessibility, measuring web performance, and debugging interactively.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mostafa-drz/claude-skills
agentmods
npx agentmods add skills/mostafa-drz/claude-skills/ui-test

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/mostafa-drz/claude-skills/ui-test/github.svg)](https://agentmods.dev/skills/mostafa-drz/claude-skills/ui-test)
Your own site
<a href="https://agentmods.dev/skills/mostafa-drz/claude-skills/ui-test"><img src="https://agentmods.dev/badge/skills/mostafa-drz/claude-skills/ui-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/mostafa-drz/claude-skills/ui-test"><img src="https://agentmods.dev/badge/skills/mostafa-drz/claude-skills/ui-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 190 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00190 $0.06529
Opus 5 $0.00095 $0.03265
Sonnet 5 $0.00038 $0.01306
Haiku 4.5 $0.00019 $0.00653

Measured 10d ago against content hash 06f3f126159d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

ui-test scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Bash(curl *)
code/ui-test/SKILL.md · 498 lines

How it starts

The opening of the file, as written. The whole thing — 498 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Preferences

On startup, use Read to load ~/.claude/skills/ui-test/preferences.md. If missing, treat as first-run (see First-time detection).

Defaults when no preferences exist:

  • output-root: ./test-results/ui-test/ (cwd-relative when in a project; falls back to ~/.claude/skills/ui-test/runs/ outside a project)
  • viewport: 1440x900 (single) — accepts a comma list for matrix runs (e.g. 375x812,1440x900)
  • categories: e2e,visual,a11y,perf (debug is a separate mode, not a category)
  • screenshot-strategy: per-step (per-step / on-fail / never)
  • a11y-severity-floor: serious (minor / moderate / serious / critical — anything at-or-above is a failure)
  • perf-budget: lcp<=2500,cls<=0.1,inp<=200,js-heap<=50mb — overridable per-run via --perf-budget
  • verbosity: verbose-on-failure (concise / detailed / verbose-on-failure)
  • spec-priority: inline-first (inline-first / project-first / both)
  • auto-baseline: true (record on first run, diff thereafter)
  • auto-open-report: true
  • confirm-plan: always (always / only-multi-step / never)

Also load ~/.claude/skills/ui-test/feedback-journal.md if present — surface the one-line Signal: from the latest 5 sessions to bias defaults (false-positive categories get pre-deselected, baselines flagged-as-flaky get re-recorded, etc.).

Context

On startup, use Bash to detect: today's date (date +%Y-%m-%d-%H%M), the current working directory (pwd), whether ./tests/ui/ exists, whether the user is inside a git repo (git rev-parse --is-inside-work-tree — silently fail if not), and whether the configured output-root exists. Do NOT call any browser tool yet — preflight runs in Step 1.

Command routing

Check $ARGUMENTS:

  • help → display help, stop
  • config → run config flow, stop
  • reset → delete preferences.md + feedback-journal.md + sessions/ + resume-state.md, confirm, stop
  • feedback → collect ratings on the most recent run (see Feedback section), stop
  • history → list recent run folders with title, verdict, timestamp, stop
  • setup → walk through Claude-in-Chrome extension setup (see Setup section), stop
  • record <name> → take the most recent inline run and persist it as ./tests/ui/<name>.md, stop
  • --debug <url|description> → enter interactive debug mode (see Debug section), stop
  • --file <path> → load a single project test file and run it
  • --suite <glob> → resolve the glob under ./tests/ui/, run each match in order
  • anything else → treat $ARGUMENTS as an inline description, run it (Step 1 onward)

Read the full file on GitHub · 498 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 498 lines · 190 tokens per session scan A 06f3f126159d

Subscribe to this mod's changes

ui-test is a skill published in the GitHub repository mostafa-drz/claude-skills (4 stars, last pushed 27d ago), licensed MIT. It adds 190 tokens to every session and 6,529 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.