Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseOpenClawOpenClaw+21 more

    Repair Money Rounding Bugs

    1

    Repair rounding, floating-point, tax, discount, and total mismatches across existing apps.

    $8.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    Security scanned
    Repair Money Rounding Bugs

    Repair Money Rounding Bugs

    Example session with this skill installed

    The total on our generated invoices is sometimes $0.01 off from the sum of the line items when discounts are applied. Can you fix the rounding logic in the billing service?

    • Read your context and instructions
    • Compiled the repair money rounding

    I inspected billing_service.py and found floating-point math being used for discounts. I established a Monetary Contract using integer minor units, implemented 'Half Even' rounding for line items, and added a remainder allocation check. New tests confirm subtotals now reconcile to $0.00 diff.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Repair floating-point errors in invoice and tax calculations.Standardize multi-currency precision and rounding modes.Reconcile application totals with payment provider requirements.Implement remainder allocation for accurate discount distribution.

    About this skill

    The problem

    Binary floating-point math and inconsistent rounding create "off-by-one-cent" errors in invoices, taxes, and refunds. These small discrepancies lead to failed audits, broken payment provider syncs, and reconciliation nightmares.

    What it does

    • Traces monetary values from input through storage, calculation, and display to find precision loss.
    • Establishes a strict Monetary Contract defining rounding modes, currency scales, and calculation stages.
    • Replaces unsafe arithmetic with integer minor units or exact decimal types.
    • Implements remainder allocation logic to ensure distributed discounts or taxes sum correctly to the total.
    • Runs automated reconciliation tests to verify that stored and displayed totals match exactly.

    Frameworks & tools

    Works with any stack using Read, Edit, and Bash tools. Specifically audits SQL schemas, ORM precision, and payment integrations like Stripe or PayPal.

    Why this beats prompting it yourself

    General LLMs often suggest simple .toFixed(2) hacks that compound rounding errors. This skill enforces a professional financial engineering workflow, distinguishing between rates, quantities, and amounts while ensuring compliance with currency-specific scales.

    Use cases

    • Fixing invoice subtotals that do not sum correctly due to line-item rounding.
    • Standardizing currency conversion logic across multi-currency databases.
    • Repairing "penny-gap" mismatches between your application and payment gateways.
    • Auditing tax calculation logic to handle inclusive and exclusive tax rules.

    Known limitations

    Will not invent tax policies or accounting rules without user evidence. Does not perform destructive migrations on production data without an audit dry-run.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    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 1 month ago

    • Passed all security checks, Safe to install

    Listed1 month ago
    Updated1 month ago

    What's inside

    Frequently Asked Questions