More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Repair Money Rounding Bugs

    1

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

    $1

    Secure checkout via Stripe

    Money-back 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.

    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.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Finance & Accounting.

    Does not fetch live exchange rates. Avoids creating real charges or refunds. Requires existing project context to determine specific rounding policies.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 3 months ago

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Permissions are limited to the active local workspace and are used to inspect user-supplied or local workspace files; create or modify bounded local fixes, tests, documentation, or review artifacts; run repository-supported local tests, checks, builds, or parsing commands. The skill package does not require bundled credentials, unrestricted external network access, or automatic production changes.

    Listed3 months ago
    Updated9 days ago

    What's inside

    Frequently Asked Questions

    This skill uses a rigorous financial engineering workflow to replace unstable floating-point math with integer minor units or exact decimals, while implementing strict remainder allocation to ensure line items always sum to the total.

    The skill is framework-agnostic and functions in any environment where the agent has Read, Edit, and Bash access to audit SQL schemas, ORM configurations, and calculation logic.

    No, this skill is designed with a safety-first approach; it identifies bugs and provides audited fixes or dry-run migrations for you to review before any production data is touched.

    Yes, the skill includes specialized logic for standardizing currency scales and conversion rounding to resolve 'penny-gap' mismatches between your internal database and external providers like Stripe.

    You receive the full operational logic for the 'Money Rounding Bug Repair' skill, including automated reconciliation test templates and the Monetary Contract enforcement suite for your agent.

    New in Finance & Accounting