RU

    Repair Usage Metering Drift

    by Mariusz Wrzeszczynski

    1

    Repair SaaS billing where usage events are lost, duplicated, delayed, or assigned to the wrong customer or billing period.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    See it in action

    You say

    Check our billing pipeline: customers are complaining about double charges for API calls when their worker retries a request. Can you add deduplication?

    Your agent does

    I found the issue in the /usage endpoint where it lacks an idempotency key. I added a 'provider_event_id' column to the ledger, updated the ingestion logic to check for existing IDs, and added a migration and unit tests for duplicate events.

    What you get

    Eliminate double-billing by adding idempotent event trackingRecover missing revenue from lost or delayed usage eventsFix usage misattribution across customer tenants or periodsAutomate usage reconciliation between your app and Stripe or Lago

    About this skill

    Repair SaaS billing where usage events are lost, duplicated, delayed, or assigned to the wrong customer or billing period.

    This skill traces metering from event creation to invoice totals. It adds stable event identity, deduplication, late-arrival rules, correction records, reconciliation, and boundary tests.

    ✔ Stop double-counted usage ✔ Recover missing events ✔ Protect billing periods ✔ Verify invoice totals

    Ideal for SaaS, APIs, AI platforms, storage, and usage-based billing.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Creator

    Mariusz Wrzeszczynski
    Mariusz Wrzeszczynski

    109 skills on Agensi

    Frequently Asked Questions

    Browse More Skills