一键导入
agentic-testing
Use this skill to write and execute robust AI-powered end-to-end (E2E) tests for the web application using Playwright and Zerostep.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill to write and execute robust AI-powered end-to-end (E2E) tests for the web application using Playwright and Zerostep.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Codebase intelligence for JavaScript and TypeScript. Free static layer reports quality, changed-code risk, cleanup opportunities (unused files, exports, types, dependencies), code duplication, circular dependencies, complexity hotspots, architecture boundary violations, feature flag patterns, and opt-in security candidates. Runtime coverage merges production execution data into the same health report for hot-path review, cold-path deletion confidence, and stale-flag evidence, with a single local capture available by default and continuous/cloud runtime monitoring available as an optional mode. 118 framework plugins, zero configuration, sub-second static analysis. Use when asked to analyze code health, audit PR risk, find cleanup opportunities or unused code, detect duplicates, check circular dependencies, audit complexity, check architecture boundaries, detect feature flags, surface security candidates, clean up the codebase, auto-fix issues, merge runtime coverage, or run fallow.
Persistent per-project memory for Claude Code. Auto-loads project context on session start, tracks sessions with git activity, and writes to native memory. Commands run deterministic Node.js scripts — behavior is consistent across model versions.
Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.
Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.
Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.
Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.
| name | agentic-testing |
| description | Use this skill to write and execute robust AI-powered end-to-end (E2E) tests for the web application using Playwright and Zerostep. |
This skill is designed for writing resilient, AI-powered End-to-End tests using Playwright and Zerostep. By leveraging ai() from @zerostep/playwright, you can interact with the DOM using natural language (e.g., "Click the login button", "Fill the email field with user@example.com") instead of brittle CSS/XPath selectors.
@zerostep/playwright must be installed in the target workspace (e.g., apps/web).ZEROSTEP_TOKEN environment variable must be present, or the tool will fail to authenticate with the AI locator service.When the user asks you to test a flow or create an E2E test, follow these steps:
Create or update tests inside the e:\NYX\apps\web\tests\e2e\ directory. Use the .spec.ts suffix.
Import both test and expect from @playwright/test, and ai from @zerostep/playwright.
Example:
import { test, expect } from '@playwright/test';
import { ai } from '@zerostep/playwright';
test('User can log in', async ({ page }) => {
await page.goto('http://localhost:3000/login');
// Use AI to perform actions
await ai('Fill the email input with "test@example.com"', { page });
await ai('Fill the password input with "password123"', { page });
await ai('Click the Sign In button', { page });
// Use AI to verify state
const isLoggedIn = await ai('Is the user avatar visible?', { page });
expect(isLoggedIn).toBe(true);
});
To run the tests, execute the Playwright test command within the correct workspace.
npx playwright testnpx playwright test tests/e2e/login.spec.tsZEROSTEP_TOKEN if required by the CI or local environment.If a test fails due to visual changes in the UI, do NOT fallback to complex CSS selectors. Instead:
ai('...') string prompt to be more descriptive.page.locator('div > span > button.btn-primary') unless specifically testing a component's internal structural integrity. Always prefer ai() for user interactions.