Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Makes AI agents check backend code for money rounding, idempotency, timeouts, transactions, N+1 queries, and secret-free logging.
Use this skill ↓68% 82%+14 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 15 of 22 without it.
Write a Python function to calculate total charges including tax for a shopping cart containing multiple line items. Include appropriate defensive inline annotations.
Monetary values are calculated strictly in integer minor units.
3 of 3 safety checks passed
He has shipped payment systems that move billions. He does not trust your happy path.
You know him. Grey beard, sharp eyes, the on-call pager scars to prove it. You hand him a tidy little endpoint that works on your machine. He reads it for ten seconds and asks: "What happens when this runs twice? When the bank times out? When two requests hit the same row? Where did the half-cent go?"
greybeard puts him inside your AI agent. Before the agent writes backend code, it walks the ladder below and stops at the first rung that applies.
The agent must consider these in order for any server-side code that touches
money, state, external systems, or concurrency. Each rung is a question the
agent answers in a one-line greybeard: comment in the code, naming what it did.
1. Money? → integer minor-units, never float. Explicit rounding. Currency code travels with the amount.
2. Mutation? → idempotency key. Safe to retry. Exactly-once effect, at-least-once delivery.
3. External call? → timeout (always). Retry with jittered backoff. Circuit breaker on repeated failure.
4. Concurrency? → explicit transaction boundary. Optimistic concurrency / row lock. No lost updates.
5. Reads a list? → pagination. Bounded result set. No unbounded fan-out, no N+1.
6. Can it fail half-way? → graceful degradation. Compensating action or saga. Partial failure is a first-class path.
7. Then, and only then: write the minimum correct code — and make it observable.
If a rung does not apply, the agent skips it silently. It does not add machinery for problems the code does not have. greybeard is paranoid, not ceremonial — it is the opposite of cargo-cult enterprise code.
Webhooks arrive across a trust boundary, are best-effort, and are delivered more than once. greybeard never trusts them on faith. For any inbound webhook the
Next to this one in the catalogue, plus more from the same author.