agentleFS
diegovasquez-aidiegovasquez-ai/builder-crm/.claude/skills/playwright-cli/SKILL.md

playwright-cli

Skill40 starsChanged 2 months agoMITView on GitHub

Testing automatizado con Playwright CLI. Navega la app, llena formularios, hace click, toma screenshots, y genera reportes. Activar cuando el usuario dice: testea esto, revisa que funcione, hay un bug, verificalo, checalo en el browser, o despues de implementar una feature para validar.

188 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • Doyoun510Skill

    scopesentry

    ScopeSentry MCP를 통해 보안 스캔 플랫폼(프로젝트, 작업, 템플릿, 자산, 노드)을 관리합니다. 사용자가 ScopeSentry, MCP, API Key, 스캔 작업, 자산 조회를 언급할 때 사용합니다.

    Also in 5 projects that use this

  • dotlabshqSkill

    api-recon

    API reconnaissance: endpoint discovery, authentication mechanism analysis, OpenAPI/Swagger/GraphQL schema collection, HTTP method testing, and API versioning enumeration. Maps the full API attack surface before exploitation. Use when: starting API testing, discovering endpoints from documentation or JS files, or mapping authentication and authorization boundaries.

    Also in 5 projects that use this

  • MicrosoftSkill

    fabric-cli

    How to use fabric-app-data CLI to manage Fabric data source connections. Maintain workspace/item IDs in a fabric.yaml file with profiles, add connections by ID or Fabric portal URL, and generate TypeScript config for use with @microsoft/fabric-app-data.

    Also in 10 projects that use this

  • MicrosoftSkill

    fabric-sdk

    How to use @microsoft/fabric-app-data to connect web applications to Fabric data sources at runtime. Build browser-based apps that query semantic models via DAX using the FabricClient API.

    Also in 10 projects that use this

  • +5 more from naman10parikh

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Principio sticky-notes: NO volcar snapshots completos al contexto.

    line 121

“Common” is measured: kept by at least 6 in 10 of the 167 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: QA Automatizado con Playwright CLI

Ejecutar QA: $ARGUMENTS


Por Que CLI en vez de MCP

Playwright MCP inyecta snapshots completos de pagina directamente en el context window. Esto consume muchos tokens y puede causar ruido para flujos conocidos.

Playwright CLI en cambio:

  • Guarda datos de pagina a disco (archivos YAML/screenshots) en vez de llenar el contexto
  • Menos tokens consumidos, mayor precision para flujos definidos
  • Claude ya sabe usar shell commands, cero overhead de carga de herramientas
  • Los artefactos quedan en disco para revision posterior

Cuando usar MCP en vez de CLI: Exploracion interactiva de paginas desconocidas o debugging visual en tiempo real. Para todo lo demas, CLI.


Prerequisitos

Instalar Chromium si no esta instalado:

npx playwright install chromium

Comandos Core de Playwright CLI

# Navegar a una pagina
npx playwright navigate http://localhost:3000

# Tomar screenshot
npx playwright screenshot http://localhost:3000 --output screenshot.png

# Click en un elemento
npx playwright click "text=Sign In"

# Llenar un campo de formulario
npx playwright fill "#email" "test@example.com"

# Obtener snapshot de pagina (accessibility tree como YAML)
npx playwright snapshot http://localhost:3000

Flujo QA en 6 Fases

Fase 1: SETUP

Leer los requerimientos del test. Identificar que necesita testing.

  • Que feature o bug se esta verificando?
  • Cuales son los criterios de exito?
  • Que URL/rutas estan involucradas?
  • Se necesitan datos de prueba?

Crear el directorio de artefactos:

mkdir -p .qa-reports/[YYYY-MM-DD]-[nombre]/screenshots

Fase 2: PROVISION

Preparar datos de prueba si son necesarios.

  • Crear usuario de prueba via Supabase MCP si aplica
  • Preparar datos en BD que el flujo necesite
  • Verificar que el servidor de desarrollo esta corriendo
