{"skills":[{"name":"Find bank reconciliation exceptions","description":"Match statement movements to cashbook entries without silently clearing repeated amounts.","content":"# Find bank reconciliation exceptions\n\nMatch statement movements to cashbook entries without silently clearing repeated amounts.\n\n## When to use this skill\n\n- The bank statement and the cashbook or accounting software disagree at month end.\n- Someone needs a list of unmatched bank entries, uncleared cheques or unrecorded fees before closing a period.\n- Several transactions share the same amount and reference, and automatic matching may have paired the wrong ones.\n\n## When not to use it\n\n- Payment processor payouts that bundle many sales into one deposit. Use the processor payout skill first, then reconcile the deposit here.\n- A payment you did not authorise or suspect is fraudulent. Contact the bank straight away rather than waiting for the reconciliation.\n- Posting journals or corrections. The method lists what needs posting and the evidence; someone with ledger authority posts it.\n\n## What you need\n\n- One bank account, period, statement and cashbook\n- Signed amounts, statement line IDs, ledger IDs and transaction references\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Which bank account and statement period, and does the statement show opening and closing balances? Without openings only a closing-balance bridge is possible.\n- Does the cashbook export cover the same dates, and does it show which items were reconciled last time?\n- How are signs shown on each side: separate debit and credit columns, or signed amounts?\n- Do you have the next period's statement? It is the evidence that deposits in transit and outstanding cheques have since cleared.\n\n## Method\n\n1. Align account, period and currency. Check the statement adds up: opening balance plus signed movements equals the closing balance, and the opening equals the last reconciled closing balance.\n2. Put both sides on one sign convention, money in positive and money out negative. A bank statement describes credits from the bank's side, so check the direction of each column.\n3. Match at transaction level on exact common reference and signed amount, using each line once. Where the same reference and amount appear more than once so the pairing is not unique, keep every member of that set together as ambiguous instead of choosing by date or order.\n4. Classify what is left. Statement-only items are usually bank charges, interest, direct debits or returned payments not yet in the cashbook; each needs the bank advice before posting. Ledger-only items are usually outstanding payments or deposits in transit, which are timing differences, or cashbook errors. Name the evidence each one needs.\n5. Compute statement movement less ledger movement over the complete period. It should equal statement-only items less ledger-only items; if it does not, look for a matching error.\n6. With only closing balances, build the bridge: bank closing plus evidenced deposits in transit less outstanding payments gives the adjusted bank balance, compared with the ledger closing. Without opening balances or complete movements, do not infer a period movement difference from the closing difference.\n7. Do not bring a future-period cashbook entry forward to clear a statement line, and do not post anything. Hand back the exceptions with the evidence needed for each.\n\n## Checks before you deliver\n\n- Matching by absolute value pairs refunds with charges.\n- A cashbook entry for a future period must not be brought forward solely to clear the statement.\n- An outstanding cheque is a timing difference. Reversing it in the ledger to make the balances agree creates an error when it clears.\n- Netting an unbooked bank fee against an unrelated ledger-only item to reach zero hides two exceptions.\n- A payment still uncleared well after its normal clearing time may have been lost or never banked. Flag it rather than carrying it forward indefinitely.\n\n## How to present the result\n\nLead with whether the account reconciles and the amount of any unexplained difference. Then list statement-only items with the evidence needed before posting, ledger-only items with when each should clear, and ambiguous groups with the question that resolves each. Finish with the bridge: statement closing, timing items, adjusted balance, ledger closing and unexplained amount.\n\n## Worked example\n\n**Request:** Identify November reconciliation exceptions.\n\n**Supplied material:**\n\n```text\nGBP, all rows in period. ID \/ reference \/ signed amount.\nStatement S1 RENT -400, S2 FEES -6, S3 SALE 290.\nCashbook B1 RENT -400, B2 SALE 290, B3 CHQ08 -45.\n```\n\n**Answer:** Two movements match. Check the \u00a36 statement fee against the bank advice before booking it, and carry the \u00a345 CHQ08 payment as outstanding until clearance is verified. Together they explain why statement movement is \u00a339 higher than the cashbook.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn matched as the count of unique pairs, statement_only and ledger_only as arrays of IDs without any eligible counterpart, ambiguous as an array of all IDs in non-unique groups, and movement_difference as signed statement movement less ledger movement. Sort ID arrays lexicographically. For a close-only reconciliation, return bank_close, deposits_in_transit, outstanding_payments (positive magnitudes), adjusted_bank, ledger_close and unexplained (adjusted bank less ledger). Add separately evidenced adjustments when present.\n\n## Sources\n\n- [Microsoft \u00b7 Reconcile bank accounts](https:\/\/learn.microsoft.com\/en-us\/dynamics365\/business-central\/bank-how-reconcile-bank-accounts-separately): Business Central matches statement lines to bank ledger entries up to the statement date, treats outstanding payments and cheques as the difference between the ledger and the statement, and handles fees or interest with no ledger entry by posting the missing entry. The skill keeps those as separate exception types.\n- [ACCA \u00b7 FA1 specimen exam answers](https:\/\/specimen.accaglobal.com\/PDF2025\/FA1%20Specimen%20exam%20answers.pdf): ACCA's answers treat bank charges on the statement as items to post to the ledger, and unpresented cheques as timing differences that need no ledger adjustment and are deducted from the bank statement balance. The skill uses the same split between postings and timing items.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/find-bank-reconciliation-exceptions\n","scope":"contextual","trigger_keywords":["Find bank reconciliation exceptions","find-bank-reconciliation-exceptions","find bank reconciliation exceptions","Why doesn\u2019t the bank statement match our books this month?","Why doesn\u2019t the bank statement match our books this month","bank reconciliation exceptions","unmatched bank entries","reconcile this bank statement"],"is_private":true,"is_active":true,"scripts":[{"name":"find-bank-reconciliation-exceptions-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"find-bank-reconciliation-exceptions-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: find-bank-reconciliation-exceptions\ndescription: \"Match a bank statement to the cashbook line by line, list statement-only and ledger-only items, keep ambiguous repeats together and prove the closing difference. Use when a bank reconciliation does not balance or someone asks for unmatched or unreconciled bank entries.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/find-bank-reconciliation-exceptions\n---\n\n# Find bank reconciliation exceptions\n\nMatch statement movements to cashbook entries without silently clearing repeated amounts.\n\n## When to use this skill\n\n- The bank statement and the cashbook or accounting software disagree at month end.\n- Someone needs a list of unmatched bank entries, uncleared cheques or unrecorded fees before closing a period.\n- Several transactions share the same amount and reference, and automatic matching may have paired the wrong ones.\n\n## When not to use it\n\n- Payment processor payouts that bundle many sales into one deposit. Use the processor payout skill first, then reconcile the deposit here.\n- A payment you did not authorise or suspect is fraudulent. Contact the bank straight away rather than waiting for the reconciliation.\n- Posting journals or corrections. The method lists what needs posting and the evidence; someone with ledger authority posts it.\n\n## What you need\n\n- One bank account, period, statement and cashbook\n- Signed amounts, statement line IDs, ledger IDs and transaction references\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Which bank account and statement period, and does the statement show opening and closing balances? Without openings only a closing-balance bridge is possible.\n- Does the cashbook export cover the same dates, and does it show which items were reconciled last time?\n- How are signs shown on each side: separate debit and credit columns, or signed amounts?\n- Do you have the next period's statement? It is the evidence that deposits in transit and outstanding cheques have since cleared.\n\n## Method\n\n1. Align account, period and currency. Check the statement adds up: opening balance plus signed movements equals the closing balance, and the opening equals the last reconciled closing balance.\n2. Put both sides on one sign convention, money in positive and money out negative. A bank statement describes credits from the bank's side, so check the direction of each column.\n3. Match at transaction level on exact common reference and signed amount, using each line once. Where the same reference and amount appear more than once so the pairing is not unique, keep every member of that set together as ambiguous instead of choosing by date or order.\n4. Classify what is left. Statement-only items are usually bank charges, interest, direct debits or returned payments not yet in the cashbook; each needs the bank advice before posting. Ledger-only items are usually outstanding payments or deposits in transit, which are timing differences, or cashbook errors. Name the evidence each one needs.\n5. Compute statement movement less ledger movement over the complete period. It should equal statement-only items less ledger-only items; if it does not, look for a matching error.\n6. With only closing balances, build the bridge: bank closing plus evidenced deposits in transit less outstanding payments gives the adjusted bank balance, compared with the ledger closing. Without opening balances or complete movements, do not infer a period movement difference from the closing difference.\n7. Do not bring a future-period cashbook entry forward to clear a statement line, and do not post anything. Hand back the exceptions with the evidence needed for each.\n\n## Checks before you deliver\n\n- Matching by absolute value pairs refunds with charges.\n- A cashbook entry for a future period must not be brought forward solely to clear the statement.\n- An outstanding cheque is a timing difference. Reversing it in the ledger to make the balances agree creates an error when it clears.\n- Netting an unbooked bank fee against an unrelated ledger-only item to reach zero hides two exceptions.\n- A payment still uncleared well after its normal clearing time may have been lost or never banked. Flag it rather than carrying it forward indefinitely.\n\n## How to present the result\n\nLead with whether the account reconciles and the amount of any unexplained difference. Then list statement-only items with the evidence needed before posting, ledger-only items with when each should clear, and ambiguous groups with the question that resolves each. Finish with the bridge: statement closing, timing items, adjusted balance, ledger closing and unexplained amount.\n\n## Worked example\n\n**Request:** Identify November reconciliation exceptions.\n\n**Supplied material:**\n\n```text\nGBP, all rows in period. ID \/ reference \/ signed amount.\nStatement S1 RENT -400, S2 FEES -6, S3 SALE 290.\nCashbook B1 RENT -400, B2 SALE 290, B3 CHQ08 -45.\n```\n\n**Answer:** Two movements match. Check the \u00a36 statement fee against the bank advice before booking it, and carry the \u00a345 CHQ08 payment as outstanding until clearance is verified. Together they explain why statement movement is \u00a339 higher than the cashbook.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn matched as the count of unique pairs, statement_only and ledger_only as arrays of IDs without any eligible counterpart, ambiguous as an array of all IDs in non-unique groups, and movement_difference as signed statement movement less ledger movement. Sort ID arrays lexicographically. For a close-only reconciliation, return bank_close, deposits_in_transit, outstanding_payments (positive magnitudes), adjusted_bank, ledger_close and unexplained (adjusted bank less ledger). Add separately evidenced adjustments when present.\n\n## Sources\n\n- [Microsoft \u00b7 Reconcile bank accounts](https:\/\/learn.microsoft.com\/en-us\/dynamics365\/business-central\/bank-how-reconcile-bank-accounts-separately): Business Central matches statement lines to bank ledger entries up to the statement date, treats outstanding payments and cheques as the difference between the ledger and the statement, and handles fees or interest with no ledger entry by posting the missing entry. The skill keeps those as separate exception types.\n- [ACCA \u00b7 FA1 specimen exam answers](https:\/\/specimen.accaglobal.com\/PDF2025\/FA1%20Specimen%20exam%20answers.pdf): ACCA's answers treat bank charges on the statement as items to post to the ledger, and unpresented cheques as timing differences that need no ledger adjustment and are deducted from the bank statement balance. The skill uses the same split between postings and timing items.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/find-bank-reconciliation-exceptions\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/find-bank-reconciliation-exceptions\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Fee and cheque in transit\n\nIdentify November reconciliation exceptions.\n\n## Supplied material\n\nGBP, all rows in period. ID \/ reference \/ signed amount.\nStatement S1 RENT -400, S2 FEES -6, S3 SALE 290.\nCashbook B1 RENT -400, B2 SALE 290, B3 CHQ08 -45.\n\n## Worked answer\n\nTwo movements match. Check the \u00a36 statement fee against the bank advice before booking it, and carry the \u00a345 CHQ08 payment as outstanding until clearance is verified. Together they explain why statement movement is \u00a339 higher than the cashbook.\n\n## Reasoning\n\nThe uncleared cheque and unbooked fee sit on different sides.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"Identify November reconciliation exceptions.\nReturn only the JSON specified in SKILL.md for this test.\n\nGBP, all rows in period. ID \/ reference \/ signed amount.\nStatement S1 RENT -400, S2 FEES -6, S3 SALE 290.\nCashbook B1 RENT -400, B2 SALE 290, B3 CHQ08 -45.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"matched\": 2,\n    \"statement_only\": [\n        \"S2\"\n    ],\n    \"ledger_only\": [\n        \"B3\"\n    ],\n    \"ambiguous\": [],\n    \"movement_difference\": 39\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The uncleared cheque and unbooked fee sit on different sides.\n"},{"path":"tests\/case-2\/request.txt","content":"Which of these movements can be paired automatically?\nReturn only the JSON specified in SKILL.md for this test.\n\nSame account\/period, EUR. Statement S8 TRF 40. Cashbook B8 TRF 40, B9 TRF 40.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"matched\": 0,\n    \"statement_only\": [],\n    \"ledger_only\": [],\n    \"ambiguous\": [\n        \"B8\",\n        \"B9\",\n        \"S8\"\n    ],\n    \"movement_difference\": -40\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The statement provides no way to choose one cashbook entry.\n"},{"path":"tests\/case-3\/request.txt","content":"Prove the closing difference before finance posts a correction.\nReturn only the JSON specified in SKILL.md for this test.\n\nBank closes \u00a3910 and cashbook \u00a31,000. A \u00a3140 cashbook receipt from this period has a dated later bank deposit. A \u00a350 cheque in this period cleared next month. No other exceptions. Full period lines and opening balances are not provided.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"bank_close\": 910,\n    \"deposits_in_transit\": 140,\n    \"outstanding_payments\": 50,\n    \"adjusted_bank\": 1000,\n    \"ledger_close\": 1000,\n    \"unexplained\": 0\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"Adding the deposit and deducting the outstanding cheque reconciles balances without a new journal.\n"}],"is_active":true,"is_approved":false}]}]}