No slash command · from AgenTeX
Drives a real browser via playwright-cli for test-execution runs. Handles isolated sessions, screenshots, console evidence, login modes, and failure signatures. Used by test-execution orchestrator and qa-executor.
Ships in AgenTeX. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You execute browser steps for a test-execution run through playwright-cli (via Bash), inside
the run's own session. You never modify application code. The run itself (modes, verdicts,
reports) belongs to the test-execution skill.
-s=<session>, with the name init_run.js generated for this run. The default session is prohibited: a bare command lands there and collides with other executions (another Claude Code window on the same machine).test, and never reuse another execution's name.-s=<session> close, even on failure. Never run close-all / kill-all: they kill every session on the machine. The one exception is a global cleanup the user explicitly asks for, after confirming no other execution is running.--filename= (never a positional path).--headed is for demos only.{ "envSecret": "NAME" } value (password, OTP, national ID, any field) ONLY with node ${CLAUDE_PLUGIN_ROOT}/skills/browser-driver/scripts/fill_secret.js --session <s> --target <ref> --env-var NAME [--env <env>] --submit (read references/tools/fill-secret.md first). Never resolve, read, echo, or pass the value yourself, and never try another way (fill, type, run-code, $NAME): a refused command is not a puzzle to solve. Snapshot BEFORE filling and fill secrets last. A snapshot shows input values in clear text, passwords included, and every playwright-cli action writes one to .playwright-cli/, so run no other playwright-cli command between the first secret fill and the submit: submit in the last call with --submit (Enter) or --submit-target <pre-fill ref>, which then clears every secret field still holding its value. Segmented boxes (OTP digits): one call, one --target per box, in order. If the submitting call never ran, take no snapshot, eval or screenshot of that page ("evidence withheld: secret field still filled"). secret-unavailable → the scenario is BLOCKED, never FAIL, never captcha-or-otp.references/tools/playwright-cli.md.snapshot to get element refs before interacting. Refs change on navigation: re-snapshot after each page load.playwright-cli.md gives: the target positional, no invented option. Use run-code only for what no command does. Never use it as the retry for a failed click, fill, check or select. Never use force: true or an element.click() through evaluate. Then verify with the techniques in references/techniques/browser-checks.md.SESSION_DIR: screenshots in screenshots/<scenario>.png, console and network captures in logs/<scenario>.log.references/experience/gotchas.md before deciding retry versus defect.The orchestrator resolves LOGIN_MODE. When a scenario needs user U signed in, go in this order:
| Mode | Do |
|---|---|
fresh | Drive the login UI in this session (step 2 below). |
session, the login itself under test (a negative login, login-form checks) | Start clean: npx playwright-cli -s=<session> cookie-clear, then npx playwright-cli -s=<session> localstorage-clear, then reload the login page (npx playwright-cli -s=<session> reload, or open the login URL again), because the form on screen just lost its own cookie. Only then drive the login UI (step 2). Never fill the form on the stale page. Never load or save a saved login here: a reused session would pass the scenario without testing the login. |
session, any other scenario | Load the saved login (step 1). |
references/tools/login-state.md, then run
node ${CLAUDE_PLUGIN_ROOT}/skills/browser-driver/scripts/login_state.js load --session <session> --user <U> --env <ENVIRONMENT>
(leave out --env when ENVIRONMENT is empty). It loads the saved login into this session, opens the saved page and checks the saved landmark.
RESUME_PASS: you are signed in from the saved login. Continue with the steps.RESUME_FAIL (with its reason): drive the login UI (step 2). For landmark-failed the script cleared the cookies and localStorage and then reloaded the page itself, so go on to the login UI on that reloaded page with no reload of your own. For any other reason (no-state, no-landmark, cli-unsupported, state-unreadable, no-environment) nothing was cleared.BLOCKED: the scenario is BLOCKED with the script's reason verbatim. A result marked infrastructure: true gets the one retry the driver contract allows.captcha-or-otp: surface it, never defeat it (the optimize-login skill's Limits). Then verify you are in by a landmark element, never by the URL. No landmark: the login step fails, FAIL or BLOCKED by the usual rules, with its evidence kept. Landmark held: in fresh mode, or when the login is under test, continue with the steps.session mode, login not under test), only after the landmark proved you in. <landmark> is the selector of an element only a signed-in user sees:
node ${CLAUDE_PLUGIN_ROOT}/skills/browser-driver/scripts/login_state.js save --session <session> --user <U> --present <landmark> --env <ENVIRONMENT>
(leave out --env when ENVIRONMENT is empty). It checks the landmark on the current page again before it stores anything.
SAVED or SKIPPED): continue with the steps.Saved logins are credentials (test/.auth/*-state.json and their sidecars):
state-load or state-save yourself, and never put a cookie or storage value on a command line: only login_state.js moves a saved login.Per browser step, hand back: the screenshot path, console and network notes, and observed vs. expected.
| File | Knowledge | Read when |
|---|---|---|
references/tools/playwright-cli.md | Tool | Before the first command in a session |
references/tools/fill-secret.md | Tool | Before the first { "envSecret" } field |
references/tools/login-state.md | Tool | Before the first login_state.js call (session mode) |
references/techniques/browser-checks.md | Technique | Verifying a step: visibility, console, network, RTL |
references/experience/gotchas.md | Experience | A command fails or behaves unexpectedly |
references/experience/gotchas.md (opens in a new tab)references/techniques/browser-checks.md (opens in a new tab)references/tools/fill-secret.md (opens in a new tab)references/tools/login-state.md (opens in a new tab)references/tools/playwright-cli.md (opens in a new tab)scripts/fill_secret.js (opens in a new tab)scripts/fill_secret.test.js (opens in a new tab)scripts/login_state.e2e.test.js (opens in a new tab)scripts/login_state.js (opens in a new tab)scripts/login_state.test.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
17 skills in this plugin
/api-integrationExecute user-defined API calls during test runs, from the project's integration/ catalog. Use whenever a test step needs an HTTP call: verify via API that a UI action persisted, check an endpoint's response, or seed test data through a service. Triggers on spec steps starting with "api:", or requests like "verify via API", "call the endpoint", "check the response". The agent executes ONLY requests the user has defined in a *_api.json catalog (searched recursively under integration/) — it never composes its own HTTP requests.
/ask-kbAsk a project's knowledge base a natural-language question during a test run, via the KB Ask API, and read the answer as advisory context. Triggers on spec steps starting with "kb:", or requests like "ask the KB", "what does the knowledge base say", "how does <flow> work". Explicit only — the agent never calls the KB on its own initiative. Answers inform testing/navigation but are NEVER used as PASS/FAIL evidence.
/azure-integrationInteract with Azure resources from a QA/test run via the Azure CLI (`az`) — login/auth, discovery, and reading App Service, Storage, Key Vault, and AKS resources. Use whenever a task needs to reach Azure (verify a deployment, tail app logs, read a blob/secret, get AKS credentials) or when `az` is not installed. Read the reference before the first `az` command./bug-report-azureAfter a completed test/regression run where one or more defects were found, file them as tracker Bugs on the configured tracker — Azure DevOps or Jira Cloud ("file these as Jira bugs" works the same) — following a configurable bug template, through bundled Node scripts that talk to the tracker REST API directly (no Azure CLI, no acli needed). Product/team-agnostic: org/site, project, area path, template, assignees, and test plan resolve from config, never hardcoded. ONE gate per filing: all reads and validation run first with zero board writes, then a single consolidated screen (validated fields + the exact write plan) and one approval before anything is written. Severity/priority recommended from the run's findings, screenshots validated in two passes, writes fail closed with an exact per-write ledger — the board never silently differs from what the user confirmed./db-integrationExecute user-defined database queries during test runs, from the project's integration/ catalog (SQL Server via sqlcmd). Use whenever a test step needs a DB check: verify a row was created/updated by a UI action, check column values, or seed test data. Triggers on spec steps starting with "db:", or requests like "check the database", "verify the row", "query the table". The agent executes ONLY queries the user has defined in integration/*_db.json — it never composes its own SQL.
/define-flowDefine a test flow by doing it: an agent-led session that builds a spec step by step in a live browser — the agent proposes each step, executes it immediately, and the user asserts the real outcome before the next step is defined. Use when a user wants to create a spec for a long or complex flow without writing it blind, or wants to walk through an existing spec live to clarify ambiguous steps. Produces a normal natural-language spec file that runs unmodified via /execute-test.
agentex@elgazzar-plugins is listed by mhmdelgazzar/elgazzar-plugins — review the source before installing
npx claudepluginhub mhmdelgazzar/elgazzar-plugins --plugin agentexOther plugins' skills for the same job