Overview
This skill empowers Claude to automatically generate and execute comprehensive API tests for REST and GraphQL endpoints. It ensures thorough validation, covers various authentication methods, and performs contract testing against OpenAPI specifications.
How It Works
- Analyze API Definition: The skill parses the provided API definition (e.g., OpenAPI/Swagger file, code files) or infers it from usage.
- Generate Test Cases: Based on the API definition, it creates test cases covering different scenarios, including CRUD operations, authentication, and error handling.
- Execute Tests and Validate Responses: The skill executes the generated tests and validates the responses against expected status codes, headers, and body structures.
When to Use This Skill
This skill activates when you need to:
- Generate comprehensive API tests for REST endpoints.
- Create GraphQL API tests covering queries, mutations, and subscriptions.
- Validate API contracts against OpenAPI/Swagger specifications.
- Test API authentication flows, including login, refresh, and protected endpoints.
Examples
Example 1: Generating REST API Tests
User request: "Generate API tests for the user management endpoints in src/routes/users.js"
The skill will:
- Analyze the user management endpoints in the specified file.
- Generate a test suite covering CRUD operations (create, read, update, delete) for user resources.
Example 2: Creating GraphQL API Tests
User request: "Create GraphQL API tests for the product queries and mutations"
The skill will:
- Analyze the product queries and mutations in the GraphQL schema.
- Generate tests to verify the functionality and data integrity of these operations.
Best Practices
- API Definition: Provide a clear and accurate API definition (e.g., OpenAPI/Swagger file) for optimal test generation.
- Authentication Details: Specify the authentication method and credentials required to access the API endpoints.
- Contextual Information: Provide context about the API's purpose and usage to guide the test generation process.
Integration
This skill can integrate with other plugins to retrieve API definitions from various sources, such as code repositories or API gateways. It can also be combined with reporting tools to generate detailed test reports and dashboards.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: jeremylongshore-claude-code-plugins-plus-skills-api-test-aut3description: Overview4---56## Overview78This skill empowers Claude to automatically generate and execute comprehensive API tests for REST and GraphQL endpoints. It ensures thorough validation, covers various authentication methods, and performs contract testing against OpenAPI specifications.910## How It Works11121. **Analyze API Definition**: The skill parses the provided API definition (e.g., OpenAPI/Swagger file, code files) or infers it from usage.132. **Generate Test Cases**: Based on the API definition, it creates test cases covering different scenarios, including CRUD operations, authentication, and error handling.143. **Execute Tests and Validate Responses**: The skill executes the generated tests and validates the responses against expected status codes, headers, and body structures.1516## When to Use This Skill1718This skill activates when you need to:19- Generate comprehensive API tests for REST endpoints.20- Create GraphQL API tests covering queries, mutations, and subscriptions.21- Validate API contracts against OpenAPI/Swagger specifications.22- Test API authentication flows, including login, refresh, and protected endpoints.2324## Examples2526### Example 1: Generating REST API Tests2728User request: "Generate API tests for the user management endpoints in src/routes/users.js"2930The skill will:311. Analyze the user management endpoints in the specified file.322. Generate a test suite covering CRUD operations (create, read, update, delete) for user resources.3334### Example 2: Creating GraphQL API Tests3536User request: "Create GraphQL API tests for the product queries and mutations"3738The skill will:391. Analyze the product queries and mutations in the GraphQL schema.402. Generate tests to verify the functionality and data integrity of these operations.4142## Best Practices4344- **API Definition**: Provide a clear and accurate API definition (e.g., OpenAPI/Swagger file) for optimal test generation.45- **Authentication Details**: Specify the authentication method and credentials required to access the API endpoints.46- **Contextual Information**: Provide context about the API's purpose and usage to guide the test generation process.4748## Integration4950This skill can integrate with other plugins to retrieve API definitions from various sources, such as code repositories or API gateways. It can also be combined with reporting tools to generate detailed test reports and dashboards.5152---53> Converted and distributed by [TomeVault](https://tomevault.io/claim/jeremylongshore) — claim your Tome and manage your conversions.54<!-- tomevault:4.0:skill_md:2026-04-11 -->