/agentex:swagger-importfrom AgenTeX
Generates an API catalog and test suite files from Swagger 2.0 or OpenAPI 3.x JSON documents. Supports local files, HTTP URLs, and SwaggerHub specs via MCP connector. Includes a guided wizard for collecting test data and previewing basic endpoint checks before approval.
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.
Turns a Swagger/OpenAPI document into the same catalog/suite files a user would otherwise
hand-write. Read
${CLAUDE_PLUGIN_ROOT}/skills/swagger-import/references/swagger-mapping.md before the
first import in a session — it covers the exact field mapping, what's skipped, and how auth
scheme selection works.
http(s):// URL serving JSON.
If the user only has YAML, tell them to convert it or use their spec host's JSON variant
(e.g. /v3/api-docs, /swagger.json) — never guess at parsing YAML by hand.swagger_search_apis_and_domains (or swagger_list_organizations first, if the owner is
ambiguous) to find the API, then swagger_get_api_definition(owner, api, version, resolved: true) to fetch its JSON. Write the result to a temp file and pass that file's path to
import_swagger.js below — the script only understands local paths and http(s):// URLs,
so this is a fetch-side step, not a script change. The connector is a spec source, not a
generator — it doesn't produce catalog/suite files itself./import-swagger --wizard)A local page walks the tester through spec → endpoints → test data → cases → one approval.
Step 3 is the agent's, as a ladder: project values first (past runs before test data), then
select-only cataloged queries, then the chosen user's saved session, and a UI sign-in last that
reads the application's own network calls. The browser bridge's renew renews the saved
session headless and reads the file itself; the agent never opens it. A user marked
disabled is never signed in. One consent on an exact list comes before creating anything
(non-production environments only). A login password declared { "envSecret" } is typed
only by browser-driver's fill_secret.js, never by hand. Read
${CLAUDE_PLUGIN_ROOT}/skills/swagger-import/references/suite-wizard.md before launching
it; it is the whole protocol. The direct import below is unchanged.
node "${CLAUDE_PLUGIN_ROOT}/skills/swagger-import/scripts/import_swagger.js" \
<path-or-url> [--name <service>] \
[--dir ./integration/api_test_suites]
Writes both generated files co-located under <dir>/<name>/: the catalog
(<name>_api.json) and its suite (<name>_suite.json) live in the same per-service folder —
e.g. integration/api_test_suites/petstore/petstore_api.json +
integration/api_test_suites/petstore/petstore_suite.json.
The catalog is written with "target": "catalog": the imported service is called at its
own ${<NAME>_BASE_URL} with its own auth, and the active environment's api block — the
project's own API — never redirects it (see api-integration's references/api-requests.md).
Prints one JSON line: {"result":"OK|BLOCKED", "catalogPath", "suitePath", "operationsImported", "casesGenerated", "envVarsToSet", "review": [...]} (exit 0 OK, 2
BLOCKED). Never overwrites an existing catalog/suite file — a BLOCKED result telling the
user to pick a different --name or remove/rename the existing file is expected behavior,
not a bug.
<path-or-url> is either a local file or an http(s):// URL. For SwaggerHub-hosted specs,
resolve via the MCP connector first (see Scope above) and pass the staged temp file's path
here — from the script's point of view it's just another local file.
envVarsToSet (and envVarsNote) to the user verbatim — the base URL literal and
any token/credential env var names (<set in .env>). Every name listed goes in the
project's .env: secrets (tokens, user/pass) always live there, never in the catalog/suite
files, never printed back; run_api.js resolves catalog ${VAR} names from the
environment, then .env (see docs/configuration.md). The base URL is not a secret, so it
may instead be written as a literal baseUrl in the catalog.review — these are real gaps (skipped header params, generated
request bodies, placeholder "not found" values, unsupported auth schemes) that need human
verification before the generated suite means anything.
The same notes are written into the generated files as a review: [...] array on each
request/case they concern."skip": "review: write operation — remove this line to enable" and will be
reported BLOCKED, not run, until it is enabled. Write cases are enabled one at a time,
each only after the user has reviewed that case (what it creates or changes, the values it
sends, the environment), or by the user through the editor's per-case Skip toggle
(/test-endpoints --edit). A request to strip the skip lines in bulk ("approve and run
everything, the POSTs too") is declined: keep every skip line and offer to walk through
the write cases one by one (endpoint-testing's SKILL.md, "Enabling a skipped write case").
review notes do not block anything, so a flagged GET case runs as generated./test-endpoints.status/fields/
equals, same as any hand-written case).endpoint-testing's job
(dispatch api-executor, per that skill's own rules). The wizard's "Approve and run now"
is the same runner: the studio spawns endpoint-testing's run_suite.js on the approved
suite.references/suite-wizard.md (opens in a new tab)references/swagger-mapping.md (opens in a new tab)scripts/browser_bridge.e2e.test.js (opens in a new tab)scripts/browser_bridge.js (opens in a new tab)scripts/browser_bridge.test.js (opens in a new tab)scripts/golden/fake_playwright_cli.js (opens in a new tab)scripts/golden/import/apikey-without-name/args.json (opens in a new tab)scripts/golden/import/apikey-without-name/expected/exit.txt (opens in a new tab)scripts/golden/import/apikey-without-name/expected/integration/api_test_suites/svc/svc_api.json (opens in a new tab)scripts/golden/import/apikey-without-name/expected/integration/api_test_suites/svc/svc_suite.json (opens in a new tab)scripts/golden/import/apikey-without-name/expected/stdout.txt (opens in a new tab)scripts/golden/import/apikey-without-name/spec.json (opens in a new tab)scripts/golden/import/auth-preference/args.json (opens in a new tab)scripts/golden/import/auth-preference/expected/exit.txt (opens in a new tab)scripts/golden/import/auth-preference/expected/integration/api_test_suites/svc/svc_api.json (opens in a new tab)scripts/golden/import/auth-preference/expected/integration/api_test_suites/svc/svc_suite.json (opens in a new tab)scripts/golden/import/auth-preference/expected/stdout.txt (opens in a new tab)scripts/golden/import/auth-preference/spec.json (opens in a new tab)scripts/golden/import/crud-write-skips/args.json (opens in a new tab)scripts/golden/import/crud-write-skips/expected/exit.txt (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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
/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-integrationOther plugins' skills for the same job