api-test-writer
Installation
SKILL.md
API Test Writer
Overview
API tests check the contract clients depend on: status codes, response shape, validation, authorization and side effects. They are faster and more stable than UI tests, so most functional coverage belongs here.
Method
- Inventory the endpoints from routes, controllers or the OpenAPI spec: method, path, auth, request schema, responses.
- Match the project's tooling: existing test framework and HTTP client (Supertest for Node,
httpx/requestswith pytest, REST Assured for Java, Newman for Postman collections). Follow existing test structure. - Write cases per endpoint using the matrix below.
- Control data: create what each test needs through the API or factories, clean up afterwards, use unique values to allow parallel runs.
- Run the suite and confirm each new test fails when the behavior is broken (change an expected value once to check).