/cpa-skills:journal-entry-anomaly-scanfrom cpa-skills
Scans full-population general ledger/journal entries for anomalies (duplicates, round-dollar, weekend/holiday, after-hours, self-approved, threshold-adjacent), producing risk-ranked exception listings and audit workpapers. Designed for auditors performing AU-C 240 procedures.
Ships in cpa-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Journal entry testing is a required procedure, not a discretionary one, and it is the procedure most often performed as theater — a sample of twenty entries pulled from a population of four hundred thousand, with no stated basis for selection. Full-population scanning is available and cheap, which changes what a reasonable procedure looks like.
Two things to hold onto throughout.
The output is an attribute listing, never a conclusion about intent. An entry posted at 2:14 a.m. on a Sunday for exactly $250,000 by the person who also approved it is a characteristic, and characteristics require investigation, not accusation. Write "posted outside business hours by the approving user" and let the follow-up determine what it means. Every exception gets a disposition after inquiry — most turn out to be a batch process, a time-zone artifact, or an overseas shared-service team. Document that too; a cleared exception is evidence.
A single flag is weak; converging flags are strong. The value is not in the round-dollar list or the weekend list. It is in the entry that appears on four lists at once. Rank by accumulated risk, and read the top of that ranking rather than working through each test sequentially.
Testing an incomplete extract produces false comfort, and this is where most JE testing quietly fails. Before any anomaly test runs:
entry_id. An unbalanced entry
means truncated extraction, not a ledger error — no ERP posts an unbalanced entry.posted_by, posted_timestamp, or source fields
silently disable entire tests. If a system doesn't capture posting user or timestamp, that
is itself a control finding worth reporting, and the scope limitation must be stated.The script performs 1, 3, and 5 and reports 2's inputs so you can tie it out.
python3 scripts/je_scan.py --entries gl.csv --validate-only
python3 scripts/je_scan.py \
--entries gl.csv \
--period-start 2025-01-01 --period-end 2025-12-31 \
--materiality 75000 \
--approval-thresholds "10000,50000,250000" \
--business-hours 7-19 \
--holidays holidays.csv \
--authorized-users authorized.csv \
--client "Acme Holdings LLC" \
--out "Acme - FY2025 JE Scan Workpaper.xlsx"
Input CSV — one row per line, grouped by entry_id:
| Field | Required | Notes |
|---|---|---|
entry_id | yes | Journal entry number/document number |
line_no | Line within the entry | |
effective_date | yes | The accounting date |
posted_timestamp | When it entered the system. Drives weekend/after-hours/post-period tests | |
account / account_name | yes | |
debit / credit | yes | One or the other, never both |
description | Line or header memo | |
posted_by | User ID | |
approved_by | User ID | |
source | MANUAL, AP, AR, PAYROLL, INTERFACE, etc. | |
reversal_of | Entry ID this reverses, if the system tracks it |
Each carries a weight; scores accumulate per entry. Thresholds are engagement judgment — record what you used, because the criteria are part of the workpaper.
Manual and source-based
Timing
posted_timestamp, not effective date.Amount patterns
Authorization and segregation
approved_by where the control requires approval.posted_by against HR
termination dates.Duplicates
Description quality
adjustment, reclass, plug, to balance, per client, per [name], correction, true-up, misc, see attached, as discussed, do not reverse. These are worth reading in full rather than pattern-matching:
a description is the entry's own explanation of itself, and a manual material entry that
cannot explain itself in words is the thing you are looking for.Account relationships
Reversals
The script produces a risk score per entry and a ranked exception listing. Then:
supported · supported with control observation ·
misstatement identified · unresolved. Unresolved items escalate. So does any pattern of
the same user, account, or description recurring across dispositions — the pattern is
often more significant than any single entry.Workbook tabs:
Then, in chat: population size and dollars, completeness result, the five or six entries that actually warrant attention and why, control observations, and what you need from the client. Lead with anything unresolved.
Write attributes and facts. "Entry JE-40118 for $250,000.00 was posted on Sunday 2025-12-28 at 02:14 by user rkm, who also appears as the approver, with the description 'reclass per discussion'." That sentence is defensible and actionable. Anything that characterizes intent is neither. Where a control weakness is evident, report it as a control observation to management; where a misstatement is identified, quantify it and route it through the normal misstatement process. If a matter suggests possible fraud, follow the engagement's communication protocol — that is a firm decision, not a scan output.
Fully local. General ledger data never leaves the machine — no network calls, no uploads, no telemetry. Inputs read-only.
pip install openpyxl
Built by Adopt AI — free to use and modify.
What SKILL.md sets; muted values are Claude Code's defaults
43 skills in this plugin
/accrual-proposalsPropose month-end accruals from open POs received but not yet invoiced (GRNI), recurring vendor spend patterns, and preparer-supplied one-time items, cross-checked against the AP register so nothing is double-booked, with every line carrying a stated basis and an auto-reversal flag for reviewer approval. Never books anything - output is a proposed JE batch for a Controller to approve before it posts to the GL. Use whenever the user mentions month-end accruals, accrual proposals, what should we accrue this month, GRNI, goods received not invoiced, a recurring accrual estimate, or the accrual JE batch for close. Also trigger on "propose accruals," "draft the accrual entries," "what are we missing on the accrual side," or when an open PO report, AP register, or vendor spend history is supplied together at month end. Inverts cutoff-and-unrecorded-liabilities: that proves a search for what was missed is complete; this proposes what to book. Runs fully local - no client data leaves the machine./ar-aging-tie-outTie the accounts receivable aging to the general ledger control account and test it properly — recomputing every ageing bucket from the invoice date rather than trusting the report, grossing up netted credit balances, and flagging stale balances, unapplied cash, and cutoff errors. Use this whenever the user mentions AR aging, accounts receivable aging, tying the aging to the GL, an AR subledger that does not agree to the control account, stale or uncollectible receivables, the allowance for doubtful accounts, unapplied cash or credits, or receivable confirmations. Also trigger on "does our AR aging tie," "reconcile accounts receivable," "which receivables are old," "check the allowance," "why is AR off," "review the aging," or when an AR aging report and a trial balance are provided together. Runs fully local — no customer or receivable data leaves the machine.npx claudepluginhub adoptai/cpa-skills --plugin cpa-skillsOther plugins' skills for the same job