OpenParable
Skip to content
← Back to skills

API Testing

Testing & Quality

API Testing is an Agent Skill for testing & quality published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Comprehensive API testing for REST and GraphQL endpoints with contract validation

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/qa-testing-automation/skills/api-testing/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/api-testing, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

API Testing Skill

Overview

This skill provides expert-level capabilities for API testing, covering REST, GraphQL, authentication flows, schema validation, and contract testing integration.

Capabilities

REST API Testing

  • Execute API tests with Supertest/REST Assured
  • HTTP method testing (GET, POST, PUT, PATCH, DELETE)
  • Header and cookie manipulation
  • File upload/download testing

GraphQL Testing

  • Query and mutation testing
  • Subscription testing
  • Schema introspection validation
  • Variable and fragment handling

Schema Validation

  • Validate OpenAPI/Swagger schemas
  • Response schema validation with Ajv/Joi
  • Generate test cases from API specifications
  • Contract validation

Authentication Testing

  • OAuth 2.0 flow testing
  • JWT token validation
  • API key authentication
  • Session-based authentication

Performance Assertions

  • Response time validation
  • Throughput measurements
  • Rate limiting verification

Contract Testing

  • Consumer contract generation
  • Provider verification
  • Pact integration

Target Processes

  • api-testing.js - API test implementation
  • contract-testing.js - Contract testing workflows
  • security-testing.js - API security testing
  • performance-testing.js - API performance validation

Dependencies

  • supertest - HTTP assertions (Node.js)
  • axios - HTTP client
  • ajv - JSON schema validation
  • graphql-request - GraphQL client

Usage Example

{
  kind: 'skill',
  skill: {
    name: 'api-testing',
    context: {
      action: 'execute-tests',
      baseUrl: 'https://api.example.com',
      specPath: 'openapi.yaml',
      authType: 'bearer',
      validateSchema: true
    }
  }
}

Configuration

The skill can auto-discover API specifications from OpenAPI/Swagger files and generate comprehensive test suites.