Review Accruals
Living register of every accrual books carry. Each run recomputes balances from underlying journal entries, classifies each row (active / reversed / stale / written-off), surfaces reversing-entry candidates for current period. Register live doc - rewritten in place, NOT indexed in outputs.json.
When to use
- "list our active accruals" / "refresh the accruals register".
- "are any accruals stale" / "anything I should reverse".
- "what reversing journal entries are due this month".
- Called by
run-monthly-closeafter reconciliations, beforeprep-journal-entrydispatches reversing batch.
Connections I need
I run external work through Composio. Before this skill runs I check that the categories below are linked. Missing → I name the category, ask you to connect it from the Integrations tab, stop.
- No external connections required. I work entirely from your existing journal entries, accruals register, and chart of accounts.
This skill never blocks on a missing connection.
Information I need
I read your bookkeeping context first. For every required field that's missing I ask ONE plain-language question (best modality: connected app > file drop > URL > paste) and wait.
- A chart of accounts with prepaid, deferred, accrued, and PTO sections — Required. Why: I auto-discover new accruals by scanning these statement sections in the chart of accounts. If missing I ask: "Do we have a chart of accounts yet? If not, let's draft one first so accrual lines have a home."
- A finished bookkeeping context — Required. Why: I need your accounting method and current period to compute balances and reversals. If missing I ask: "Have we set up the books yet? If not, run the setup first."
- A current journal-entry history — Required. Why: I recompute every accrual's balance from journal entries hitting its account code. If missing I ask: "Have we processed any periods yet? If not, let's run a close first so there are journal entries to compute against."
Steps
<!-- houston-workflow:v1 -->
- Read context. Load
context/bookkeeping-context.md,config/context-ledger.json,config/chart-of-accounts.json. Chart of accounts missing → stop, ask user runbuild-chart-of-accountsfirst. Note today's date + current accounting period (YYYY-MM).
- Read current accruals index. Load
accruals.jsonat agent root (empty array if absent). Row schema:{id, accrualName, glCode, currentBalance, reversing, lastActivity, status: "active" | "reversed" | "stale" | "written-off", notes, createdAt, updatedAt}. Keep in-memory list keyed byid.
- Read supporting journal entries. Load
journal-entries.json, filter to entries whoselines[].glCodematches any accrual'sglCode, ordered bydateascending. Activity history used to recompute balances.
- Recompute current balances. For each active accrual row:
- Sum all journal entry line debits + credits against its
glCodesince row'screatedAt. - Apply sign convention based on natural balance of account type (asset: debit-positive; liability/deferred revenue: credit-positive).
- Update
currentBalance. UpdatelastActivityto max journal entrydatehitting this account code. No journal entries → leavelastActivityunchanged.
- Discover net-new accruals. Any
glCodeappearing inchart-of-accounts.jsonunderstatementSectioncontaining"prepaid","deferred","accrued", or"pto"but no row inaccruals.json→ create new row. InferaccrualNamefrom account name + first journal entry memo.status: "active". Defaultreversing: falseunless source journal entry hadreversing: true.
- Classify status.
active-abs(currentBalance) > 0.00ANDlastActivitywithin last 90 days.stale-abs(currentBalance) > 0.00ANDlastActivityolder than 90 days. Flag as write-off-or-reclass candidate. Note recommended action innotes("consider reclass to {X}" or "candidate for write-off journal entry").reversed-abs(currentBalance) <= 0.01AND reversing journal entry exists referencing original accrual.written-off- only user can set. Never transition automatically.
- Identify reversing-entry candidates for current period. Row is reversing candidate if:
reversing: true(original accrual booked as reversing), AND- status is
active, AND - current period strictly after accrual's origination period, AND
- no reversing journal entry yet exists for this
id.
Collect into reversing_candidates list with suggested reversal amount (negative of currentBalance) + originating journal entry id.
- Rewrite
accruals/register.md. Living doc - overwrite in place. Structure:
- Summary - counts by status, total prepaid balance, total deferred revenue balance, total accrued liabilities balance.
- Active accruals - one row per active accrual with
accrualName,glCode,currentBalance,lastActivity,reversingflag. - Reversing-entry candidates this period - numbered list with suggested journal entry memo + amount; user runs
prep-journal-entry type=accrualto draft each. - Stale accruals (>90 days no activity) - table with recommended action per row.
- Recently reversed - last period's reversals for traceability.
- Written-off - historical tail; keep last 6 months.
Atomic write: accruals/register.md.tmp → rename.
- Upsert
accruals.json. Read-merge-write:
- Read current file.
- Each row in recomputed list:
idmatches → update mutable fields (currentBalance,lastActivity,status,notes,updatedAt). Newid→ append. - Preserve
createdAt- never touch. - Never drop rows no longer in recompute; mark
written-offonly if user explicitly confirmed. - Atomic write:
accruals.json.tmp→ rename.
- DO NOT append to
outputs.json. Register is living doc.accruals.jsonflat-at-root index, not deliverable.
- Summarize to user. One paragraph: how many actives / stale / reversing-candidates this period, total carrying balance, exact next move (e.g., "2 reversing journal entries due - run
prep-journal-entry type=accrualon each"). Never propose posting; drafts only.
Outputs
accruals/register.md(living document - NOT indexed in outputs.json)accruals.json(flat-at-root index - upserted, not overwritten)