Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    API Contract Tester

    1

    This skill operates in two high-impact modes: GENERATE: Builds a complete test repository from a spec or description.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    API Contract Tester

    API Contract Tester

    Example session with this skill installed

    Generate tests from our OpenAPI 3.1 spec for an Express + Postgres orders API: POST /orders (body: productId UUID, quantity integer 1 to 100) and GET /orders/{id}, both behind bearer auth, returning 201, 200, 400, 401 and 404. We use Jest + supertest.

    • Read your context and instructions
    • Compiled the api contract tester

    Test suite and coverage matrix for 2 operations, 16 cases across all five test types.

    Coverage matrix

    IDEndpointTypeCaseExpect
    H1POST /ordersHappyValid body, quantity 5201, matches schema
    H2GET /orders/{id}HappyExisting id200, matches schema
    E1POSTEdgequantity 1201
    E2POSTEdgequantity 100201
    N1POSTNegativequantity 0400
    N2POSTNegativequantity 101400
    N3POSTNegativequantity "5" (string)400
    N4POSTNegativeproductId not a UUID400
    N5POSTNegativeMissing productId400
    N6GETNegativeUnknown UUID404
    N7GETNegativeid "abc"400
    C1BothContractResponse headers and body match specPass
    S1BothSecurityNo token401
    S2BothSecurityMalformed token401
    S3POSTSecuritySQL string in productId400
    S4GETSecurityOther user's order id404

    Sample tests

    test('N2 rejects quantity above 100', async () => {
      const res = await request(app).post('/orders')
        .set('Authorization', `Bearer ${token}`)
        .send({ productId: uuid(), quantity: 101 });
      expect(res.status).toBe(400);
    });
    

    Next steps

    • Confirm S4: the spec does not say whether cross-user reads return 403 or 404.
    • Add jest-openapi so C1 validates every response.
    • Seed a fixed order in a test database for H2.

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

    About this skill

    Streamline Your API Reliability

    The API Contract Tester is a specialized skill for developers and QA engineers who need to move beyond basic smoke tests. It transforms OpenAPI/Swagger specifications into exhaustive, framework-ready test suites that cover the "dark corners" of your API—validation logic, authz boundaries, and schema conformance.

    What it does

    This skill operates in two high-impact modes:

    • GENERATE: Builds a complete test repository from a spec or description. It goes deep, creating tests for happy paths, negative input validation, schema strictness, authentication/authorization, and defensive security cases.
    • AUDIT: Analyzes your existing test suite against your contract to find "silent killers"—untested status codes, response bodies that aren't validated against schemas, and missing edge cases that lead to production outages.

    Supported Tools & Frameworks

    The skill adapts to your stack, generating idiomatic code for frameworks like Jest/Supertest, Pytest/HTTPX, Playwright API, RestAssured, Vitest, and more. It focuses on REST/JSON architectures where contract drift is the primary risk.

    Why use this skill?

    Manual test writing often misses the boring but critical negative cases. This skill automates the creation of 4xx and 5xx test scenarios, ensures every documented schema constraint is actually checked, and identifies IDOR vulnerabilities. The output is a runnable, professional-grade test suite with a coverage matrix that maps every endpoint and status code to a specific test ID.

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

    • Does not support gRPC or GraphQL protocols.
    • Cannot perform live load or performance stress testing.
    • Requires a defined schema or prose description to generate tests.

    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 5 months ago

    Permissions

    No special permissions declared or detected

    Listed5 months ago
    Updated29 days ago

    What's inside

    Frequently Asked Questions

    It takes your OpenAPI/Swagger specification and automatically generates a comprehensive test suite (Jest, Pytest, etc.) that validates happy paths, schema constraints, and edge cases to prevent breaking changes and contract drift.

    The skill produces idiomatic code for industry-standard frameworks including Jest/Supertest, Pytest/HTTPX, Playwright API, and RestAssured, ensuring the tests fit directly into your existing CI/CD pipeline.

    Unlike basic tools, this skill performs deep schema validation and generates 'defensive' tests for edge cases like invalid headers, boundary value violations, and authorization logic that are often missed during manual testing.

    Simply provide your OpenAPI JSON/YAML file or a URL to your documentation; the skill will then walk you through a brief configuration process to select your preferred framework and testing depth.

    Yes, the 'Audit' mode allows you to compare existing test files against your specification to generate a coverage matrix and identify exactly which endpoints or status codes are currently untested.

    Your purchase includes the full API Contract Tester skill, templates for all supported frameworks, and any future logic updates to ensure compatibility with evolving OpenAPI standards.

    New in Testing & Debugging