Corey Agnew
← All projects Tools for my work

Sample bonus automation

A recurring payroll calculation that now runs itself and waits for one approval.

In use · every two weeks65 h / yr back · measured

The itch

Every two weeks, a log of technician samples had to be turned into a bonus payroll tab by hand. Duplicates and odd entries were caught by eye, when someone remembered to look. It was an afternoon of careful, boring work, twenty-six times a year.

What I built

A Claude skill that runs the whole cycle:

  1. Reads the sample tracker directly.
  2. Applies the rules: which samples qualify, how shared credit splits, and who's on the current roster.
  3. Produces the payroll tab for the controller, plus an audit workbook showing exactly why each line is there.
  4. Stops and waits for my approval.
  5. Only then marks the paid rows back in the tracker, so nothing gets paid twice.

How AI helped

Claude connects to the tracker and runs a small calculation engine inside the skill. Nothing is written back until a person says yes. That approval gate is the design, not an afterthought: AI does the first draft, a person approves the result.

The duplicate and outlier checks now run every single time, not just when someone has a spare minute.

What it gave back

2.5 hours every two weeks, 65 hours a year, measured. It's also more accurate: the checks no longer depend on anyone's memory.

What I'd do differently

Handle the roster better. The rules depend on an up-to-date employee list, and anyone not on it is held until it's resolved. I'd pull that list automatically instead of waiting for it to be sent.

Contact me

If something here sparked an idea, or you're building something similar, I'd love to hear about it.

coreyagnew@protonmail.com