agentleFS
newline53newline53/newline-mcp-server/skills/account-reconciliation/SKILL.md

account-reconciliation

Skill2 starsChanged 7 months agoApache-2.0View on GitHub

Reconciles a Newline synthetic account against its underlying custodial account by comparing balances, synthetic line items, and custodial line items. Use when asked to reconcile, audit, or verify that account balances match across the synthetic and custodial layers.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you have the synthetic account UID:

    line 12
  2. Distinctive:

    If you need to find it:

    line 18
  3. Distinctive:

    If you need to find custodial accounts:

    line 42
  4. Very specific:

    Check the transaction status — pending transactions may not yet appear on both sides.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Account Reconciliation

Compares the synthetic and custodial views of an account to surface any discrepancies.

Step 1 — Get the Synthetic Account

If you have the synthetic account UID:

get-synthetic-account  uid=<synthetic_account_uid>

If you need to find it:

get-synthetic-accounts

Record from the synthetic account:

  • uid
  • net_usd_balance — the reported balance on the synthetic layer
  • net_usd_pending_balance
  • net_usd_available_balance
  • custodial_account_uids — the underlying custodial accounts
  • asset_balances — per-asset breakdown including current_usd_value per custodial account

Step 2 — Get the Custodial Account(s)

For each UID in custodial_account_uids:

get-custodial-account  uid=<custodial_account_uid>

Record the custodial account's reported balance for comparison.

If you need to find custodial accounts:

list-custodial-accounts

Step 3 — Pull Synthetic Line Items

list-synthetic-line-items

Filter for entries where synthetic_account_uid matches the account from Step 1.

For each line item record:

  • amount, currency
  • description
  • balance_after — running balance after this entry
  • transaction_uid — back-reference to the originating transaction
  • created_at

The final balance_after in chronological order should equal net_usd_balance from Step 1.

Step 4 — Pull Custodial Line Items

list-custodial-line-items

Filter for entries where custodial_account_uid matches the account from Step 2.

For each line item record:

  • amount, currency
  • description
  • balance_after
  • transaction_uid
  • created_at

Step 5 — Cross-Reference Transactions

For any transaction_uid that appears in synthetic line items but not custodial line items (or vice versa), fetch the full transaction:

get-transaction  uid=<transaction_uid>

Check the transaction status — pending transactions may not yet appear on both sides.

Step 6 — Compare and Report

CheckExpected
Synthetic net_usd_balanceEquals sum of synthetic line item amounts
Custodial balanceEquals sum of custodial line item amounts
Synthetic balance vs. custodial balanceShould match (within pending amounts)
Every synthetic line item has a matching custodial line itemYes, via transaction_uid
No unmatched custodial line itemsConfirm no orphaned custodial entries

Report:

  1. The synthetic balance and the custodial balance
  2. Whether they agree (or the delta if not)
  3. Any line items present on one side but not the other
  4. Any transactions still in pending status that explain timing differences

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.