Babysitter API Testing
Comprehensive API testing for REST and GraphQL endpoints with contract validation
install
source · Clone the upstream repo
git clone https://github.com/a5c-ai/babysitter
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/a5c-ai/babysitter "$T" && mkdir -p ~/.claude/skills && cp -r "$T/library/specializations/qa-testing-automation/skills/api-testing" ~/.claude/skills/a5c-ai-babysitter-api-testing && rm -rf "$T"
manifest:
library/specializations/qa-testing-automation/skills/api-testing/SKILL.mdsource content
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 test implementationapi-testing.js
- Contract testing workflowscontract-testing.js
- API security testingsecurity-testing.js
- API performance validationperformance-testing.js
Dependencies
- HTTP assertions (Node.js)supertest
- HTTP clientaxios
- JSON schema validationajv
- GraphQL clientgraphql-request
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.