/cpa-skills:debt-covenant-checkfrom cpa-skills
Computes debt covenant ratios from a trial balance using the credit agreement's own component mappings and formulas, tracks headroom over time, and flags approaching breaches. Only runs after confirming the trial balance balances.
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.
This is a quarterly ritual with real career risk attached if it's wrong, so it starts from the
same discipline as trial-balance-integrity: nothing is computed on a trial balance that doesn't
balance. Every covenant's formula, threshold, and account mapping comes from the client's actual
credit agreement — none of it is assumed or defaulted by the script.
The script refuses to compute anything, or refuses a specific covenant, when:
trial-balance-integrity first.Early-warning headroom flags are opt-in: supply --warning-band-pct or the Approaching Breach tab
stays intentionally empty rather than silently applying an assumed band.
account, debit, credit.covenant_name, component_label, account, operator (add or
subtract). This is how the client's own credit agreement defines what rolls into, say,
"EBITDA" or "Fixed Charges" for that specific facility — addbacks and exclusions vary by
agreement and are never assumed.covenant_name, formula_description, formula, threshold, comparison. formula is written using the component labels exactly as they appear in the
components file (e.g. Total Debt / EBITDA). comparison is >=, <=, >, or <.covenant_name, period, actual_value, for the
headroom trend.--warning-band-pct (optional) — the percentage-of-threshold band that counts as
"approaching" a breach. No default; omitting it means no early-warning test runs.python3 scripts/debt_covenant_check.py --template components --out components_template.csv
python3 scripts/debt_covenant_check.py --template definitions --out definitions_template.csv
python3 scripts/debt_covenant_check.py --tb trial_balance.csv \
--components covenant_components.csv --definitions covenant_definitions.csv \
--certificates prior_certificates.csv --warning-band-pct 15 \
--client "Northwind Systems Inc" --period "FY2026 Q1" \
--out "Northwind - Covenant Compliance.xlsx"
A covenant failing its test (e.g., leverage above the cap) is a real finding, not a gate failure — the workbook still writes and reports the failure clearly. The gate is about whether the computation itself is trustworthy, not whether the client happens to be in compliance.
Workbook tabs:
--warning-band-pct is supplied; otherwise it
states plainly that no early-warning test was run, rather than appearing as a clean empty tab.Then, in chat: whether the TB balanced, the pass/fail count, and any covenant currently failing or approaching its band — those are the only numbers that matter to the reader in the first sentence.
Fully local: standard library plus openpyxl. No network calls, no uploads, no telemetry. Trial
balance and credit agreement terms never leave the machine.
pip install openpyxl
Built by Adopt AI — free to use and modify.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub adoptai/cpa-skills --plugin cpa-skills43 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.Other plugins' skills for the same job