# Verificar que la app esta corriendo
curl -s -o /dev/null -w "%{http_code}" http://localhost:3000

Fase 3: NAVIGATE

Abrir la app y navegar a las paginas relevantes.

# Screenshot inicial de la pagina
npx playwright screenshot http://localhost:3000/[ruta] --output .qa-reports/[fecha]-[nombre]/screenshots/01-inicio.png

Fase 4: TEST

Ejecutar los pasos del test. Llenar formularios, hacer clicks, verificar resultados.

# Ejemplo: test de login
npx playwright screenshot http://localhost:3000/login --output .qa-reports/[fecha]-[nombre]/screenshots/02-login-page.png
npx playwright fill "#email" "test@example.com"
npx playwright fill "#password" "testpassword"
npx playwright click "text=Sign In"
npx playwright screenshot http://localhost:3000/dashboard --output .qa-reports/[fecha]-[nombre]/screenshots/03-after-login.png

Tomar screenshot ANTES y DESPUES de cada accion critica.

Fase 5: DOCUMENT

Guardar snapshots de pagina solo cuando se necesite inspeccionar estructura.

# Solo si necesitas ver la estructura del DOM
npx playwright snapshot http://localhost:3000/[ruta] > .qa-reports/[fecha]-[nombre]/snapshot-[paso].yaml

Principio sticky-notes: NO volcar snapshots completos al contexto. Leer el archivo YAML solo cuando se necesite inspeccionar algo especifico. Resumen primero, detalles on-demand.

Fase 6: REPORT

Generar reporte markdown con hallazgos.


Template del Reporte

Crear el archivo .qa-reports/[YYYY-MM-DD]-[nombre]/report.md:

# QA Report: [Feature/Bug Name]

**Date**: [YYYY-MM-DD]
**Status**: PASSED | FAILED | PARTIALLY_FIXED

## Test Steps
1. [Descripcion del paso] - Screenshot: `screenshots/01-nombre.png`
2. [Descripcion del paso] - Screenshot: `screenshots/02-nombre.png`
3. ...

## Findings
- [Issue encontrado o confirmacion de que funciona]
- [Comportamiento inesperado observado]

## Screenshots
- `screenshots/01-inicio.png` - Estado inicial
- `screenshots/02-accion.png` - Despues de [accion]
- ...

## Recommendations
- [Fix sugerido o mejora]
- [Siguiente paso]

Modos de Uso

ComandoQue hace
/qa verify [flujo]Verificar que un flujo funciona correctamente
/qa reproduce [bug]Intentar reproducir un bug reportado
/qa full [feature]QA completo de una feature (happy path + edge cases)

Ejemplo: /qa verify login flow

Fase 1: SETUP - Verificar flujo de login. Criterio: usuario puede loguearse y ver dashboard.
Fase 2: PROVISION - Verificar que existe usuario de prueba en BD.
Fase 3: NAVIGATE - Ir a /login, tomar screenshot.
Fase 4: TEST - Llenar email/password, click Sign In, verificar redireccion a /dashboard.
Fase 5: DOCUMENT - Screenshots en cada paso.
Fase 6: REPORT - Generar report.md con status PASSED/FAILED.

Directorio de Output

Todos los artefactos de QA se guardan en:

.qa-reports/
  [YYYY-MM-DD]-[nombre]/
    report.md
    screenshots/
      01-nombre.png
      02-nombre.png
      ...
    snapshot-[paso].yaml  (solo si se necesito)

Reglas

  • SIEMPRE crear el directorio de artefactos antes de empezar
  • SIEMPRE tomar screenshots en cada paso critico
  • NUNCA volcar snapshots YAML completos al contexto (leerlos on-demand)
  • SIEMPRE generar el reporte al final, incluso si todo paso
  • Si el servidor no esta corriendo, avisar al usuario en vez de fallar silenciosamente
  • Los screenshots se guardan en disco, NO se insertan inline en el reporte (solo paths)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.