Close my month

From gethouston/houston · View interactive version

Close my month is an AI agent skill from the GitHub repository gethouston/houston. Run a full monthly close end-to-end: reconcile every registered account, refresh the accrual register, draft every due standard journal entry (reversing, accrual, prepaid, payroll, revenue recognition, depreciation, stock-comp, adjustment), run a cutoff check for transactions booked in the wrong per

How to use this skill

Skill file

Close My Month

The orchestrator for month-end. Your month closes when every account reconciles, every due journal entry is drafted, the cutoff is checked, financial statements tie out, variance is explained, and the package is signed off. I chain the skills that own each step; I never do their work inline.

Invariants I preserve every run: every account code exists in your locked chart of accounts, every journal entry balances within 1 cent, recon breaks are never silently plugged, the package stays at status: "draft" until you sign off. I never post journal entries, never move money, never file.

When to use

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.

I orchestrate child skills (reconciliation, accruals, journal entries, statements, variance) and each enforces its own connection check; if any of them stops, I surface that block back to you.

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.

Steps

<!-- houston-workflow:v1 -->

  1. Parse inputs & read context.
  1. Snapshot prior-period state. Before any writes, copy relevant outputs.json rows for period into closes/{YYYY-MM}/_snapshot.json so close reproducible if user re-runs.
  1. step=cutoff-check branch. If triggered, skip to Step 7.
  1. Reconcile every account (loop reconcile-my-accounts). For each account in context-ledger.domains.banks.accounts[], invoke reconcile-my-accounts skill for {accountLast4, period}. Collect output path + break status. Then run reconcile-my-accounts mode=transfer-detect once across all accounts for period - tag inter-account transfers account code 9000 so fall out of P&L SUMIFS downstream. Do NOT proceed to Step 5 if any account returned status: "unresolved-break" AND break > $100 - surface those first, wait for user's call ("plug with adjustment journal entry" vs. "research further").
  1. Refresh accrual register (review-my-accruals). Invoke review-my-accruals for period. Rewrites accruals/register.md, read-merge-writes accruals.json with current set of active accruals. Capture list of accruals flagged reversing=true due to reverse at period open - become Step 6 inputs for reversing journal entry.
  1. Draft every due standard journal entry (loop draft-a-journal-entry). In this order, invoke draft-a-journal-entry once per due entry; each call appends one balanced journal entry to journal-entries.json. Collect paths + ids for package.

1. Reversing entries - type=accrual mode=reversing - auto-reverse every active accrual flagged reversing=true.

2. New accruals - type=accrual - per review-my-accruals output (unbilled revenue, accrued payroll, accrued interest).

3. Prepaids - type=prepaid - amortize rent / SaaS / insurance.

4. Payroll - type=payroll - pull from Gusto / Rippling / Justworks via composio search payroll; fall back to paste.

5. Revenue recognition - type=revrec - recognized revenue per ASC 606 schedules in revrec/.

6. Depreciation - type=depreciation - from config/fixed-assets.json.

7. Stock comp - type=stock-comp - stock-based compensation per vesting schedule.

8. Adjustments - type=adjustment journal entries suggested by reconciliations (unrecorded fees, forex rounding).

Every journal entry lands at status: "draft". Never flip to posted here - needs explicit user confirmation.

  1. Cutoff check sub-step. Build closes/{YYYY-MM}/cutoff-check.md with these checks:

Doc layout: summary header with counts + dollar totals per bucket, one table per check with {date, description, amount, suggestedAction}. Append one outputs.json row with type: "books-audit", domain: "close". If invoked as step=cutoff-check, stop here; skip Steps 8+.

  1. Generate three financial statements (prepare-my-financials × 3). In sequence so downstream statements can read prior ones:

1. statement=pnl - writes financials/{YYYY-MM}/pnl.md.

2. statement=balance-sheet - writes financials/{YYYY-MM}/balance-sheet.md. Cross-checks Retained Earnings against P&L Net Income computed in step 8.1.

3. statement=cash-flow - writes financials/{YYYY-MM}/cash-flow.md. Reconciles ending cash line to sum of context-ledger.domains.banks ending balances (from recons in Step 4).

If any statement fails internal cross-check, surface diff and do NOT proceed to variance. User makes call.

  1. Run variance analysis (explain-my-variance). Invoke once for period. If config/budget.json exists, skill runs actuals vs. budget; else runs vs. prior period. Captures driver decomposition + plain-English narrative. Writes variance-analyses/{YYYY-MM}.md.
  1. Compute open-items flags for package header.
  1. Assemble closes/{YYYY-MM}/package.md. Sections:
  1. Update indexes (atomic .tmp + rename, read-merge-write):
  1. Summarize to user. Close status + package path (clickable), four Step-10 flags with action items ("post {N} draft journal entries", "resolve {M} recon breaks"), headline numbers (Net Income, Ending Cash, Runway), next move ("approve draft journal entries and I flip package to ready").

Sub-skill invocation contract

Each child skill (reconcile-account, review-accruals, prep-journal-entry, generate-financial-statements, run-variance-analysis) invoked with period, owns own artifact + index rows, never re-done inline. If child stops on blocker (missing config / connection), surface verbatim and pause.

Outputs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.