A skill for your coding agent. It starts with what your product must do, then asks whether the tests actually establish that it works.
Read-only diagnosis first. Changes are a separate request.
01A case in point
Seat Everyone / PR 17A free checkout.A locked seating chart.
A fully discounted checkout could complete without a PaymentIntent. The new ownership flow required one before it would grant access.
We already had a test for this. But its fixture used auth_subject, which selected the old code path. The new flow used organizer_id and wedding_id.
Reading the name was a much faster way to feel reassured than reading the fixture.
The fixture exercised the old path. The product needed the new one.
auth_subjectThe old checkout path
organizer_id + wedding_idThe current ownership path
A valid $0 checkout can have no payment reference.
The new flow required one before it would unlock the chart.
The test name described the right case. The fixture reached different code.
The assertion exercised the old path.
It could not establish that the new ownership flow worked.
metadata: {
auth_subject: "user_tester_no_cost"
},
payment_intent: nullThe fixture’s metadata selected the old code path.
A valid, fully discounted checkout could leave the seating chart locked.
A missing payment reference could block access.
The new flow required a reference this $0 checkout might not have.
const purchaseId =
paymentIntentIdFromEvent(event);
const invalidReference =
!organizerId ||
!planId ||
session.client_reference_id !== planId ||
!purchaseId;The existing fixture never reached this check.
The repaired checks exercise the path the product actually uses.
The right chart unlocks for the right owner.
The new checks establish the ownership outcome on the current path.
expect(await checked.json()).toMatchObject({
unlocked: true,
planId: wedding.planId,
ownerId: wedding.ownerId
});
expect(emails).toBe(1);The email assertion establishes one request, not delivery.
Reconstructed from source excerpts. This is a historical case, not a live test run.
All source excerpts
metadata: {
auth_subject: "user_tester_no_cost"
},
payment_intent: nullconst purchaseId =
paymentIntentIdFromEvent(event);
const invalidReference =
!organizerId ||
!planId ||
session.client_reference_id !== planId ||
!purchaseId;expect(await checked.json()).toMatchObject({
unlocked: true,
planId: wedding.planId,
ownerId: wedding.ownerId
});
expect(emails).toBe(1);Seat Everyone / PR 17. Formatting adapted. The email assertion establishes a request, not delivery.
After repair
The new checks exercise the current path: the right chart unlocks for the right person, repeated notifications create one grant, and the recovery email is requested once.
02The method
Start with what could go wrong.
The skill has your agent identify important product failures before reviewing the tests. Start with the suite and it’s very easy to ask whether you have enough tests for the things you already wrote tests for.
- 01
What’s missing?
Important failures no current check would notice.
- 02
What does it prove?
The actual claim supported by each check.
- 03
What changes next?
Evidence and up to five useful first moves.
03Try it
Give your agent a better question.
Use an agent that can read your repository and the linked skill.
Use Fix My Tests on this repository. Read the skill at: https://github.com/GauravAlbal/fix-my-tests/tree/main/fix-my-tests Start with SKILL.md and follow the required references. Work read-only. My question: Which important product failures could this suite miss, and what should I do first?
Changes are a separate request, made in a small, reviewable batch.
Beyond tests
The assignment is bigger.
Tests are the entry point. Arq is what I’m building to handle the whole assignment: intent, design, implementation, verification, and repair through the coding agents your team already uses.