Adds API tests that exercise public HTTP behavior against a repository's existing test harness.
- What it does
- This skill guides an agent through writing API tests that exercise endpoints through the public interface using the repository's API or Playwright harness. It covers the requested operations, authorization denials, and contract-shaped responses, using sandbox or local servers from package scripts and cleaning up created resources. It then runs the documented API or e2e command for those tests and points to a docs skill if behavior or commands changed.
- When to use it
- Use it when a repository needs new API or end-to-end tests for HTTP endpoints, especially when existing test harnesses and specs are already in place. It fits work that must avoid production systems and hardcoded secrets.
- Requirements
- Requires an existing repository test harness (API or Playwright), existing test specs or API testing documentation to read, and package scripts that provide sandbox or local servers. No scripts are shipped; it is instructions only.