Summary
初始化或检查 AI 记账账本。当用户说“开始记账”“初始化账本”“创建记账表”“连接飞书多维表”“配置 AI 记账”或“重建演示账本”时触发。支持本地 SQLite 和已有飞书多维表,检查字段、凭据与基础设置,并明确告诉用户后续如何录入。
tjxj/ai-bookkeeping-skills · Archived
初始化或检查 AI 记账账本。当用户说“开始记账”“初始化账本”“创建记账表”“连接飞书多维表”“?
npx skills add tjxj/ai-bookkeeping-skills --skill setup-ai-bookkeeping
初始化或检查 AI 记账账本。当用户说“开始记账”“初始化账本”“创建记账表”“连接飞书多维表”“配置 AI 记账”或“重建演示账本”时触发。支持本地 SQLite 和已有飞书多维表,检查字段、凭据与基础设置,并明确告诉用户后续如何录入。
This repository is archived — consider an actively maintained alternative.
生成个人月账单和消费分析。当用户说“出 7 月账单”“生成本月月账单”“做一个 HTML 消费报告”“分析我这…
4 installs用自然语言录?
4 installsSet up AI Runway on AKS — from bare cluster to running model. Covers cluster verification, cont…
314.8K 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,296 B
SUMMARY.md
353 B
为另外 3 个记账 Skill 准备同一份账本。
先确定仓库根目录和配置文件。仓库根目录建议保存为 AIBOOKKEEPINGHOME,真实配置建议用 config.json:
python3 "$AI_BOOKKEEPING_HOME/scripts/bookkeeping.py" \
--config "/absolute/path/to/config.json" setup
不要在回复、日志或提交文件中展示飞书应用密钥。
- 用户要先试用、离线使用、跑 Demo:选择 SQLite。 - 用户有应用凭据并连接已有表:选择 Feishu HTTP。 - 用户本机已有 lark-cli profile:选择 lark_cli 用户授权模式。
config.example.json 复制一份真实配置,填写本位币、时区和大额确认线。setup,然后确认返回 9 张业务表。- “流水”表已按 schema/data-model.md 创建。 - apptoken 与 tableids.transactions 已填写。 - FEISHUAPPID 和 FEISHUAPPSECRET 只存在环境变量。 - 应用拥有多维表读写权限,并已被添加为该多维表的协作者。
setup 检查连接。遇到飞书错误时保留错误码,给出直接可执行的修复建议。``bash python3 "$AIBOOKKEEPINGHOME/scripts/bookkeeping.py" \ --config "/absolute/path/to/config.json" \ record "今天午饭 1 元,支付宝" ``
用户明确要求创建新工作台时,使用通用建表脚本。先干跑:
python3 "$AI_BOOKKEEPING_HOME/scripts/provision_lark_base.py" \
--config "/absolute/path/to/config.json" \
--name "AI 账本工作台" \
--dry-run
向用户确认将创建 1 个 Base、9 张表和对应字段。得到明确确认后执行同一命令,把 --dry-run 改成 --apply。
脚本使用配置中的 lark-cli profile 与 user 身份,串行调用 +base-create、+table-create 和 +field-create。完成后从本地结果取出 Base token 与“流水”的 table ID,分别放入受保护的环境变量和被忽略的本地配置,再运行 setup。资源标识本身不授予权限,也不要提交到公开仓库、文章或聊天记录。
本地账本包含:流水、待处理输入、账户、分类、预算、项目账本、周期计划、收入目标和设置。
飞书 HTTP 模式的字段名默认使用 schema/feishu-field-map.example.json。lark-cli 模式默认适配 schema/ai-bookkeeping-workbench-v1.json 中的现有工作台字段。用户改过字段名时,在配置的 field_map 中覆盖对应关系。
setup 可以重复运行。SQLite 只补齐缺失的表和默认字典,不清空旧账。两个飞书连接后端只检查目标表,不修改表结构;创建空白工作台使用独立 provision 脚本。
setup 返回成功。