Bookkeeper

Categorize transaction lines against an existing chart of accounts and emit a read-only reconciliation artifact without booking ledger entries.

You’re reading version sha-2dd263ef080e. Go to the current version

Overview

bookkeeper turns transaction lines into a read-only reconciliation artifact. It categorizes each transaction against an existing chart of accounts, flags ambiguous or invalid lines as anomalies, and calculates matched/unmatched reconciliation totals.

The skill does not post journals, does not mutate a live ledger, does not call a money rail, and never invents a GL account. Every categorization references an account that exists in chart_of_accounts and carries confidence plus a reason.

In the manual

Runners

  • default
  • review

Declared by its execution profile. Read the profile

SKILL.md

Bookkeeper

bookkeeper turns transaction lines into a read-only reconciliation artifact. It categorizes each transaction against an existing chart of accounts, flags ambiguous or invalid lines as anomalies, and calculates matched/unmatched reconciliation totals.

The skill does not post journals, does not mutate a live ledger, does not call a money rail, and never invents a GL account. Every categorization references an account that exists in chart_of_accounts and carries confidence plus a reason.

Contract

Inputs:

  • transactions[]{id,date,description,amount,currency}
  • chart_of_accounts[]{code,name,keywords}
  • prior_period{ending_cash,currency}

Output:

  • categorized[]
  • anomalies[]
  • reconciliation{matched, unmatched}

Behavior

  • Keyword matches against the supplied chart produce high-confidence categories.
  • Positive transactions prefer revenue-like accounts when keyword evidence is present.
  • Negative transactions prefer expense-like accounts when keyword evidence is present.
  • Missing required fields, currency mismatches, and ambiguous descriptions are anomalies.
  • The skill emits a read-only reconciliation_artifact; it does not book anything.

Verification

Local harness:

bash
runx harness ./skills/bookkeeper

Example dogfood run:

bash
runx skill ./skills/bookkeeper --json \
  --input-json transactions='[{"id":"txn_001","date":"2026-07-01","description":"Stripe payout customer invoices","amount":1250,"currency":"USD"}]' \
  --input-json chart_of_accounts='[{"code":"4000","name":"Revenue","keywords":["stripe","invoice","customer"]}]' \
  --input-json prior_period='{"ending_cash":5000,"currency":"USD"}'

Published execution profile

The execution profile published with sha-2dd263ef080e, shown as its exact bytes.

Runners
  • default
  • review
Profile digestsha256:e92b51c8e72e1e961f00f27c7c5e039725d89206f2ef4a8ee140b603e121c91f
skill: bookkeeper
version: 0.1.1
catalog:
  kind: skill
  audience: public
  visibility: public
  role: canonical
  category: data
runners:
  default:
    default: true
    inputs:
      transactions:
        type: json
        required: true
      chart_of_accounts:
        type: json
        required: true
      prior_period:
        type: json
        required: true
    steps:
      - id: default
        tool:
          command: node
          args:
            - run.mjs
          timeout_seconds: 30
        inputs:
          transactions: $input.transactions
          chart_of_accounts: $input.chart_of_accounts
          prior_period: $input.prior_period
  review:
    inputs:
      transactions:
        type: json
        required: true
      chart_of_accounts:
        type: json
        required: true
      prior_period:
        type: json
        required: true
    steps:
      - id: review_ambiguous_transaction
        label: route ambiguous transaction to manual review without booking ledger entries
        agent:
          role: finance
          task: bookkeeper-needs-review
        outputs:
          decision:
            required: false
          needs_review_reason:
            required: false
          proposed_account_code:
            required: false
harness:
  cases:
    - name: clean_transactions_reconcile
      runner: default
      inputs:
        transactions:
          - id: txn_001
            date: 2026-07-01
            description: Stripe payout customer invoices
            amount: 1250
            currency: USD
          - id: txn_002
            date: 2026-07-02
            description: AWS cloud hosting invoice
            amount: -210.45
            currency: USD
          - id: txn_003
            date: 2026-07-03
            description: Office supplies receipt
            amount: -48.2
            currency: USD
        chart_of_accounts:
          - code: "4000"
            name: Revenue
            keywords:
              - stripe
              - invoice
              - customer
          - code: "6100"
            name: Cloud hosting
            keywords:
              - aws
              - hosting
              - cloud
          - code: "6200"
            name: Office supplies
            keywords:
              - supplies
              - office
        prior_period:
          ending_cash: 5000
          currency: USD
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - purchase-approval
            - refund
          request: Categorize this transaction batch against our chart of accounts.
          expected_outcome: Return a sealed read-only reconciliation with GL mapping and anomaly flags, mutating no ledger.
        - mode: composed
          request: Continue this bookkeeper work from evidence already gathered upstream.
          expected_outcome: Return a sealed read-only reconciliation with GL mapping and anomaly flags, mutating no ledger.
          prior_evidence:
            - The transaction batch and chart of accounts already supplied.
          must_not_repeat:
            - Do not invent accounts or re-post transactions.
    - name: ambiguous_transactions_need_review
      runner: review
      inputs:
        transactions:
          - id: txn_004
            date: 2026-07-04
            description: Transfer
            amount: -300
            currency: USD
        chart_of_accounts:
          - code: "1000"
            name: Cash
            keywords:
              - bank
              - deposit
          - code: "6900"
            name: Miscellaneous expense
            keywords:
              - misc
        prior_period:
          ending_cash: 5991.35
          currency: USD
      expect:
        status: needs_agent
        receipt:
          schema: runx.receipt.v1

Published package and test evidence.

This exact version passed its recorded harness run: 2 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-2dd263ef080e
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2
Test recordOpen the recorded run
Inspect receipt referencessha256:e6b219bba709229f22d4629e33d081d14ff26909ab092e3e18dab2c3698566dfsha256:c69cffc03d4e6899e9d2f37aab326365617a4e3230f32ad15acbdb0ad57683b6

Package identity

Published revisionsha-2dd263ef080e
Content digestsha256:2dd263ef080e1ba9ac2d79d94f921945bb83dd3abeee0ad6d59c0f0e67219c15
SKILL.md digestsha256:d86a8c00a0ffdb3e19394e87db70f27acc2babc84a6b912d5969c12308bec8cd
Execution profile digestsha256:e92b51c8e72e1e961f00f27c7c5e039725d89206f2ef4a8ee140b603e121c91f
Publisher identityUnverified publisher · Liyitong.
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · DeclaredLiyitong. · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-2dd263ef080eViewingContent digest sha256:2dd263ef080e1ba9ac2d79d94f921945bb83dd3abeee0ad6d59c0f0e67219c15
  2. sha-9f8b82b7d64bContent digest sha256:9f8b82b7d64bfa2d4171063b3c4ab54fba267bc5666cd65f96124278c8d6db3c
  3. sha-f3f16044d28fContent digest sha256:f3f16044d28ffd6c8b6c995393e42d0fdacbacfb803f622ec368d74dba960fb1
  4. sha-9840d2187569Content digest sha256:9840d21875692252f2ced4ae09bd74727bc43466a76766449730526d06590662