vinushanmugam

Ledgerlight — AI skill for Claude Code

AI community

An AI accounts-receivable reconciliation agent for small businesses that invoice with PayPal.

How to install Ledgerlight

This entry records only its repository, not the path inside it, so there is no exact command to give. Open vinushanmugam/ledgerlight and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Ledgerlight does

An AI accounts-receivable reconciliation agent for small businesses that invoice with PayPal. It compares your PayPal invoices with your bank ledger (CSV), finds the exceptions a bookkeeper would chase, and lets a Claude-powered agent explain them, draft follow-ups and propose fixes, updated to PayPal after human approval.

Alternatives in AI

  • Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
  • CSV AI Analyzer — A self-hosted, browser-based AI CSV analyzer 86 ★
  • PriceyApp — MacOS Status bar app that tracks, monitors your Claude Code AI usage costs in real-time and compares them to h 43 ★

README

LedgerLight

An AI accounts-receivable reconciliation agent for small businesses that invoice with PayPal.

It compares your **PayPal invoices** (Invoicing API v2, sandbox) with your **bank ledger** (CSV), finds the exceptions a bookkeeper would chase, and lets a Claude-powered agent explain them, draft customer follow-ups and *propose* fixes. **Nothing is written to PayPal until a human clicks Approve.**

What it catches

Finding Meaning
MISSING_DEPOSIT PayPal says paid, but no matching bank deposit after a grace period
OVERDUE Unpaid past due date, no payment anywhere
DUPLICATE_PAYMENT Customer paid twice; refund likely needed
OVERPAID / PARTIAL Received more or less than the invoice total
STATUS_MISMATCH Bank has the money but PayPal invoice still shows unpaid (one-click fix after approval)
UNMATCHED_DEPOSIT Bank credit that matches no open invoice

Deposits that arrive **net of PayPal fees** are recognised (fee schedule configurable via `FEE_PCT` / `FEE_FIXED`).

Design

  • Deterministic core (app/reconcile.py): scoring-based matching and exception rules. All arithmetic lives here and is unit-tested.
  • Agent (app/agent.py): Claude tool-use loop with three tools: get_reconciliation_report, get_invoice, propose_record_payment. It can read and propose, never execute.
  • Human approval queue (app/store.py): proposed "record payment" actions wait for Approve/Reject in the UI; amounts are capped at the amount due.
  • PayPal (app/paypal_client.py): OAuth2 client credentials, list/get invoices, record payment. A mock client with the same interface runs the whole app offline.

Run it

pip install -r requirements.txt
python -m pytest -q                      # 9 tests
uvicorn app.main:app --reload            # http://localhost:8000  (mock PayPal + offline summaries)

Real sandbox + full agent:

export PAYPAL_CLIENT_ID=...  PAYPAL_CLIENT_SECRET=...   #