Skip to content
Gaurav Albal
← Back to the work

Free agent skill

Fix My Tests

Which important failures could your tests miss?

A skill for your coding agent. It starts with what your product must do, then asks whether the tests actually establish that it works.

Try it on your repository

Read-only diagnosis first. Changes are a separate request.

01A case in point

Seat Everyone / PR 17

A 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.
One checkout. Two different paths.
Seat Everyone / PR 17Before repair

The fixture exercised the old path. The product needed the new one.

What the fixture exercisedauth_subject

The old checkout path

What needed to workorganizer_id + wedding_id

The current ownership path

A valid $0 checkout can have no payment reference.

The new flow required one before it would unlock the chart.

Reconstructed from source excerpts. This is a historical case, not a live test run.

All source excerpts

Existing fixture

billing-webhook.vitest.ts
metadata: {
  auth_subject: "user_tester_no_cost"
},
payment_intent: null

New flow, before repair

ownership-payments.ts
const purchaseId =
  paymentIntentIdFromEvent(event);

const invalidReference =
  !organizerId ||
  !planId ||
  session.client_reference_id !== planId ||
  !purchaseId;

Checks added for the current path

ownership-payments.vitest.ts
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.

  1. 01

    What’s missing?

    Important failures no current check would notice.

  2. 02

    What does it prove?

    The actual claim supported by each check.

  3. 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.

Paste into your coding agent
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.