一键导入
match-octopus-statement-transactions
// Match Octopus Wallet statement rows to journal transactions and update transaction datetimes. Runs only when explicitly requested.
// Match Octopus Wallet statement rows to journal transactions and update transaction datetimes. Runs only when explicitly requested.
| name | match-octopus-statement-transactions |
| description | Match Octopus Wallet statement rows to journal transactions and update transaction datetimes. Runs only when explicitly requested. |
Locate each entry in a monthly Octopus Wallet statement and, where a unique match exists in the repository journals, update only the transaction's datetime metadata. Record unmatched rows in the summary.
Run only when explicitly requested (e.g. "use match octopus statement transactions").
Use this ImageMagick template to convert a PDF to a high-res PNG. Do NOT include or echo any sensitive wallet numbers in filenames or outputs.
magick -density 300 "input-statement.pdf" -background white -alpha remove -quality 100 "output-statement.png"
Notes:
output-statement-%03d.png for multi-page PDFs.-trim, -shave, -resize.Matching priority (try in order):
Time update rules:
Tie-breaking & pairing:
activity: reload or a self-to-self activity: transfer), adjust that entry’s datetime to the wallet→card timestamp and add a duration: metadata equal to the difference between the two times.Timezones: treat statement times as local (UTC+08:00) by default; preserve timezone tags and avoid implicit conversions unless the user requests one.
Never modify amounts or postings — only change datetime metadata.
After processing produce a concise summary containing only:
Typical seconds-only edits are omitted from the normal summary. To include those, run with a --verbose flag (e.g. "use match octopus statement transactions --verbose").
Optionally run formatting and validation scripts after edits:
python -m format # set cwd to scripts/
python -m check # set cwd to scripts/
Note: See .agents/instructions/developer-workflows.instructions.md for canonical script usage and working-directory rules.
.agents/instructions/git-commits.instructions.md. For ledger transaction commits use the exact ledger(<journal-list>): add N / edit M transaction(s) header and no body.For consolidated lessons across all skills and matching patterns, see .agents/instructions/continuous-learning.instructions.md and upsert-octopus-transactions/lessons.md.
Key insights:
Use match octopus statement transactions on December 2025 PNG and update journal entries; show summary.
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.
Add a new payee (merchant, person, organization, or UUID) to the correct preludes journal file, maintaining strict lexicographical order.
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.