Skip to content
Back to skills

Ledger Accounting

ASecurity

Implement accurate double-entry financial ledgers using integer minor units, immutable entries, and atomic transfers

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsdatabase

Works with

  • cli

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill ledger-accounting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ledger Accounting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ledger Accounting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-ledger-accounting/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-ledger-accounting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Implement accurate double-entry financial ledgers using integer minor units, immutable entries, and atomic transfers
profile: standard
tags: payments, architecture, database, fintech
---

# Ledger accounting

Use when building wallets, payouts, invoicing, marketplace splits, or internal credit balances.

## Data integrity
- Store monetary amounts strictly as signed integers in smallest currency units (cents/paise) alongside an explicit ISO-4217 currency code—never IEEE-754 floats.
- Model transfers as append-only balanced journal entries where every transaction's debits and credits sum strictly to zero per currency.
- Never overwrite historical ledger rows; correct errors solely via linked offsetting adjustment or reversal entries.

## Concurrency and transfers
- Prevent double-spending by executing balance checks + debits/credits inside database transactions using row locks (`SELECT ... FOR UPDATE`), optimistic versions, or serializable isolation.
- Order multi-account lock acquisitions deterministically (sorted by account ID) to avoid deadlocks under concurrent transfers.
- Require unique client idempotency keys on every transfer entry creation.

## Verify
Assert ledger-wide balance conservation (`SUM(amount) = 0`), concurrent withdrawal limits without negative drift, and idempotent retries.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.