ag-gerar-testes

ag-gerar-testes is a skill for Claude Code from andregusman-raiz/a-gusman-claude. It costs 57 tokens per session (1,704 once invoked), scanned A, original, MIT.

A tool that explores a web application in a browser and turns the observed user flow into an executable Playwright test. Playwright is a tool for automating browser tests.

In plain words
What is it for?
Use it to record real steps such as opening pages, clicking controls, and filling forms, then generate and run a TypeScript end-to-end test.
Why use it?
It bases the test on what the application actually does in the browser rather than only on specifications or source code. It also runs the generated test and makes limited corrections when it fails.

Skill for Claude Code

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

Good fit Use it to record real steps such as opening pages, clicking controls, and filling forms, then generate and run a TypeScript end-to-end test.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andregusman-raiz/a-gusman-claude/ag-gerar-testes
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-gerar-testes
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-gerar-testes

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-gerar-testes"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-gerar-testes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,704 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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: 2 findings, up to medium

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 →

  • 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 MCP Rug Pull · line 26
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00057 $0.01704
Opus 5.5 $0.00023 $0.00682
Sonnet 5.5 $0.00011 $0.00341
Haiku 4.5 $0.00006 $0.00170

Measured 2mo ago against content hash 068f68fe8ebe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ag-gerar-testes scanned grade A with 0 findings 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 2mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ag-gerar-testes/SKILL.md · 173 lines

How it starts

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

ag-gerar-testes — Gerar Testes via MCP

Papel

O Gerador de Testes: explora a aplicacao via Playwright MCP, documenta o fluxo observado, e transforma em teste Playwright TypeScript executavel. Combina exploracao real com automacao.

Diferenca de ag-testar-e2e: ag-testar-e2e escreve testes baseado em specs/codigo. ag-gerar-testes gera testes baseado em observacao real do browser via MCP.

Pre-requisito

.mcp.json com Playwright MCP configurado.

Instrucoes

  1. Primeiro, explore o fluxo usando Playwright MCP — navegue, clique, preencha
  2. Documente cada passo: URL, seletor usado, acao, resultado esperado
  3. Gere um teste Playwright TypeScript baseado no que observou
  4. Valide executando o teste gerado com npx playwright test [arquivo]
  5. Corrija ate o teste passar (loop max 3 tentativas)

Padrao de Seletores (prioridade)

  1. getByRole('button', { name: '...' }) — preferido
  2. getByLabel('...') — formularios
  3. getByText('...') — textos visiveis
  4. getByPlaceholder('...') — inputs
  5. getByTestId('...') — fallback ultimo recurso

Template do Teste Gerado

import { test, expect } from '@playwright/test';

test.describe('[Nome do Fluxo]', () => {
  test.beforeEach(async ({ page }) => {
    const errors: string[] = [];
    page.on('console', msg => {
      if (msg.type() === 'error') errors.push(msg.text());
    });
    page.on('pageerror', error => errors.push(error.message));
    page.on('requestfailed', req =>
      errors.push(`${req.method()} ${req.url()} — ${req.failure()?.errorText}`)
    );
  });

  test('[descricao do cenario]', async ({ page }) => {
    await page.goto('/...');
    // ... passos observados via MCP
    // Assertions baseadas no comportamento real
  });
});

Regras

  • Gere testes para happy path E error path
  • Inclua teste de duplo clique / submit rapido
  • Inclua teste de viewport mobile (375x667)
  • Use auto-waiting do Playwright (nunca page.waitForTimeout)
  • Salve em test/e2e/ ou tests/e2e/ conforme estrutura do projeto
  • Execute cada teste gerado — so considere pronto se passar

Read the full file on GitHub · 173 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. 2mo ago First seen · 173 lines · 57 tokens per session scan A 068f68fe8ebe

Subscribe to this mod's changes

ag-gerar-testes is a skill published in the GitHub repository andregusman-raiz/a-gusman-claude (18 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 1,704 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

browse

Drive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. (gstack).

garrytan/gstack · 32 tokens

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 tokens

create-verification-skill

Create a repo-local verification skill and exhaustive feature map for driving a real app through its UI, CLI, or API. Use for "create a verification skill", "make a verify skill for this repo", or "document how agents can verify this app".

get-bb/bb · 57 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

anthropics/skills · 35 tokens

browser-qa

A browser-based quality check for deployed web pages and user flows. It uses browser automation to test rendering, navigation, forms, interactions, responsive behaviour, and accessibility-related issues.

hashgraph-online/awesome-codex-plugins · 58 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens