← 返回 Skills 市场
ppopen

Personal Finance

作者 pp · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
868
总下载
1
收藏
16
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-skill-personal-finance
功能描述
Parse personal finance CSV exports, validate schema, categorize transactions via local rules, and summarize/report income, expenses, merchants, and categories.
使用说明 (SKILL.md)

Personal Finance

Scope & Safety

  • Operate on exported bank or credit-card CSVs in a read-only manner by default; no automatic uploads, API calls, or write-backs occur unless an explicit --output path is provided.
  • Mask account numbers in all CLI outputs by replacing digits except the final four to keep PII safe for every command.
  • Work offline; all logic lives inside personal-finance.sh, config/category-rules.json, and the included sample CSV.

Primary Operations

All commands live in personal-finance.sh at the skill root. Invoke with:

./personal-finance.sh \x3Ccommand> [--csv \x3Cpath>] [--config \x3Cpath>] [--output \x3Cpath>] [--period \x3Cperiod>]

1. validate

Checks that the CSV contains the required fields (date, description, amount, account_number) and that every amount is numeric. Use this before processing new exports to avoid schema drift.

./personal-finance.sh validate --csv sample-data/sample-transactions.csv

2. summarize

Aggregates income (positive amount) and expenses (negative amount) by period. Supports month, quarter, or year (default month). Outputs totals and net flows.

./personal-finance.sh summarize --period month --csv sample-data/sample-transactions.csv

3. categorize

Uses the local rules file (config/category-rules.json) to map descriptions to categories through keyword matching. Prints each transaction with masked accounts and assigned categories. Pass --output to emit a new CSV; otherwise, it stays read-only.

./personal-finance.sh categorize --csv sample-data/sample-transactions.csv --output /tmp/categorized.csv

4. report

Builds insight summaries: top merchants and categories by spend, plus transaction counts. It reuses the same rules file so it can work offline and stay consistent with categorize.

./personal-finance.sh report --csv sample-data/sample-transactions.csv

Configuration & Samples

  • config/category-rules.json: keyword-to-category rules that categorize and report share.
  • sample-data/sample-transactions.csv: minimal CSV (date, description, merchant, category, amount, account_number) for smoke tests and onboarding.

Keep both files in the skill folder. Adjust the JSON rules for your own merchant vocabulary; the script reloads them each run and never calls external services.

安全使用建议
This skill is internally consistent with an offline personal-finance utility, but review these before installing or running: 1) The main script runs an embedded Python program — read the Python block to ensure no unexpected behavior. 2) The README mentions jq and bash but the script requires python3; ensure python3 is available. 3) Output safety: absolute output paths are restricted to the user home, but relative paths are allowed and will be created relative to your current directory — avoid running with an output path that could overwrite important files. 4) The package metadata/source/homepage are missing/unspecified; prefer code from a known repository or inspect the files locally before use. 5) Test first on the included sample data and run the validate command before processing real statements. If you need higher assurance, run the script in a sandboxed environment or review the full embedded Python code line-by-line.
功能分析
Type: OpenClaw Skill Name: openclaw-skill-personal-finance Version: 1.0.0 The skill bundle provides a legitimate, offline tool for processing personal finance CSV files. It includes privacy-focused features such as automatic account number masking and restricts file output to the user's home directory. The implementation in `personal-finance.sh` (via an embedded Python script) is well-structured, lacks network access, and contains no evidence of malicious intent or high-risk vulnerabilities.
能力评估
Purpose & Capability
The files and script implement CSV validation, summarization, categorization via local JSON rules, and reporting as claimed. However there are small mismatches: README and SKILL.md mention jq and bash usage while the main script actually invokes embedded Python (requires python3). The README suggests a GitHub clone URL and mentions a 'category' column in examples, but the shipped sample CSV omits a category header (the script handles that). Metadata claims no required binaries, but the runtime requires python3. These are packaging/documentation inconsistencies but not evidence of hidden capabilities.
Instruction Scope
SKILL.md and README state read-only behavior by default, account masking, and offline operation. The script follows that: it reads local CSV/rules, masks account digits in outputs, and only writes when --output is provided. The embedded Python performs file size checks and enforces output-path safety (absolute paths must start in the user's home). Note: absolute-path check only applies to absolute paths — relative output paths are allowed and will be created relative to the current working directory. Also the runtime executes embedded Python code (contained in the script) — review the Python block before running with sensitive data.
Install Mechanism
No install spec is present (instruction-only skill with bundled script and sample files). Nothing downloads or extracts code at install time. This lowers installation risk.
Credentials
The skill declares no required environment variables or credentials and the code does not access external secrets. Minor mismatch: README lists jq as a requirement and package metadata lists no required binaries, but the script needs python3. No network calls are made by the code. Overall the credential/environment access is minimal and proportionate.
Persistence & Privilege
always is false and the skill does not request persistent agent privileges. It only writes files when explicitly given an --output path and does not modify other skills or global agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-skill-personal-finance
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-skill-personal-finance 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Skills Factory publish batch retry
元数据
Slug openclaw-skill-personal-finance
版本 1.0.0
许可证
累计安装 16
当前安装数 16
历史版本数 1
常见问题

Personal Finance 是什么?

Parse personal finance CSV exports, validate schema, categorize transactions via local rules, and summarize/report income, expenses, merchants, and categories. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 868 次。

如何安装 Personal Finance?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-skill-personal-finance」即可一键安装,无需额外配置。

Personal Finance 是免费的吗?

是的,Personal Finance 完全免费(开源免费),可自由下载、安装和使用。

Personal Finance 支持哪些平台?

Personal Finance 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Personal Finance?

由 pp(@ppopen)开发并维护,当前版本 v1.0.0。

💬 留言讨论