- Home
- Skills
- Finance & Accounting
- Trial Balance — Paste Debits and Credits, Get the Difference
Trial Balance — Paste Debits and Credits, Get the Difference
Paste debit and credit rows to calculate exact account differences and totals when one currency convention is present. Invalid lines are listed; arithmetic only, without accounting advice.
$5
Works with the AI Agents you already use
Trial Balance — Paste Debits and Credits, Get the Difference
Example session with this skill installed
python3 scripts/trial_balance.py examples/trial-balance.csv
- Read your context and instructions
- Compiled the trial balance
Trial Balance Difference
Rows: 3 readable rows; 0 unreadable rows
Unreadable rows: 0 (none)
Debit total: USD 1212.8
Credit total: USD 1200.5
Difference (debit − credit): USD 12.3
Account differences (debit − credit):
Cash: USD 200.25 (line 2)
Sales: USD -200.25 (line 3)
Fees: USD 12.3 (line 4)
A zero difference does not prove that every entry is correct.
Connects securely to your tools. The creator never sees your data.
About this skill
Paste a CSV or TSV with account, debit, and credit columns and get row differences, debit and credit totals, and the overall debit-minus-credit difference. A zero difference does not prove the ledger is correct: equal errors can still cancel. This is arithmetic only, not accounting, tax, or audit advice; decisions belong to the user or a qualified professional.
Quick start: requires Python 3.9+ and the standard library.
Input:
- CSV or TSV. The header must contain unique account, debit, and credit columns, in any order. Use --delimiter comma|tab to override detection.
- Amounts: decimal values with optional valid three-digit comma grouping, full-width digits, and USD/JPY/EUR/GBP markers are read exactly with Decimal. Each amount is limited to 30 digits; calculations use enough precision for accepted values and up to 5,000 data rows.
- One blank side is treated as zero when the other side is readable. Both blank is unreadable.
- Negative, percent, malformed or over-30-digit amounts are marked unreadable; never silently changed to zero.
- Currency is carried per row. If rows mix currencies or marked and unmarked amounts, totals are shown as a dash; row differences remain available.
- Incomplete rows are reported by source line number. Totals describe readable rows only and do not claim the whole ledger balances.
- UTF-8 or UTF-16, maximum 100,000 bytes and 5,000 data rows.
Output formats: text, markdown, json, and csv. Options: --delimiter auto|comma|tab, --format text|markdown|json|csv, --output PATH (creates a new file; existing files and symlink aliases are not replaced), and - to read from standard input.
The total difference is debit total minus credit total. It does not assess whether an entry belongs on the debit or credit side, and it cannot detect equal offsetting mistakes.
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.
Arithmetic only, not accounting, tax or audit advice. A zero difference does not prove the ledger is correct, since equal offsetting errors cannot be detected. Negative, percent, malformed and over-30-digit amounts are unreadable rows, and totals then describe readable rows only. Rows that mix currencies or marked and unmarked amounts get no total. Input is limited to 100,000 bytes and 5,000 data rows.
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 4 days ago
- Software
Python 3.9+