Prepare an unadjusted trial balance from the general ledger and verify that total debits equal total credits, tracing any error. Use when the user has posted the ledger and wants to check the books balance before making period-end adjustments. Not for balances after adjusting entries; see /accounting-adjusted-balance.
git clone https://github.com/bromso/singularskills.git--- name: accounting-trial-balance description: Prepare an unadjusted trial balance from the general ledger and verify that total debits equal total credits, tracing any error. Use when the user has posted the ledger and wants to check the books balance before making period-end adjustments. Not for balances after adjusting entries; see /accounting-adjusted-balance. metadata: argument-hint: "[project] [--skip-checks]" workflow: accounting phase: 4 artifact: 04-trial-balance.md --- # Trial Balance Prepare an unadjusted trial balance for "$ARGUMENTS". List all ledger account balances and verify that total debits equal total credits. **Arguments.** `$ARGUMENTS` may contain the project name and optional flags. Take the first token as `<project>` and treat `--skip-checks` as a flag; never include flags in file paths. All paths below use `<project>`. If `--skip-checks` is present, skip the prerequisite check and, **before writing any artifact**, append one line to `.singularskills/log.jsonl`: `{"ts":"<ISO timestamp>","skill":"accounting-trial-balance","workflow":"accounting","phase":4,"project":"<project>","event":"skipped","artifact":"04-trial-balance.md","note":"<reason or \"none given\">"}`. **Compute with code.** Perform every calculation (totals, balances, ratios, variances, projections) with a script — Bash, Python or a spreadsheet formula written to a file — and include the computation alongside the result. Never do arithmetic mentally. ## Prerequisites **Part of a workflow.** This skill is phase 4 (Trial Balance) of the Accounting Cycle workflow (`accounting`); cross-domain workflows run it too. First check `.singularskills/log.jsonl` for an open run for this project: a `run-started` line with `"project":"<project>"` and no later `run-finished` line for the same `workflow` and `project`. If one exists, the conductor is running you: continue here. Otherwise, if the user asked to start, run, continue or resume a process or workflow rather than this one step, do not continue here: invoke the `workflow` skill with the workflow the user asked for, or `accounting` when they named none, followed by `<project>`; it runs this phase in order, asks before it writes and records the run. Otherwise continue here: a later phase runs on its own, behind its gate. Run this skill's gate before writing: `sh <this skill's folder>/scripts/gate.sh <project> <project root>`, where `<project root>` is the folder that contains `.singularskills/` (use `.` when you are already there). If it exits non-zero, stop and tell the user what it printed, unless `--skip-checks` was given (see Arguments). On a refusal, before you stop, append this line to `.singularskills/log.jsonl` (create the folder and file if missing): `{"ts":"<ISO timestamp>","skill":"accounting-trial-balance","workflow":"accounting","phase":4,"project":"<project>","event":"refused","artifact":"04-trial-balance.md","note":"<what the gate printed>"}`. Once the gate has passed, or under `--skip-checks` once you have appended the `skipped` line, append this line before you start work: `{"ts":"<ISO timestamp>","skill":"accounting-trial-balance","workflow":"accounting","phase":4,"project":"<project>","event":"started","artifact":"04-trial-balance.md","note":""}`. Read `.singularskills/accounting/<project>/03-ledger.md` for the ledger account balances. ## Process 1. **Extract account balances:** - List every account from the general ledger with its closing balance - Place debit balances in the debit column and credit balances in the credit column - Order accounts by category: assets, liabilities, equity, revenue, expenses 2. **Calculate totals:** - Sum all debit balances - Sum all credit balances - Compare totals — they must be equal 3. **Investigate discrepancies:** - If totals do not match, check for: - Transposition errors (digits swapped) - Slide errors (decimal point shifted) - Omitted or double-posted entries - Entries posted to the wrong side - Document any corrections made 4. **Write the artifact** to `.singularskills/accounting/<project>/04-trial-balance.md` with sections: - **Unadjusted Trial Balance** — all accounts with debit and credit columns - **Balance Verification** — total debits, total credits, and difference (should be zero) - **Error Log** — any discrepancies found and corrections applied ## Output The trial balance written to `.singularskills/accounting/<project>/04-trial-balance.md`. Present a summary highlighting: - Total debits and total credits - Whether the trial balance is in balance - Any errors detected and corrected **Record the run.** After you have written the artifact, append this line to `.singularskills/log.jsonl` (the `started` line of Prerequisites, with `"event":"finished"`): `{"ts":"<ISO timestamp>","skill":"accounting-trial-balance","workflow":"accounting","phase":4,"project":"<project>","event":"finished","artifact":"04-trial-balance.md","note":""}`. Open the artifact with this frontmatter (`agent` is the agent you run in, or `unknown`; `gate` is `passed` when the gate ran clean and `skipped` under `--skip-checks`): ```yaml --- skill: accounting-trial-balance workflow: accounting phase: 4 project: <project> started: <ISO timestamp> finished: <ISO timestamp> agent: <the agent you run in, or "unknown"> gate: <passed|skipped> --- ``` End the artifact with `## Decisions` and `## Open questions`, in this shape: ```markdown ## Decisions - <what was chosen> — <why> — <what was rejected> ## Open questions - <what the next phase or a reviewer must settle> ``` End the artifact with this paragraph, verbatim: > **Not financial or tax advice.** This artifact is generated analysis for review by a qualified accountant or financial professional before any filing, reporting or decision relies on it.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/bromso/singularskills/tree/main/skills/accounting-trial-balanceCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Prepare an unadjusted trial balance from the general ledger data for [COMPANY]. The data I’m providing includes account names, debit balances, and credit balances. Verify that total debits equal total credits. If discrepancies exist, trace the error and suggest possible causes. Here is the data: [DATA]
**Unadjusted Trial Balance for GreenLeaf Nursery (June 30, 2024)** | **Account** | **Debit ($)** | **Credit ($)** | |---------------------------|---------------|----------------| | Cash | 45,200 | | | Accounts Receivable | 12,800 | | | Inventory | 28,500 | | | Prepaid Insurance | 3,600 | | | Equipment | 85,000 | | | Accumulated Depreciation | | 18,000 | | Accounts Payable | | 9,200 | | Notes Payable | | 30,000 | | Common Stock | | 50,000 | | Retained Earnings | | 40,900 | | Sales Revenue | | 120,000 | | Cost of Goods Sold | 62,000 | | | Rent Expense | 6,000 | | | Salaries Expense | 18,000 | | | Utilities Expense | 2,400 | | | **Totals** | **263,500** | **268,100** | **Discrepancy Detected:** Total debits ($263,500) do not equal total credits ($268,100). A difference of **$4,600** is present. **Possible Causes:** - Missing or duplicate entries in the general ledger. - Incorrect posting of transactions (e.g., a debit entry posted as a credit or vice versa). - Omitted or misclassified accounts (e.g., a liability recorded as revenue). **Recommended Next Steps:** 1. Cross-check the general ledger for any unposted transactions. 2. Verify the accuracy of journal entries, especially for large or unusual transactions. 3. Re-examine account classifications (e.g., ensure "Sales Revenue" is correctly recorded as a credit). *This trial balance is unadjusted. Adjusting entries will be required before finalizing the period-end financial statements.*
skills-collection
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan