api-test-patterns

Official

Write robust API tests with confidence.

Authorlatestaiagents
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a comprehensive framework and examples for writing reliable API tests, ensuring your endpoints function correctly and meet their contract specifications.

Core Features & Use Cases

  • REST API Testing: Comprehensive examples using Playwright for CRUD operations, authentication, and error handling.
  • GraphQL Testing: Demonstrates querying and mutation testing for GraphQL APIs.
  • Contract Testing: Integrates with Pact for consumer-driven contract testing.
  • Checklists & Best Practices: Provides a detailed checklist and actionable best practices for thorough API testing.
  • Use Case: You need to ensure your new user registration API endpoint correctly handles valid inputs, rejects invalid ones, and returns the expected user data upon successful creation.

Quick Start

Use the api-test-patterns skill to generate Playwright tests for a REST API endpoint that creates a new user.

Dependency Matrix

Required Modules

@pact-foundation/pact@playwright/test

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: api-test-patterns
Download link: https://github.com/latestaiagents/agent-skills/archive/main.zip#api-test-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.