with one click
add-payee
// Add a new payee (merchant, person, organization, or UUID) to the correct preludes journal file, maintaining strict lexicographical order.
// Add a new payee (merchant, person, organization, or UUID) to the correct preludes journal file, maintaining strict lexicographical order.
Edit hledger journal files following best practices and conventions. Includes prelude includes, balance assertions, tagging, formatting, and validation procedures with anti-patterns to avoid.
Transcribe transactions from source documents into the hledger ledger. Handles raw data (receipts, invoices, bank statements, OCR text) with proper status markers, tagging, and account registration. For multiple entries, uses a separate subagent for each transaction to enable parallelization and focused scope.
Strict, step-by-step workflow for upserting Octopus card transactions to the ledger. Requires explicit user clarification for any ambiguity. Enforces contextual matching, mapping, and privacy rules. No guessing or inference allowed.
Match Octopus Wallet statement rows to journal transactions and update transaction datetimes. Runs only when explicitly requested.
Perform monthly journal migration using hledger close --migrate to close the previous month and open the new month with proper balance assertions and account initialization.
Validate hledger journal files using check/format scripts. Includes validation procedures and local hook (Husky + lint-staged) verification.
| name | add-payee |
| description | Add a new payee (merchant, person, organization, or UUID) to the correct preludes journal file, maintaining strict lexicographical order. |
Payee directives must always be added to a preludes/ journal file, never to monthly or yearly journals. If you encounter a strict payee error (e.g., 'payee ... has not been declared'), resolve it by adding the payee to the appropriate preludes/ file as described below.
This skill describes how to add a new payee to the ledger system.
Example & guidance: See ./examples.md for a short example of adding a payee to preludes/self.journal. Validate with bun run format and bun run check after adding.
Determine the correct preludes file
preludes/ journal file, never in a monthly or yearly journal.preludes/self.journal.preludes/*.journal file.Locate the payee section
payee in the chosen preludes file.Insert the new payee
payee <payee-name-or-UUID>Validation
Note: Use the canonical formatting and validation workflow: see .agents/instructions/developer-workflows.instructions.md and .agents/instructions/common-workflows.instructions.md for steps and examples (prefer bun run format and bun run check).
preludes/ file.