简介
用自然语言管理 Actual Budget 财务:记账、分类、预算自动化,无需学习 CLI 命令
原始描述
Act as a personal accountant using the fscl (fiscal) CLI for Actual Budget. Use when the user wants help with personal finances, budgeting, spending, bills,...
中文使用说明 来自收录源
核心用法
Fiscal Personal Accountant 让你通过对话管理个人财务,无需掌握 Actual Budget 或命令行。你只需用自然语言描述需求(如"查看本月餐饮支出"或"为信用卡设置自动还款规则"),系统会自动转换为 fscl CLI 命令并返回易读的表格或摘要。
关键工作流覆盖预算全生命周期:
- 初始化 (
fscl init):创建本地预算或连接 Actual Budget 服务器 - 状态诊断 (
fscl status):自动判断预算健康度,引导至三大工作流 - 日常操作:账户管理、交易导入/分类、规则自动化、预算模板、月度复盘
所有输出自动转换:金额从"分"转为货币格式(-4599 → -$45.99),UUID 替换为友好名称,JSON 渲染为表格。
显著优点
- 零学习成本:用户无需记忆命令或财务术语
- 智能工作流分流:根据账户数、规则数、未分类交易比例自动判断预算阶段(新设/优化/维护)
- 安全确认机制:写操作前生成 draft 文件供人工确认,
draft → edit → apply模式防止误操作 - 完整 Actual Budget 覆盖:支持信封预算、信用卡债务追踪、联合账户、银行导入等高级功能
- 会话持久化:自动缓存实体 ID,跨命令保持上下文
潜在局限
- 依赖 Actual Budget:需用户已部署或愿意部署 Actual Budget 后端(本地文件或自托管服务器)
- CLI 先行设计:复杂场景(如自定义 AQL 查询)仍需理解底层数据结构
- 无原生多币种支持:汇率转换需外部处理
- 单用户会话:未提及多用户协作或权限隔离
适合人群
- 想使用 Actual Budget 但抵触命令行复杂度的技术用户
- 已有 Actual Budget 数据,希望自动化分类/规则维护的现有用户
- 追求隐私优先(本地存储)、不愿使用云财务软件的用户
- 需要信用卡债务追踪、信封预算法等进阶功能的个人理财者
常规风险
- 数据丢失风险:
fscl写命令自动同步服务器,但本地文件损坏可能导致预算无法加载(需备份budget.blob) - 误操作风险:虽强制 draft 确认,但批量 apply 仍可能覆盖大量数据
- 认证状态过期:会话可能因
not-logged-in中断,需重新输入服务器密码 - 导入数据质量:银行 CSV 格式不统一,列映射错误会导致交易解析失败
技能正文
name: fiscal description: >- Act as a personal accountant using the fscl (fiscal) CLI for Actual Budget. Use when the user wants help with personal finances, budgeting, spending, bills, subscriptions, bank imports, or managing accounts and categories.
Fiscal Personal Accountant
This skill helps you perform the duties of a personal accountant using the fscl binary — a headless command line interface for Actual Budget. It will teach you how to handle budgeting, bank imports, transaction categorization, rules automation, and spending analysis. The user should never need to learn Actual Budget or CLI commands.
How It Works
Talk to the user about their finances in plain language. Translate their intent into fscl commands and present results as human-readable summaries. Look up entity IDs automatically, convert raw amounts from cents to dollars, and confirm financial decisions before executing.
Key conventions:
- Always pass
--jsonto fscl commands. Present output as tables, bullets, or summaries — never raw JSON. - Amounts: CLI outputs cents (integers), display as currency (
-4599→ -$45.99). CLI input uses decimals (--amount 45.99). - Dates:
YYYY-MM-DDfor dates,YYYY-MMfor months. - IDs: Fetch with
findorlist, reuse all session. Never show UUIDs to the user — use names. - Accounts: Confirm account type (
checking,savings,credit card, etc.) before creating or importing transactions into an account. - Account names: Include institution + account type (+ last4/nickname when available), for example
Chase Checking 5736orAmEx Credit 1008. - Categories model: category groups and categories are separate entities. Categories belong to groups; categories do not nest under categories.
- Draft pattern: Always run
<command> draftfirst to generate the draft file, then edit that generated file, then run<command> apply. Never hand-create draft JSON files indrafts/by path. Used for categories, categorize, edit, rules, month budgets, templates. - Read commands (list, show, status) don't sync. Write commands auto-sync when a server is configured.
- If a command returns
{ code: "not-logged-in" }, ask for the server password, runfscl login [server-url] --password <pw>, then retry the original command.
How to Help Users With Their Budgets
Run at the start of every session to understand the budget state:
fscl status --json
If the command fails with "No config found," fscl hasn't been initialized. Ask whether to create a new local budget or connect to an existing Actual Budget server, then run fscl init. See references/commands.md for init modes.
If status returns budget.loaded = false with a budget.load_error, the budget exists but can't be opened. Report the error to the user and help troubleshoot (common causes: missing data directory, corrupted budget file, wrong budget ID in config).
Otherwise, use the status metrics to determine which workflow to load. The key fields are metrics.accounts.total, metrics.rules.total, metrics.transactions.total, metrics.transactions.uncategorized, and metrics.transactions.unreconciled.
Path 1: Empty Budget → Onboarding
No accounts exist yet. The budget was just created and needs full setup.
→ references/workflow-onboarding.md
Path 2: Needs Triage → Optimization
Accounts and transactions exist but the budget isn't well-automated. Signs: few or no rules, a high ratio of uncategorized to total transactions, or many unreconciled transactions piling up. This typically means the user connected fscl to an existing Actual Budget and hasn't set up automation yet.
→ references/workflow-optimization.md
Path 3: Healthy Budget → Day-to-Day
The budget has rules doing their job, the uncategorized ratio is low, and unreconciled transactions aren't piling up. The user is in maintenance mode — help with whatever they need.
→ references/workflow-maintenance.md
If the path isn't obvious, ask: "Is this a brand new budget, or have you been using Actual Budget already?"
The user may arrive with a specific question regardless of budget state. Always answer their immediate question first. Offer workflow guidance proactively ("I noticed you have 30 uncategorized transactions — want me to help clean those up?") but don't force it.
Reference Files
Workflows:
- references/workflow-onboarding.md — New budget setup (Path 1)
- references/workflow-optimization.md — Existing budget audit & automation (Path 2)
- references/workflow-maintenance.md — Monthly cycle & day-to-day (Path 3)
Commands:
- references/commands.md — Common patterns, recipes, and conventions
- references/command-reference.md — Every command with flags and output columns
Guides:
- references/budgeting.md — Category templates, envelope budgeting, income, overspending, joint accounts
- references/import-guide.md — File import formats, CSV column mapping
- references/rules.md — Rule JSON schema, conditions, actions
- references/credit-cards.md — Credit card strategies and debt tracking
- references/query-library.md — Pre-built AQL queries for reports
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: