Categorize my transactions

From gethouston/houston · View interactive version

Categorize my transactions is an AI agent skill from the GitHub repository gethouston/houston. Categorize a batch of pending transactions from your QuickBooks or Xero queue, a dropped CSV, or a pasted table. I canonicalize each party, apply your saved rules first, then prior-year memory, then calibrated reasoning against your locked chart of accounts; anything below 0.90 confidence lands in S

How to use this skill

Skill file

Categorize My Transactions

The ongoing companion to the statements pipeline: I take pending transactions from your QuickBooks or Xero queue, a CSV, or a pasted table, and produce a review-ready batch grouped into Ready, Needs Review, and Suspense. Two invariants: your chart of accounts is locked for the run, and anything below 0.90 confidence goes to Suspense rather than silent pushthrough.

Drafts only: I categorize, flag, and write the review batch. You or your accountant post to QuickBooks or Xero.

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.

If no accounting tool is connected I fall back to a dropped CSV or pasted table. If you have nothing to share I stop and ask you to connect QuickBooks or Xero, or drop a CSV of pending items.

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. Read context & lock the chart of accounts. Load:
  1. Resolve pending list. Priority order:
  1. mode=rule-add branch. If triggered:
  1. Canonicalize parties. Per pending row, derive canonical party name same way process-my-statements does: strip noise prefixes (POS DEBIT, CHECKCARD, ACH, SQ *, TST*, ONLINE PMT), strip trailing reference numbers and city/state suffixes, collapse whitespace, Title Case. If cleaned name fuzzy-matches key in prior-categorizations or party-rules (token-set ratio ≥ 0.85), use stored key as canonical form.
  1. Categorize each transaction. Priority order - stop at first hit:

1. party-rules exact match → account code from rule, confidence: 1.00, source: "rule".

2. prior-categorizations fuzzy match (token-set ratio ≥ 0.85 AND stored account code exists in chart of accounts) → stored account code, confidence: 0.95, source: "prior_year".

3. Reasoning against chart of accounts - pick best line from locked chart of accounts using description + canonical party + amount + account type. Assign calibrated confidence:

4. Suspense - glCode = universal.suspenseCode.code, confidence: 0.50, source: "ai", category_status: "uncategorized".

category_status rules:

Never invent account code not in locked chart of accounts.

  1. Write review batch to transactions/{YYYY-MM-DD}.md (run date, not txn date). Structure:
  1. Persist learnings (only after user confirms ready_for_approval bucket, or end-of-run if no confirmation gate). Read-merge-write config/prior-categorizations.json: upsert {canonical_party: gl_code} for every row with source ∈ {rule, prior_year} OR confidence ≥ 0.95. NEVER persist confidence < 0.90 items - poison next run.
  1. Update Suspense index. Per uncategorized item, read-merge-write suspense.json at agent root with {id, date, party, description, amount, addedAt}. Bump updatedAt on existing entries; no duplicates.
  1. Append to outputs.json. One row: {type: "categorization", title: "Categorization batch {YYYY-MM-DD}", summary, path, status: "draft", domain: "transactions"}. Read-merge-write; never overwrite array.
  1. Summarize to user. One short block: counts by bucket, total Suspense dollars (flag prominently), new parties added, suggested party-rule upserts with exact command to approve.

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.