- Home
- Skills
- Finance & Accounting
- Payment & Ledger Pro: scan, reconcile, test
Works with the AI Agents you already use
Payment & Ledger Pro: scan, reconcile, test
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
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)
| Currency | Ledger total | Provider total | Difference |
|---|---|---|---|
| EUR | 12.50 EUR | 0.00 EUR | 12.50 EUR |
| JPY | 1500 JPY | 1500 JPY | 0 JPY |
| USD | 153.99 USD | 205.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
| Code | Transaction id | Detail |
|---|---|---|
| R5 | ch_005 | appears 2 times |
| R1 | ch_006 | 75.00 USD not in ledger |
| R2 | ch_009 | 15.00 USD not at provider |
| R3 | ch_008 | ledger 30.00 USD, provider 29.00 USD, difference 1.00 USD |
| R4 | ch_003 | ledger EUR, provider USD |
| R7 | ch_007 | line 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
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.pymatches 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.pyfinds 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
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.