Works with the AI Agents you already use

    Payment & Ledger Pro: scan, reconcile, test

    by Rubbaite T. Hassain

    1

    Find money bugs in code and data: payment-code scan, ledger vs provider reconciliation, double-entry checks, and a ready pytest suite for idempotency, rounding and webhooks.

    $19

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Payment & Ledger Pro: scan, reconcile, test

    Payment & Ledger Pro: scan, reconcile, test

    Example session with this skill installed

    Reconcile last week's ledger export against our Stripe balance export and tell us what does not match.

    • Read your context and instructions
    • Compiled the payment & ledger
    • Generated the data export

    Summary

    6 breaks, including a double-counted charge and a $75.00 payment missing from the ledger. Ledger and provider USD totals differ by

    -51.50 USD.

    Ledger: examples/recon/ledger.csv (8 rows) · Provider: examples/recon/provider.csv (7 rows)

    CurrencyLedger totalProvider totalDifference
    EUR12.50 EUR0.00 EUR12.50 EUR
    JPY1500 JPY1500 JPY0 JPY
    USD153.99 USD205.49 USD-51.50 USD

    Breaks: R5 duplicate in ledger 1, R1 missing in ledger 1, R2 missing at provider 1, R3 amount mismatch 1, R4 currency mismatch 1, R7 bad amount 1

    CodeTransaction idDetail
    R5ch_005appears 2 times
    R1ch_00675.00 USD not in ledger
    R2ch_00915.00 USD not at provider
    R3ch_008ledger 30.00 USD, provider 29.00 USD, difference 1.00 USD
    R4ch_003ledger EUR, provider USD
    R7ch_007line 8: 9.999 has more than 2 decimal place(s) for USD

    Likely causes and fixes

    • R5 ch_005 recorded twice: the webhook handler is not idempotent. Store the event id, and skip events it has already processed.
    • R1 ch_006 missing: a succeeded payment never reached the ledger, most likely a dropped webhook. Add a daily job that reads the provider API, and alert on gaps.
    • R2 ch_009 not at provider: recorded as paid without a confirmed provider event. Mark orders paid only after verification.
    • R3 ch_008 off by 1.00 USD: probably a discount applied after capture. Check where the amount is computed.
    • R4 ch_003: the order was in EUR but charged in USD. Pass the order currency to the provider.
    • R7 9.999 USD: an amount with three decimals was written to the ledger. Store minor units as integers.

    ledger.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

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

    About this skill

    Money bugs rarely crash. They double-charge, lose cents or let a wallet go negative, and you find out from a customer or an auditor. This skill looks for them in your code, checks your data, and adds the tests that keep them out.

    What it does

    • Code scan: money held in floats, float rounding, hard-coded x100, payment calls without idempotency keys, webhooks without signature checks, == signature compares, and UPDATE/DELETE on ledger rows.
    • Reconciliation: reconcile.py matches your ledger against any provider CSV by transaction id. It reports missing, duplicate and mismatched amounts and currencies, with per-currency totals. It uses Decimal arithmetic and ISO 4217 decimals (JPY 0, KWD 3).
    • Ledger invariants: ledger_check.py finds unbalanced entries, single-sided entries, negative postings, overdrawn wallets and mixed-currency entries.
    • Tests: a pytest suite with five adapter functions for idempotent charges, splits that never lose a cent (with a property test), webhook signature rejection and redelivery, and balanced, single-currency entries. Plus a 14-row test plan.

    Read-only: it never calls live payment providers or changes production data.

    Tested

    The sample exports trigger every break type except a provider-side duplicate, and every ledger violation. The clean samples pass. All 11 tests pass against a reference implementation.

    Known limitations

    • Pattern scanning finds common mistakes, not all logic errors. The manual trace with the checklist is part of the review.
    • Reconciliation matches by transaction id. For batched payouts, use the provider's per-transaction export.
    • An engineering review, not a PCI DSS assessment or accounting advice.

    Licence: use in your organisation and in client work; do not resell.

    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 7 days ago

    Software
    Python 3.9+
    Optional
    pytesthypothesis

    Exports contain customer data: keep them local, use only the columns the check needs, and delete them afterwards.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables
    Listed7 days ago

    What's inside

    Frequently Asked Questions

    The free skill scans code. Pro adds ledger-vs-provider reconciliation, double-entry invariant checks, a ready pytest suite and a 14-row test plan.

    Any CSV export. You map the id, amount and currency columns, so Stripe, Adyen, PayPal or a bank statement all work.

    No. It works on exports and test environments and never calls live providers.

    All amounts are parsed with Python's Decimal and converted to integer minor units using ISO 4217 exponents. No floats are used.

    No. It is an engineering review of money correctness, not a compliance assessment or accounting advice.

    A ZIP with SKILL.md, the code scanner, reconcile.py, ledger_check.py, the pytest template and test plan, the review checklist and sample exports.

    New in Finance & Accounting

    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.