/agentex:api-integrationfrom AgenTeX
Executes user-defined API calls from a project's integration/ catalog during test runs. Useful for verifying UI actions via API, checking endpoint responses, or seeding test data.
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 the API call a test step asks for, strictly from the project's integration/*_api.json
catalog. You never compose your own HTTP request or call an endpoint outside the catalog.
Lets test scenarios call APIs by name, from definitions the user wrote. Execution is done by the bundled runner script (deterministic, enforces the safety rules in code):
node ${CLAUDE_PLUGIN_ROOT}/skills/api-integration/scripts/run_api.js \
--entry <file-name>.<request-name> --param key=value [--param ...] \
[--expect-status 200] [--expect-field <dot.path>] [--expect-equals <dot.path>=<value>] \
[--env <environment-name>] --log <SESSION_DIR>/logs/<scenario>-<entry>.log
It loads the catalog, validates params, resolves env vars, performs the request, writes the
evidence log, checks expectations, and prints one JSON line:
{"result":"PASS|FAIL|BLOCKED", ...} (exit 0/1/2). Read
${CLAUDE_PLUGIN_ROOT}/skills/api-integration/references/api-requests.md for the catalog
format, curl fallback (if node/script fails), and assertion details — including
--no-auth, --expect-contains, --omit, typed $param body nodes and auth.tokenStore
(a token captured by the suite wizard).
Definitions live in the consumer project under ./integration/ (<service>_api.json),
searched recursively — hand-written catalogs typically sit flat at integration/, while
catalogs generated by swagger-import are co-located with their suite under
integration/api_test_suites/<service>/. Either location works; run_api.js finds the file
by matching the catalog's internal "name", not by path. node_modules/ and dot-directories
are not searched. Two files declaring the same "name" is BLOCKED (both files are listed)
— catalog names must be unique across integration/.
${CLAUDE_PLUGIN_ROOT}/skills/api-integration/templates/sample_api.json (never overwrite),
then ask the user to define their entries.api: <file-name>.<request-name>(param=value, ...) → <expectation>
Example: api: sample-api.get-todo(id=1) → expect HTTP 200 and title present
A catalog's optional top-level "target" decides (full rules in the reference):
"catalog" — only the catalog's own baseUrl refs and auth; the environment's api
block is ignored for it, base URL and token both. Every swagger-imported catalog carries
it. An unset ref is BLOCKED; it never falls back to the environment's host."environment" — the environments/<env>.json api block of the active
environment (--env <name>, omitted = the project's defaultEnvironment):
{ "baseUrl": "https://…", "token": { "envSecret": "API_TOKEN" } }. The token reference is
resolved from .env — never a value in JSON. Set it on a hand-written catalog whose
baseUrl uses another variable but should still follow --env.target — the environment's api block applies only when the catalog's
baseUrl is absent/empty or exactly "${API_BASE_URL}" (the project default); any other
baseUrl (e.g. "${PETSTORE_BASE_URL}") keeps its own baseUrl and auth, and the
environment token is never sent to it.When the environment has no api block, the catalog's own baseUrl refs and auth are used
(legacy fallback) — old projects keep working untouched. An unknown --env is BLOCKED
whatever the target.
tokenEnv); never print values.Runner writes status + headers + body to the --log path (under the session's logs/).
Expectation mismatch = FAIL defect with that log as evidence, reported in the standard
defect format.
The runner needs only Node (already required by the plugin). For the curl fallback, preflight per the reference.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agentex@elgazzar-plugins is listed by mhmdelgazzar/elgazzar-plugins — review the source before installing
npx claudepluginhub mhmdelgazzar/elgazzar-plugins --plugin agentex17 skills in this plugin
/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./Other plugins' skills for the same job