# LoanBook Check: Loan Principal Reconciliation

> Reconcile posted loan principal across opening balances, movements, and closing balances. Find loan-level variances that cancel out at portfolio level, then export an HTML review and a CSV exception register with source row references.

LoanBook Check: Loan Principal Reconciliation is a paid AI agent skill on Agensi by Joshua Wabulo, in Finance & Accounting. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99 (one-time purchase)
- Creator: [Joshua Wabulo](https://www.agensi.io/creators/joshua-wabulo)
- Category: [Finance & Accounting](https://www.agensi.io/skills/finance-accounting)
- Version: 1.0
- Last updated: 2026-11-29
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/loanbook-check-loan-principal-reconciliation
- Tags: finance, powershell, audit, csv, automation

## About this skill

A portfolio can tie at month-end while individual loan balances are still off. LoanBook Check recalculates closing principal for each loan and shows positive and negative variances separately, so both remain visible when the net variance is zero.
What it does
- Reconciles posted principal. Applies disbursements, principal repayments, and write-offs to opening balances, then compares the result with reported closing balances.
- Checks dated reversals. Verifies that a full reversal references an earlier posting for the same loan within the review period. Duplicate transaction IDs and unresolved reversal links leave the affected comparison open for review in dated runs.
- Summarizes by portfolio and currency. Shows comparable totals, positive and negative variances, net variance, and the number of loans excluded from those totals.
- Exports review evidence. Produces an HTML report and CSV exception register with opening, closing, and movement source row numbers.
How it works
Provide three CSVs containing opening balances, principal movements, and closing balances. For dated movements, supply both inclusive period boundaries. The bundled PowerShell 7 scripts calculate the reconciliation and export LoanBook-Review.html and LoanBook-Exceptions.csv.

Use it for loan-book close reviews, payoff checks, and investigation of principal discrepancies. A synthetic Windows benchmark verified 110,000 movements across 10,000 loans, including linked reversals and the export of 1,000 exceptions.
Scope and requirements
The workflow covers posted principal. Interest, arrears, credit risk, partial reversals, and cross-period reversals are outside its calculation scope. Amounts use whole minor units. Supply explicit zero balances for new or fully paid loans where applicable. For report export, choose a new output folder under an existing parent folder.

## Requires

- PowerShell 7
- Optional: Browser to view the exported HTML report

## Known limitations

Restricted to posted principal only. Does not handle interest or arrears. Requires PowerShell 7. Output parent directories must exist before execution.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the LoanBook Check: Loan Principal Reconciliation skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific problem does this skill solve for financial auditors?

This skill solves the issue of 'net-zero variances' where small errors hide within large portfolios. It provides row-level traceability, matching every movement to a specific loan to ensure the opening balance plus transactions perfectly equals the closing balance.

### What files and resources are included in this purchase?

You will receive the core PowerShell (.ps1) reconciliation and reporting scripts, along with documentation on CSV header requirements and sample data structures. The purchase provides the logic needed to automate principal drift detection without manual spreadsheet manipulation.

### Which AI agents or environments is this skill compatible with?

The skill is designed for environments running PowerShell 7 and can be integrated with AI agents that have local file system access. It is ideal for agents that support script execution or data processing workflows rather than simple text-based chat.

### Does the skill require a specific data format to function correctly?

Yes, while the skill is automated, it requires three specific CSV files: opening balances, closing balances, and transaction movements. These files must include headers for PortfolioId, LoanId, and PrincipalMinor to ensure accurate reconciliation.

### Can this skill be used to reconcile interest and fee payments as well?

The skill focuses strictly on posted principal balances and transaction movements. It does not calculate interest accruals, arrears, or risk-based metrics, making it a specialized tool for core ledger integrity rather than broad credit analysis.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
