← Back to list

qa-api-testing-contracts
by vasilyu1983
⭐ 25🍴 6📅 Jan 23, 2026
SKILL.md
name: qa-api-testing-contracts description: API testing and contract validation. Design and execute schema validation, contract tests, negative testing, and change safety for REST, GraphQL, and gRPC APIs. Use when you need API test plans, contract testing, or CI quality gates.
QA API Testing and Contracts
When to Use This Skill
Use this skill when you need to:
- Design API test plans for REST, GraphQL, or gRPC services.
- Implement contract testing with Pact or consumer-driven workflows.
- Set up schema validation in CI/CD pipelines.
- Review API changes for backward compatibility.
- Define quality gates for API releases.
Scope
- Validate API schemas and enforce contracts.
- Design functional, negative, and edge case tests.
- Plan mocking and consumer driven contracts.
- Define CI gates and release safety checks.
- Align API tests with SLOs and error budgets.
Ask For Inputs
- API type (REST, GraphQL, gRPC) and schemas (OpenAPI, SDL, proto).
- Environments and authentication methods.
- Critical endpoints and business flows.
- Data constraints, idempotency, and rate limits.
- Change cadence and backward compatibility policy.
- Current test tooling and CI pipeline.
Workflow
- Confirm API surface and schema sources.
- Establish contract rules (breaking vs non breaking).
- Generate schema validation tests.
- Create functional tests for happy paths.
- Add negative, boundary, and auth tests.
- Add consumer contract tests or mocks as needed.
- Define CI gates, reporting, and rollback triggers.
Outputs
- API test plan and coverage map by endpoint.
- Contract validation suite and schema checks.
- Negative and security test list.
- Mock and test data strategy.
- CI quality gates and release checklist.
Quality Checks
- Fail fast on schema violations and breaking changes.
- Ensure tests are deterministic and data stable.
- Separate functional tests from load or resilience tests.
- Keep contract tests aligned with versioning policy.
Templates
assets/api-test-plan.mdfor coverage planning.assets/contract-change-checklist.mdfor breaking change review.assets/schema-validation-matrix.mdfor schema tooling and CI stages.
AI-Powered Contract Testing (2026)
Modern tools automate contract test generation and maintenance:
- PactFlow AI Code Review: Inspects Pact tests and suggests improvements across 7+ languages.
- Keploy: Generates tests from live API traffic with zero code.
- Postman Postbot: AI assistant for test generation from request/response analysis.
- Specmatic: Converts OpenAPI/GraphQL specs into executable contracts instantly.
- Bi-Directional Contract Testing: Combines provider OpenAPI specs with consumer contracts for simplified workflows.
See references/ai-contract-testing.md for setup and decision matrix.
Resources
references/contract-testing-patterns.mdfor change safety and CDC patterns.references/ai-contract-testing.mdfor AI-powered testing tools and workflows.
Related Skills
- Use dev-api-design for API design decisions.
- Use qa-testing-strategy for overall testing strategy.
- Use qa-resilience for chaos and reliability testing.
- Use software-security-appsec for API security review.
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon