/agentex:define-flow runs instead · from AgenTeX
Leads an interactive agent-driven session to define test flows by executing each step live in a browser. User confirms outcomes before proceeding, producing a runnable natural-language spec file.
This skill never runs in Claude Code
It ships in AgenTeX at skills/, but /agentex:define-flow (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
You lead a define-by-doing session. The user has a flow in their head (or an unclear spec file); you turn it into a proven, runnable spec by executing every step live as it is defined. You lead: you ask what happens next, propose steps from what you see on the page, and offer choices. The user only answers, confirms, and selects — at no point do you ask the user to write spec text.
This session is authoring, not a test run. Note the direction reversal from a test run: there the user approves your plan; here you elicit the flow from the user, one step at a time.
You, the main agent, drive the whole session yourself. Never dispatch a subagent for any part of the loop — subagents cannot interact with the user mid-run, and this session IS mid-run interaction.
[email protected]), never real personal
data; and secrets are never printed under any circumstances..playwright-cli/ scratch and are cleaned at the end.
A definition session never writes executions/ — only the optional validation run at the
end (a normal /execute-test run) produces normal evidence in the normal place.config/project.json and
environments/<env>.json only. Never read .env: the bundled scripts read the values they
need from it themselves. Never print, log, or pass secret values. A { "envSecret" } field
is typed only with browser-driver's fill_secret.js (its Secret fields rule), never with
fill or type.${CLAUDE_PLUGIN_ROOT}/skills/test-execution/SKILL.md — read those
sections and follow them as written: explicit environment → defaultEnvironment in
config/project.json → legacy, the URL the user gave. A legacy project with no URL stops
before the session with "give the URL, or run /update-agentex". Never read .env to find
it. Undefined environment names are an error; undefined user handles are BLOCKED. All
target, users, and test data come from the consumer project's configuration; nothing is
hardcoded.${CLAUDE_PLUGIN_ROOT}/skills/browser-driver/references/tools/playwright-cli.md
before the first browser action. A definition session is single-session (no -s=
fan-out) but NEVER the default playwright-cli session: generate one unique name —
define-<HHMMSS>-<4 random hex chars> — and prefix every command with -s=<that name>.
Only that session may be closed at the end; close-all / kill-all are forbidden.Repeat until the user says the flow is complete:
.playwright-cli/define-flow-draft.md) — incremental assemble: a
crash or disconnect at step 14 loses nothing already confirmed. Keep a visible running
list — after each confirmed step, show the numbered steps so far, so a long flow (15+
steps) never loses the thread.test/README.md. This is what keeps VALIDATE (and any fresh
run) viable for mutating/create flows.api: / db: /
kb:), only entries defined in the project's integration/*_api.json / *_db.json
catalog may run — execute them live via the api-integration / db-integration /
ask-kb skills' runner scripts (read the relevant SKILL.md before the first such step),
passing the resolved environment via --env <name>. An undefined name is BLOCKED
(report the missing entry), never improvised — exactly as in test runs. kb: answers are
advisory context only.When the user says the flow is complete:
${CLAUDE_PLUGIN_ROOT}/test/README.md and
the ${CLAUDE_PLUGIN_ROOT}/test/suite1/ samples:
test/suite1/<slug>.md, slug
derived from the flow's goal. Save only on the user's confirmation.-s=<session> close — only your own session, never
close-all/kill-all), then clean the transient .playwright-cli/ scratch — draft
included — once the final spec is saved.Offer to immediately re-run the fresh spec via /execute-test — the "proven twice" moment:
every step already passed once during definition; a fresh run proves the spec resolves its
captured values live and passes unmodified. This validation run is a normal test run and
writes its evidence to executions/ in the normal way. If the user declines, the session
ends with the saved spec.
When the input is an existing spec file path, run the same session over the file's steps instead of eliciting new ones:
<path to the new file>" — so the team sees at a
glance that this spec has a proven counterpart. Say plainly that this one line is all that
would change, and write it only if the user says yes. A no is a complete outcome, not a
half-finished one: the new spec stands on its own. Name both paths in your closing summary
either way.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./browser-driverThe browser driver for test-execution runs. It drives a real browser through playwright-cli for unprefixed (prose) spec steps and covers isolated sessions, screenshot and console evidence, login modes, and the failure signatures that decide retry versus defect. Use when a test-execution run's drivers include browser, before the first browser action; the test-execution orchestrator and qa-executor read it. Not a standalone entry point./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.
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