Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
laurigates avatar

Configure Api Tests

  • 52 installs
  • 49 repo stars
  • Updated August 4, 2026
  • laurigates/claude-plugins

Helps with testing & qa tasks.

About

configure-api-tests is a Claude Code skill for testing & qa. It helps solo builders move faster with AI-assisted development.

  • configure-api-tests
  • Testing & QA
  • AI-coding skill

Configure Api Tests by the numbers

  • 52 all-time installs (skills.sh)
  • Ranked #1,213 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/laurigates/claude-plugins --skill configure-api-tests

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs52
repo stars49
Last updatedAugust 4, 2026
Repositorylaurigates/claude-plugins

What it does

Helps with testing & qa tasks.

Files

SKILL.mdMarkdownGitHub ↗

/configure:api-tests

Check and configure API contract testing infrastructure for validating API contracts, schemas, and consumer-provider agreements.

When to Use This Skill

Use this skill when...Use another approach when...
Setting up Pact consumer/provider contract testsWriting individual unit tests (/configure:tests)
Configuring OpenAPI request/response validationValidating a single API endpoint manually
Adding JSON Schema or Zod schema testingChecking general test coverage (/configure:coverage)
Detecting breaking API changes in CIReviewing API design decisions (code-review agent)
Auditing API testing compliance across a projectConfiguring general CI/CD workflows (/configure:workflows)

Context

  • Project root: !pwd
  • Package files: !find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' \)
  • Pact deps: !find . -maxdepth 1 \( -name package.json -o -name pyproject.toml \) -exec grep -l 'pact' {} +
  • OpenAPI spec: !find . -maxdepth 1 \( -name 'openapi.yaml' -o -name 'openapi.json' -o -name 'swagger.json' \)
  • Pact dir: !find . -maxdepth 1 -type d -name 'pacts'
  • Contract tests: !find tests -maxdepth 2 -type d -name 'contract'
  • Project standards: !find . -maxdepth 1 -name '.project-standards.yaml'

Parameters

Parse from command arguments:

  • --check-only: Report compliance status without modifications (CI/CD mode)
  • --fix: Apply fixes automatically without prompting
  • --type <pact|openapi|schema>: Focus on specific type

API Testing Types:

TypeUse Case
PactMicroservices, multiple consumers, breaking change detection
OpenAPIAPI-first development, documentation-driven testing
SchemaSimple validation, GraphQL APIs, single service

Execution

Execute this API testing compliance check:

Step 1: Detect existing API testing infrastructure

Check for these indicators:

IndicatorComponentStatus
pact in dependenciesPact contract testingInstalled
openapi.yaml or swagger.jsonOpenAPI specificationPresent
@apidevtools/swagger-parserOpenAPI validationConfigured
ajv in dependenciesJSON Schema validationConfigured
pacts/ directoryPact contractsPresent

Step 2: Analyze current state

For each detected component, check completeness:

Contract Testing (Pact):

  • [ ] @pact-foundation/pact installed (JS) or pact-python (Python)
  • [ ] Consumer tests defined
  • [ ] Provider verification configured
  • [ ] Pact Broker or PactFlow configured (optional)
  • [ ] CI/CD pipeline integration

OpenAPI Validation:

  • [ ] OpenAPI specification file exists
  • [ ] Request validation middleware configured
  • [ ] Response validation in tests
  • [ ] Schema auto-generation configured
  • [ ] Breaking change detection

Schema Testing:

  • [ ] JSON Schema definitions exist
  • [ ] ajv or similar validator installed
  • [ ] Response validation helpers
  • [ ] Schema versioning strategy

Step 3: Generate compliance report

Print a formatted compliance report:

API Testing Compliance Report
==============================
Project: [name]
API Type: [REST | GraphQL | gRPC]

Contract Testing (Pact):
  @pact-foundation/pact    package.json               [INSTALLED | MISSING]
  Consumer tests           tests/contract/consumer/   [FOUND | NONE]
  Provider tests           tests/contract/provider/   [FOUND | NONE]
  Pact Broker              CI configuration           [CONFIGURED | OPTIONAL]
  can-i-deploy             CI gate                    [CONFIGURED | OPTIONAL]

OpenAPI Validation:
  OpenAPI spec             openapi.yaml               [EXISTS | MISSING]
  Spec version             OpenAPI 3.1                [CURRENT | OUTDATED]
  Request validation       middleware                 [CONFIGURED | MISSING]
  Response validation      test helpers               [CONFIGURED | MISSING]
  Breaking change CI       oasdiff                    [CONFIGURED | OPTIONAL]

Schema Testing:
  JSON Schemas             schemas/                   [EXISTS | N/A]
  Schema validator         ajv/zod                    [INSTALLED | MISSING]
  Response validation      test helpers               [CONFIGURED | MISSING]

Overall: [X issues found]

Recommendations:
  - Add Pact consumer tests for service dependencies
  - Configure OpenAPI response validation in tests
  - Add breaking change detection to CI

If --check-only, stop here.

Step 4: Configure API testing (if --fix or user confirms)

Apply fixes based on detected project type. Use templates from REFERENCE.md for:

1. Pact Contract Testing - Install dependencies and create consumer/provider test files 2. OpenAPI Validation - Install validator and create test helpers 3. Schema Testing with Zod - Install Zod and create schema definitions 4. Breaking Change Detection - Install oasdiff and add CI check

For JavaScript/TypeScript projects, install with bun add --dev. For Python, install with uv add --group dev.

Step 5: Configure CI/CD integration

Create .github/workflows/api-tests.yml with jobs for:

  • Consumer contract tests
  • Provider verification (with service containers if needed)
  • OpenAPI spec validation
  • Breaking change detection on PRs

Add npm/bun scripts to package.json for local testing. Use workflow templates from REFERENCE.md.

Step 6: Update standards tracking

Update .project-standards.yaml:

standards_version: "2025.1"
last_configured: "[timestamp]"
components:
  api_tests: "2025.1"
  api_tests_contract: "[pact|none]"
  api_tests_openapi: true
  api_tests_schema: "[zod|ajv|none]"
  api_tests_breaking_change_ci: true

Step 7: Print final report

Print a summary of all changes applied, scripts added, and next steps for the user to verify the configuration.

For detailed templates and code examples, see REFERENCE.md.

Agentic Optimizations

ContextCommand
Quick compliance check/configure:api-tests --check-only
Auto-fix all issues/configure:api-tests --fix
Pact contracts only/configure:api-tests --fix --type pact
OpenAPI validation only/configure:api-tests --fix --type openapi
Schema testing only/configure:api-tests --fix --type schema

Flags

FlagDescription
--check-onlyReport status without offering fixes
--fixApply all fixes automatically without prompting
--type <type>Focus on specific type (pact, openapi, schema)

Examples

# Check compliance and offer fixes
/configure:api-tests

# Check only, no modifications
/configure:api-tests --check-only

# Auto-fix all issues
/configure:api-tests --fix

# Configure Pact only
/configure:api-tests --fix --type pact

# Configure OpenAPI validation only
/configure:api-tests --fix --type openapi

Error Handling

  • No OpenAPI spec found: Offer to create template
  • Pact version mismatch: Suggest upgrade path
  • Schema validation fails: Report specific errors
  • Pact Broker not configured: Provide setup instructions

See Also

  • /configure:tests - Unit testing configuration
  • /configure:integration-tests - Integration testing
  • /configure:all - Run all compliance checks
  • Pact documentation: https://docs.pact.io
  • OpenAPI specification: https://swagger.io/specification
  • Zod documentation: https://zod.dev

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.