More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Stop AI Hallucinated API Calls With OpenAPI Spec Checks

    1

    Calls whose URL cannot be worked out are listed as skipped for manual review rather than guessed.

    $19

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Stop AI Hallucinated API Calls With OpenAPI Spec Checks

    Stop AI Hallucinated API Calls With OpenAPI Spec Checks

    Example session with this skill installed

    Check the API client code in src/ against openapi.yaml and list every call that does not match the spec, with file and line. Then compare openapi_v1.yaml with openapi_v2.yaml and tell me which operations were removed or now need new required fields.

    • Read your context and instructions
    • Compiled the stop ai hallucinated

    Summary

    The audit scanned 1 client file, checked 4 calls against the OpenAPI 3.0.3 spec (4 operations), skipped 1 call whose URL is built at runtime, and reported 5 findings: 2 method mismatches, 1 missing required body field, 1 missing auth header and 1 missing timeout. Status: FAIL.

    Findings

    SpecAudit: sample_openapi_v3.yaml (OpenAPI 3.0.3, ops=4) vs sample_client.py | status=FAIL (findings=5)
    Findings:
    - [method-mismatch] sample_client.py:14: POST /v1/invoices/{id} is not defined (allowed: GET).
    - [method-mismatch] sample_client.py:22: PUT /v1/customers/{id} is not defined (allowed: GET, PATCH).
    - [missing-required-param-or-body] sample_client.py:28: POST /v1/invoices missing required JSON body field 'customer_id'.
    - [missing-auth-header] sample_client.py:34: GET /v1/invoices/42 requires 'bearerAuth' Authorization header.
    - [missing-timeout] sample_client.py:34: GET call has no explicit timeout parameter.
    Summary: 1 file scanned, 4 calls checked, 1 dynamic skipped, 5 findings (method-mismatch: 2, missing-auth-header: 1, missing-required-param-or-body: 1, missing-timeout: 1)
    

    Next steps

    1. Fix the two calls that use a method the spec does not define for that path.
    2. Add the missing required body field and the Authorization header, and set an explicit timeout.
    3. Review the skipped dynamic call by hand, then re-run with --strict in CI so any remaining finding fails the build.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Ship AI-generated API clients without guessing which calls the spec actually allows

    AI coding tools write API calls that look right and still hit a path that does not exist, use the wrong HTTP method, leave out a required body field or an auth header, or never set a timeout. This skill checks your client code against your own OpenAPI 3.0/3.1 spec (YAML or JSON) so you see those mismatches, with file and line, before runtime.

    What you get back

    • One report per run (text, JSON, CSV or Markdown) listing each finding with its file and line
    • Checks for nonexistent endpoints, mismatched methods, missing required parameters or request-body fields, missing auth headers, missing request timeouts and deprecated operations
    • A v1-to-v2 spec comparison that lists removed operations, newly required parameters or body fields, and newly deprecated operations, and can show which of your calls hit them
    • An offline unittest skeleton generated from the operations your spec declares
    • Strict mode and exit codes you can use in CI

    How it works

    Run one Python command against your spec and your source folder. It reads Python (requests, httpx, urllib) and JavaScript/TypeScript (fetch, axios) calls and uses only Python's standard library. It runs entirely on your machine and does not send your source or spec to any service. Python 3.9 or later is recommended and nothing needs to be installed.

    What is included

    • The audit script and an offline regression test suite
    • Sample spec, sample clients and the expected output so you can try it first
    • SKILL.md so your coding agent can run the audit after it generates or edits a client

    Known limits

    This is a static checker, not a runtime test. Calls whose URL cannot be worked out are listed as skipped for manual review rather than guessed. External $ref files are rejected, not followed. Review findings and skipped calls before treating a clean run as proof of runtime correctness.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    This is a static checker, not a type checker or a runtime test. It resolves same-file string constants, simple URL expressions and configured client base URLs; it does not follow imports or higher-order wrappers, and imported constants are not resolved. Calls whose URL stays unknown are listed as dynamic_skipped for manual review. An OpenAPI path template can match literal route names (for example /pets/{petId} can also match /pets/search), so review those matches when a parameter accepts arbitrary strings. Only local JSON Pointer $ref values are resolved; external $ref files are rejected with exit code 2. The YAML reader handles common maps, lists, scalars and inline arrays; tags such as !env and merge keys such as << return exit code 2. Required-field and auth checks only report evidence visible in the call or simple same-file client defaults, so review findings and skipped calls before treating a clean run as proof of runtime correctness.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed today

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listedtoday

    What's inside

    Frequently Asked Questions

    It compares API calls in your Python, JavaScript or TypeScript client code with your OpenAPI 3.0/3.1 spec and reports nonexistent endpoints, mismatched HTTP methods, missing required parameters or body fields, missing auth headers, missing request timeouts and deprecated operations, each with file and line.

    OpenAPI 3.0.x and 3.1.x specs as JSON or a common YAML subset. It recognizes Python requests, httpx and urllib calls and JavaScript/TypeScript fetch and axios calls.

    No. The audit runs locally with Python's standard library and does not send your source or specification to a service. Nothing needs to be installed; Python 3.9 or later is recommended.

    Yes. Use --format json, csv or markdown for structured output and --strict so the command returns status 1 when there are findings. Status 2 means invalid arguments, unsupported input or an unsafe output path.

    Yes. Pass --spec old.yaml --diff-spec new.yaml to list removed operations, newly required parameters or request body fields, and newly deprecated operations. Add --code to also show your calls to the changed operations.

    New in APIs & Backend