api-contract-reviewer
Skill3 starsChanged 2 months agoMITView on GitHub
Behavioral review of Playwright API contract tests in the `qa/` package (`qa/tests/Client/API/**`, `qa/tests/Backoffice/API/**`, `qa/src/api/**`, `qa/src/fixtures/**`) for patterns that cause false positives, silent contract drift, test coupling, secret leaks, or prohibited Backoffice access. API-only: does not check UI locators, waits, or Page Objects. Trigger: "review this API test", "check this API spec", "is this API test correct", "review API spec", "why is this contract test flaky", "code review API test", "check contract test quality", "anti-patterns in this API spec", any `.spec.ts` under `qa/tests/*/API/` shared without explicit instructions.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ralvarezdev/ralvaskillstheir own version, first seen Sep 29, 2026
- conectlens/lenserfighttheir own version, first seen May 28, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- conectlens/lenserfight★ 18same name
- ralvarezdev/ralvaskills★ 2same name
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 repository5 other files it gives its agents.
- api-contract-writerSkill
- playwright-sdet-expertSkill
- pw-pom-generatorSkill
- pw-test-reviewSkill
- qa-shift-leftSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
If the user shares a directory, scan every .spec.ts plus the clients and fixtures they import.
- Very specific: line 42
Walk the catalog: Read references/anti-patterns.md and check each item top-down.
- Distinctive: line 46
Don't fabricate: No finding without a line number and a mechanism.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
API Contract Reviewer
Behavioral review of Playwright API contract tests. Find patterns that cause false positives, silent contract drift, coupling between tests, auth or secret problems, and violations of the Backoffice access rules. Not a style linter: Biome covers formatting and style.
When this skill applies
- "review this API test / spec", "is this contract test correct / flaky / OK?"
- A spec under
qa/tests/Client/API/orqa/tests/Backoffice/API/shared without instructions - A PR diff touching
qa/src/api/**,qa/src/fixtures/**, orqa/test-data/**
If the user shares a directory, scan every .spec.ts plus the clients and fixtures they import.
Context you need before reviewing
- Envelopes: the legacy envelope service returns
DomainApiResponse(business failures can be HTTP 200 with a non-successResponseCode); the games service/the claim service/the availability service return bare JSON and RFC 7807 ProblemDetails with the code intitle. - Client calls need
gate-auth(fromAPI_GATE_USER/API_GATE_PASS) and, for player endpoints, a Bearer token from a player the run registered. - Backoffice: Management API Gateway only.
admin-api.*,UserIdheaders, and BO user ids are prohibited. Mutating tests run on dev/qa only. - The writer conventions live in
qa/.claude/skills/api-contract-writer/. When a finding depends on a convention, cite the reference file.
Workflow
- Read the code. Open every file in scope, plus the fixtures and clients it imports.
- Walk the catalog. Read
references/anti-patterns.mdand check each item top-down. Record file path, line number, and snippet. - Write the report using
references/output-template.md. Skip empty sections. One sentence per "why", explaining the mechanism. - Don't fabricate. No finding without a line number and a mechanism. Always include "What's good".
Philosophy
The author is a senior QA engineer. Every finding explains how the pattern breaks at runtime: which false pass, which leak, which flake. Money, bonuses, and balances are in scope for this product, so treat silent false passes on those as Critical.
References
references/anti-patterns.md— catalog Critical → Low, with mechanism and fixreferences/output-template.md— report structure
Open both at the start of every review.
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.

