api-testing
Skill3 starsChanged 4 months agoMITView on GitHub
Use when testing APIs or designing API test strategies — contract testing, REST/GraphQL testing, and integration testing. Triggers on "test API", "contract testing", "integration test", "API 测试", "接口测试", "契约测试".
17 other projects use a version of this.
Adopted by
Most recently taken up by
- HACK-WU/skillstheir own version, first seen Sep 23, 2026
- lintangknitto/agent-skillstheir own version, first seen Sep 23, 2026
- Strategic-Automation/violintheir own version, first seen Sep 22, 2026
- fishzjp/qa-skillstheir own version, first seen Sep 7, 2026
- idavidov13/agentic-playwrighttheir own version, first seen Aug 13, 2026
- tuanductran/tester-skillstheir own version, first seen Aug 1, 2026
Used with
Projects with it also use visual-testing, mobile-testing and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
petrkindlmannSkillvisual-testing
Implement visual regression testing with Playwright screenshots, Chromatic, Percy, and Argos CI. Covers baseline management, diff threshold tuning, dynamic content masking, responsive viewport testing, and review/approval workflows. Use when: "visual test," "screenshot," "visual regression," "pixel diff," "snapshot diff," "update baselines," "Chromatic," "percy snapshot," "argos screenshot." Not for: bulk baseline regeneration after a redesign broke many tests — use selector-drift-recovery; cross-browser rendering matrices — use cross-browser-testing; general Playwright test structure — use playwright-automation. Related: playwright-automation, ci-cd-integration, cross-browser-testing.
Also in 3 projects that use this
petrkindlmannSkillmobile-testing
Test native, React Native, hybrid, and Flutter mobile apps with Appium 3.x, Detox, Maestro, and Patrol. Covers device farm setup (BrowserStack, Sauce Labs), gesture simulation, deep link and cold-start testing, push notifications, biometric (Face ID) auth, offline/poor-network simulation, and iOS/Android permission dialog handling. Use when: "mobile test," "Appium," "Detox," "Maestro," "Patrol," "Flutter test," "iOS test," "Android test," "device farm," "deep link," "biometric," "Face ID," "permission dialog," "React Native test." Not for: device/browser matrix strategy in the abstract — use cross-browser-testing; app startup/memory/battery profiling depth — use performance-testing; mobile screenshot diffing — use visual-testing. Related: ci-cd-integration, cross-browser-testing, performance-testing, test-data-management, test-reliability.
Also in 3 projects that use this
belokonmSkillperformance-testing
Performance testing specialist for load testing, stress testing, and performance optimization across applications and infrastructure
Also in 3 projects that use this
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- fugazi/test-automation-skills-agents★ 245same name
- idavidov13/agentic-playwright★ 222same name
- petrkindlmann/qa-skills★ 160same name
- Strategic-Automation/violin★ 145same name
- fishzjp/qa-skills★ 35same name
- mindfortai/security-skills★ 16same name
- kevinnft/ai-agent-skills★ 13same name
- vikisingh23/neuraforge-ai★ 4same name
- ironbee-ai/ironbee-devtools-skills★ 3same name
- HACK-WU/skills★ 2same name
7 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormSkill
- oss-strategySkill
- specSkill
- researchSkill
- api-designSkill
- architectureSkill
- codebase-designSkill
- design-researchSkill
- domain-modelingSkill
- frontend-designSkill
- imagegenSkill
- image-to-codeSkill
- prompt-engineeringSkill
- prototypeSkill
- schema-designSkill
- auth-implementationSkill
- breakdownSkill
- context-engineeringSkill
- error-handlingSkill
- i18nSkill
- implementSkill
- multi-agent-orchestrationSkill
- cost-optimizationSkill
- performanceSkill
- refactoringSkill
- simplifySkill
- e2e-testingSkill
- load-testingSkill
- tddSkill
- test-generationSkill
- a11y-reviewSkill
- code-reviewSkill
- debuggingSkill
- lintingSkill
- security-reviewSkill
- ci-cdSkill
- deprecation-migrationSkill
- git-workflowSkill
- oss-polishSkill
- shippingSkill
- documentation-auditSkill
- handoffSkill
- incident-responseSkill
- observabilitySkill
- purity-auditSkill
- skill-authoringSkill
- using-skillsSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Test from the consumer perspective using schema validation, not exact values.
- Distinctive: line 55
Test the full resource lifecycle — CREATE, READ, UPDATE, DELETE — as a sequence that proves each operation and its side effects.
- Distinctive: line 75
Test from consumer perspective
- Distinctive: line 76
Use schema validation (not exact field values)
- Distinctive: line 77
Test error scenarios extensively — not just happy paths
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
API Testing Patterns
API testing verifies contracts and behavior from the consumer perspective — correct responses, proper error handling, acceptable performance. Focus on what matters to consumers, not implementation details.
When to use
- Testing REST or GraphQL APIs
- Validating microservice contracts
- Designing API test strategies
- Preventing breaking API changes
- Triggers on "test API", "contract testing", "integration test", "API 测试", "接口测试", "契约测试"
Not for: generating test scaffolds for non-API code (use test-generation); browser/E2E flows (use e2e-testing); the TDD loop itself (use tdd).
Steps
1. Identify the testing level
| Level | Purpose | Dependencies | Speed |
| Contract | Provider-consumer agreement | None | Fast |
| Component | API in isolation | Mocked external deps | Fast |
| Integration | Real dependencies | Database, services | Slower |
2. Test the contract, not implementation
Test from the consumer perspective using schema validation, not exact values. Consumers depend on the contract (status codes, response shape); they don't care about internal structure.
Pattern — Consumer-Driven Contracts: schema validation against the contract (status codes, response shape), not exact values — code example in references/templates/api-test-scaffold.md. Use Pact or Spring Cloud Contract for consumer-driven contract testing in microservice architectures.
3. Cover critical scenarios
| Scenario | Must test | Example |
| Auth | 401/403 handling | Expired token, wrong user, cross-user access |
| Input | 400 validation | Missing fields, wrong types, out-of-range values |
| Errors | 500 graceful handling | DB down, timeout, upstream failure |
| Idempotency | Duplicate prevention | Same idempotency key → same result |
| Concurrency | Race conditions | Parallel checkout on shared inventory |
Idempotency: send the same request twice with an Idempotency-Key header;
both responses must return the same orderId (no duplicate created).
4. REST CRUD pattern
Test the full resource lifecycle — CREATE, READ, UPDATE, DELETE — as a sequence that proves each operation and its side effects. Code example in references/templates/api-test-scaffold.md.
5. GraphQL-specific checks
- Query validation: reject invalid queries, enforce typed schemas
- Complexity limits: prevent abusive nested queries (depth/complexity analysis)
- Introspection: test against staging schema (production may disable it)
6. Automate and monitor
Automate all API tests in CI/CD with schema validation. Version API tests alongside the API to prevent breaking changes. Monitor production APIs for contract drift between deployed behavior and the spec.
Best practices
Do:
- Test from consumer perspective
- Use schema validation (not exact field values)
- Test error scenarios extensively — not just happy paths
- Version API tests with the API
- Mock external services to keep tests fast and deterministic
Avoid:
- Testing implementation, not contract
- Ignoring HTTP semantics (status codes)
- No negative testing
- Asserting on field order or extra fields
- Slow tests (mock external services)
Gotchas
- Tests generated against the documented API must be validated against the running service first — docs and reality drift
- Auth tokens expire between runs — use fixtures with refresh logic
- Rate limiting in CI causes intermittent 429s — add retry with exponential backoff
- Idempotency tests need unique request IDs per run — hardcoded IDs cause false passes on retry
- GraphQL introspection may be disabled in production — test against staging
Output: API test files (contract + integration) under test/ — code, not a report.
Verify
- Contract tests cover every consumer expectation
- Auth: 401 without token, 403 for wrong user, expired token rejected
- Input validation: missing fields, wrong types, out-of-range values → 400
- Error states: 500 graceful, timeout handled
- Idempotency: duplicate request with same key → same result
- REST resources tested across full CRUD lifecycle
- Tests automated in CI with schema validation
References
- ${CLAUDE_PLUGIN_ROOT}/references/engineering-principles.md — discipline every skill shares
- references/templates/api-test-scaffold.md — REST API test scaffold template (Jest/Supertest)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

