← 返回 Skills 市场
ckchzh

Cashflow

作者 BytesAgain2 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ 安全检测通过
312
总下载
0
收藏
1
当前安装
8
版本数
在 OpenClaw 中安装
/install cashflow
功能描述
Track personal cash flow with simple terminal commands and local storage. Use when logging daily expenses, reviewing balance, or exporting records.
使用说明 (SKILL.md)

CashFlow

CashFlow is a multi-purpose utility tool for tracking and managing data entries from the terminal. It provides a simple log-based system for adding, listing, searching, and exporting entries with timestamped records.

Commands

Command Description
cashflow run \x3Cargs> Execute the main function with given arguments
cashflow config Show configuration file location (config.json)
cashflow status Show current status (ready/not ready)
cashflow init Initialize the data directory
cashflow list List all entries in the data log
cashflow add \x3Centry> Add a new dated entry to the data log
cashflow remove \x3Centry> Remove an entry
cashflow search \x3Cterm> Search entries (case-insensitive grep)
cashflow export Export all data to stdout
cashflow info Show version and data directory path
cashflow help Show all available commands
cashflow version Show version number

How It Works

CashFlow uses a flat-file approach. All entries are stored in data.log as dated lines (YYYY-MM-DD \x3Ccontent>). Every command also appends a timestamped record to history.log for auditing.

  • add appends a new line with today's date
  • list prints the full data log
  • search performs case-insensitive matching via grep
  • export dumps the raw data log to stdout for piping/redirection

Data Storage

All data is stored locally in ~/.local/share/cashflow/ by default:

  • data.log — Main data file with all entries (one per line, date-prefixed)
  • history.log — Timestamped audit trail of every command executed
  • config.json — Configuration file (referenced by cashflow config)

Override the storage location by setting the CASHFLOW_DIR environment variable:

export CASHFLOW_DIR="$HOME/my-data/cashflow"

Alternatively, XDG_DATA_HOME is respected if CASHFLOW_DIR is not set.

Requirements

  • bash 4+ (uses set -euo pipefail for strict mode)
  • Standard Unix tools (grep, date, cat)
  • No API keys needed
  • No external dependencies

When to Use

  1. Quick data logging — Use cashflow add to rapidly log entries (expenses, tasks, notes) with automatic date stamps
  2. Reviewing stored entries — Run cashflow list to see everything you've logged, or cashflow search to find specific entries
  3. Exporting data for analysis — Use cashflow export > data.csv to dump all entries for import into spreadsheets or other tools
  4. Project initialization — Run cashflow init to set up the data directory on a new machine or project
  5. Checking tool status — Use cashflow status and cashflow info to verify the tool is ready and see version/path information

Examples

# Initialize the data directory
cashflow init

# Add entries
cashflow add "Monthly rent payment 2500"
cashflow add "Freelance invoice received 8000"
cashflow add "Grocery shopping 350"

# List all entries
cashflow list
# Search for specific entries
cashflow search rent
cashflow search invoice

# Export data to a file
cashflow export > my-records.txt

# Check status and info
cashflow status
cashflow info
# Run a custom operation
cashflow run process-monthly

# View configuration location
cashflow config

# Remove an entry
cashflow remove "old entry"

# Show version
cashflow version

Output

All command output goes to stdout. The history log is always written to $DATA_DIR/history.log. Redirect output as needed:

cashflow list > all-entries.txt
cashflow export | grep "2026-03" > march-data.txt

Configuration

Variable Purpose Default
CASHFLOW_DIR Override data/config directory ~/.local/share/cashflow/
XDG_DATA_HOME Fallback base directory ~/.local/share/

Powered by BytesAgain | bytesagain.com | [email protected]

安全使用建议
This skill appears to do what it says: local, flat-file expense logging. Before installing/running: (1) review scripts/script.sh yourself (it's plaintext shell) to confirm you accept its behavior; (2) be aware history.log records every command and its arguments — avoid entering sensitive secrets (passwords, full card numbers) as entries or move the data dir to a secure location and apply appropriate filesystem permissions; (3) back up or export data if you need portability; (4) if you let autonomous agents invoke skills, remember the agent could run the commands and write files in your data directory — restrict that capability if you don't want automated writes. Overall this skill is coherent and low-risk, but treat stored financial data with normal privacy precautions.
功能分析
Type: OpenClaw Skill Name: cashflow Version: 2.0.1 The CashFlow skill is a simple Bash-based utility for logging and searching local text entries. Analysis of 'scripts/script.sh' and 'SKILL.md' shows no network activity, no credential access, and no suspicious execution patterns; it strictly manages data within a local directory (~/.local/share/cashflow/).
能力评估
Purpose & Capability
The name/description match the included script and SKILL.md. The functionality (add/list/search/export) is implemented via a local flat-file approach and optionally respects CASHFLOW_DIR / XDG_DATA_HOME — these are appropriate for a local cash-flow tool.
Instruction Scope
Instructions and the script remain within purpose: they read optional env vars for data location and perform local file I/O and grep. One privacy-relevant behavior: every command is appended to history.log (including arguments), so sensitive data entered as an entry will be recorded in history.
Install Mechanism
No install spec (instruction-only). The repo includes a single, readable shell script. No downloads or package installs are requested.
Credentials
The skill requests no credentials and only optionally uses CASHFLOW_DIR or XDG_DATA_HOME to locate local storage. No unrelated env vars or secrets are required.
Persistence & Privilege
always:false and normal autonomous-invocation defaults. The skill writes files under the user's data directory ($HOME/.local/share/cashflow by default). If you allow autonomous agent invocation, note the agent could create/modify those files — this is expected but worth considering.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cashflow
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cashflow 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.5
yaml-fix+quality
v1.0.4
yaml-fix+quality
v1.0.3
Quality upgrade
v1.0.2
Quality upgrade: custom functionality
v1.0.1
Standards compliance: unique content, no template text
v1.0.0
Initial release
元数据
Slug cashflow
版本 2.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 8
常见问题

Cashflow 是什么?

Track personal cash flow with simple terminal commands and local storage. Use when logging daily expenses, reviewing balance, or exporting records. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 312 次。

如何安装 Cashflow?

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

Cashflow 是免费的吗?

是的,Cashflow 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cashflow 支持哪些平台?

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

谁开发了 Cashflow?

由 BytesAgain2(@ckchzh)开发并维护,当前版本 v2.0.1。

💬 留言讨论