ag-testar-e2e-batch

ag-testar-e2e-batch is a skill for Claude Code from andregusman-raiz/a-gusman-claude. It costs 58 tokens per session (3,703 once invoked), scanned A, original, MIT.

A managed process for running a complete Playwright end-to-end test suite in batches. It checks the required infrastructure first, diagnoses common failures, retries failed groups, and tracks progress.

In plain words
What is it for?
Use it to validate test infrastructure, run groups of 10–20 browser tests, retry up to three cycles, and fix common selector, mock, or timing failures.
Why use it?
Large browser-test suites can fail because the server, environment, database, selectors, or timing are wrong rather than because the product is broken. The process makes those causes easier to separate and follow up.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter.

Good fit Use it to validate test infrastructure, run groups of 10–20 browser tests, retry up to three cycles, and fix common selector, mock, or timing failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andregusman-raiz/a-gusman-claude/ag-testar-e2e-batch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add andregusman-raiz/a-gusman-claude --skill ag-testar-e2e-batch
Clone the repo
git clone --depth 1 https://github.com/andregusman-raiz/a-gusman-claude

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 ag-testar-e2e-batch

README.md
[![agentmods](https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-testar-e2e-batch/github.svg)](https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-testar-e2e-batch)
Your own site
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-testar-e2e-batch"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-testar-e2e-batch/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 ag-testar-e2e-batch

Your own site · 80×15
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-testar-e2e-batch"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-testar-e2e-batch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,703 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 48
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 99
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 99
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • medium Data Exfiltration · line 52
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00058 $0.03703
Opus 5 $0.00029 $0.01852
Sonnet 5 $0.00012 $0.00741
Haiku 4.5 $0.00006 $0.00370

Measured 8d ago against content hash 98ba44d5c4d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ag-testar-e2e-batch 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 8d 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.

if ! curl -s --max-time 5 "$BASE_URL" > /dev/null 2>&1; then
skills/ag-testar-e2e-batch/SKILL.md · 380 lines

How it starts

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

ag-testar-e2e-batch — E2E Tests with Infrastructure Validation

ENGINE CANONICO (2026-06-11, piloto ADR-0002): o loop deterministico desta skill (batching, retry bookkeeping, contadores, criterio de parada) vive em Workflow({name: "e2e-batch", args: {projectDir: "<path>"}}) — script em .claude/workflows/e2e-batch.js. PREFERIR o Workflow: o loop nao "esquece" fases e os fixes retornam schema validado. O texto abaixo permanece como referencia de diagnostico por categoria de falha e fallback quando o Workflow tool nao esta disponivel.

Executa suite E2E completa em batches com validacao de infraestrutura, auto-diagnose de falhas, e retry automatico ate convergencia (max 3 ciclos).

Quando Usar

  • Rodar suite E2E completa de forma confiavel (nao apenas bunx playwright test)
  • Validar infraestrutura antes de rodar testes (dev server, env vars, DB)
  • Auto-corrigir falhas comuns (seletores quebrados, timing, mocks desatualizados)
  • Obter relatorio estruturado de progresso e resultados

Parametros

Parametro Default Descricao
projeto-path CWD Diretorio raiz do projeto
--batch-size 15 Testes por batch (10-20 recomendado)
--max-retries 3 Ciclos maximo de retry
--base-url http://localhost:3000 URL do dev server
--project (todos) Playwright project especifico (ex: smoke, chromium)

Fase 1: Pre-Flight — Validacao de Infraestrutura

1.1 Dev Server

Verificar se o dev server esta rodando. Se nao, iniciar e aguardar healthy.

# Detectar porta do projeto
PORT=$(grep -oP 'PORT=\K\d+' .env 2>/dev/null || echo "3000")
BASE_URL="${BASE_URL:-http://localhost:$PORT}"

# Verificar se dev server responde
if ! curl -s --max-time 5 "$BASE_URL" > /dev/null 2>&1; then
  echo "Dev server nao encontrado em $BASE_URL. Iniciando..."

  # Detectar comando de start
  if grep -q '"dev"' package.json 2>/dev/null; then
    bun run dev &
    DEV_PID=$!
  elif grep -q '"start"' package.json 2>/dev/null; then
    bun start &
    DEV_PID=$!
  else
    echo "ERRO: Nenhum script dev/start encontrado em package.json"
    exit 1
  fi

  # Aguardar server ficar healthy (max 60s)
  TIMEOUT=60
  ELAPSED=0
  while ! curl -s --max-time 2 "$BASE_URL" > /dev/null 2>&1; do
    sleep 2
    ELAPSED=$((ELAPSED + 2))
    if [ $ELAPSED -ge $TIMEOUT ]; then
      echo "ERRO: Dev server nao ficou healthy em ${TIMEOUT}s"
      kill $DEV_PID 2>/dev/null
      exit 1
    fi
    echo "Aguardando dev server... (${ELAPSED}s/${TIMEOUT}s)"
  done
  echo "Dev server healthy em ${ELAPSED}s"
else
  echo "Dev server ja rodando em $BASE_URL"
fi

Read the full file on GitHub · 380 lines

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. 8d ago First seen · 380 lines · 58 tokens per session scan A 98ba44d5c4d8

Subscribe to this mod's changes

ag-testar-e2e-batch is a skill published in the GitHub repository andregusman-raiz/a-gusman-claude (19 stars, last pushed 3d ago), licensed MIT. It adds 58 tokens to every session and 3,703 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

ui-test

Runs UI tests described in plain English by driving real Chrome via the Claude-in-Chrome extension. Covers end-to-end flows (clicks, forms, assertions), visual checks (screenshot + optional baseline diff), accessibility (axe-core), performance (Web Vitals + light Lighthouse-style metrics), and an interactive --debug…

mostafa-drz/claude-skills · 190 tokens

audit-ui-e2e

Runs a beginner-mind end-to-end UI audit of any running app — local dev server, staging, production, or a specific URL. Drives Chrome through every interactive element on the target surface, collects structured findings (severity, category, where, symptom, impact, repro, triage), and hands the result off to…

mostafa-drz/claude-skills · 152 tokens

capture-screens

Automatically navigates a web app using Playwright MCP and captures context-aware named screenshots at each product feature state. Names each file semantically based on context (e.g., checkout-payment-form-filled.png). Outputs a manifest.json mapping filenames to descriptions and a summary report. Use when documenting…

mostafa-drz/claude-skills · 101 tokens

browse

Fast headless browser for QA testing and site dogfooding. Navigate any URL, interact with elements, verify page state, diff before/after actions, take annotated screenshots, check responsive layouts, test forms and uploads, handle dialogs, and assert element states. 100ms per command. Use when you need to test a…

Ertinox7711/SGRR-AGI-V2 · 119 tokens

test-browser

Run browser tests on pages affected by current PR or branch.

gvkhosla/compound-engineering-pi · 14 tokens

verify

Drive the Vite desktop SPA to verify AppShell / Workbench sidebar changes.

mmletgo/cc-partner · 17 tokens