Summary
用自然语言录入和维护个人账目。当用户说“记一笔”“今天花了”“买了什么”“收到工资”“退款了”“报销垫付”“报销到账”“转账”“改一下刚才那笔”“撤销上一笔”或“恢复流水”时触发。负责分类、预览、去重、提交、修改和可恢复撤销。
tjxj/ai-bookkeeping-skills · Archived
用自然语言录?
npx skills add tjxj/ai-bookkeeping-skills --skill record-ai-bookkeeping
用自然语言录入和维护个人账目。当用户说“记一笔”“今天花了”“买了什么”“收到工资”“退款了”“报销垫付”“报销到账”“转账”“改一下刚才那笔”“撤销上一笔”或“恢复流水”时触发。负责分类、预览、去重、提交、修改和可恢复撤销。
This repository is archived — consider an actively maintained alternative.
初始化或检查 AI 记账账本。当用户说“开始记账”“初始化账本”“创建记账表”“连接飞书多维表”“?
4 installs生成个人月账单和消费分析。当用户说“出 7 月账单”“生成本月月账单”“做一个 HTML 消费报告”“分析我这…
4 installsCreate an Architectural Decision Record (ADR) document for AI-optimized decision documentation.
10K installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
優良な電子帳簿の要件チェック・コンプライアンス診断を実行する。 「優良な電子帳簿」「電帳法対応」…
275 installsSet up and maintain basic bookkeeping for a solopreneur business. Use when tracking income and …
239 installsBackground context for the Electronic Bookkeeping Act (電子帳簿保存法) in the shinkoku tax fili…
186 installsUse this skill when designing chart of accounts, automating reconciliation, managing AP/AR proc…
162 installsUse ezBookkeeping API Tools script to record new transactions, query transactions, retrieve acc…
138 installsOther skills from tjxj/ai-bookkeeping-skills.
npx skills add tjxj/ai-bookkeeping-skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
4,805 B
SUMMARY.md
368 B
把用户的一句话拆成一条或多条可核对流水,写入统一账本。
所有操作都通过共享脚本,配置路径在本次会话中保持一致:
python3 "$AI_BOOKKEEPING_HOME/scripts/bookkeeping.py" \
--config "/absolute/path/to/config.json" record "用户原话"
--commit 的命令,读取预览中的金额、币种、类型、分类、账户、日期、账本、置信度和追问。- 金额必须大于 0。 - 外币必须有该笔确认汇率。 - 退款必须关联原支出。 - 报销到账必须关联原垫付。 - 转账必须有付款账户和收款账户。 - 累计退款、累计报销到账都不能超过原流水上限。
- 多笔批量流水。 - 金额达到配置中的大额线。 - 外币、退款、报销、转账、借款或还款。 - 日期、账户、金额、汇率或关联流水不完整。 - 分类可能有两种合理解释。
``bash python3 "$AIBOOKKEEPINGHOME/scripts/bookkeeping.py" \ --config "/absolute/path/to/config.json" \ record "用户原话" \ --source-message-id "稳定消息 ID" \ --commit ``
createdcount、duplicatecount 和流水 ID,再用一句话回执。内置解析器覆盖 examples/natural-language.md 中的高频句式。遇到更自由的表达时,先整理为结构化 JSON,字段参照 schema/transactions.schema.json,然后预览:
python3 "$AI_BOOKKEEPING_HOME/scripts/bookkeeping.py" \
--config "/absolute/path/to/config.json" record-json input.json
用户确认后追加 --commit。不要补造金额、日期、汇率、账户或关联 ID。
修改基础字段:
python3 "$AI_BOOKKEEPING_HOME/scripts/bookkeeping.py" \
--config "/absolute/path/to/config.json" \
update "BK-..." '{"amount":"38"}' --reason "用户纠正金额"
金额、类型、币种、汇率、可报销金额变更后,系统会重算本位币金额、现金流和个人消费。派生金额不能直接改。
撤销与恢复:
python3 "$AI_BOOKKEEPING_HOME/scripts/bookkeeping.py" --config "/absolute/path/to/config.json" undo "BK-..."
python3 "$AI_BOOKKEEPING_HOME/scripts/bookkeeping.py" --config "/absolute/path/to/config.json" restore "BK-..."
没有流水 ID 的“撤销上一笔”会撤销最近一条有效流水。回复时必须带回被操作的流水 ID、金额和状态。
已记 1 笔:7 月 1 日午饭 46.00 元,餐饮 / 午餐,支付宝。
流水 ID:BK-...
批量录入时先给总笔数和合计,再列出需要关注的异常。