Task Router Skill
Task Router
智能收支追踪器 — 通过自然语言快速记账,自动分类,生成日/周/月报告和趋势分析。 支持中文自然语言输入("今天午饭花了35元"),数据本地JSON存储保护隐私。 适用于个人财务管理、预算追踪和消费分析场景。
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install dyby99-gif/smart-ledgerInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
通过自然语言快速记账,自动生成财务报告的智能工具。
# 记录支出
python scripts/expense-tracker.py add "今天午饭花了35元"
python scripts/expense-tracker.py add "昨天打车去公司28块"
python scripts/expense-tracker.py add "买衣服花了299元"
# 记录收入
python scripts/expense-tracker.py add "今天发工资8000元"
python scripts/expense-tracker.py add "收到红包200"
# 列出最近7天记录
python scripts/expense-tracker.py list
# 列出最近30天记录
python scripts/expense-tracker.py list 30
# 只显示支出
python scripts/expense-tracker.py list 7 expense
# 日报
python scripts/report-generator.py daily
python scripts/report-generator.py daily 2024-01-15
# 周报
python scripts/report-generator.py weekly
python scripts/report-generator.py weekly 1 # 上周
# 月报
python scripts/report-generator.py monthly
python scripts/report-generator.py monthly 1 # 上月
# 趋势分析
python scripts/report-generator.py trend 30
# 最近30天收支摘要
python scripts/expense-tracker.py summary
# 最近90天摘要
python scripts/expense-tracker.py summary 90
# 查看分类列表
python scripts/expense-tracker.py categories
smart-ledger/
├── SKILL.md # 本文件
├── scripts/
│ ├── expense-tracker.py # 核心记账逻辑
│ └── report-generator.py # 报告生成器
└── assets/
└── categories.json # 分类配置
~/.openclaw/workspace/data/expenses/expenses.json
数据结构:
{
"expenses": [
{
"id": "a1b2c3d4",...
These signals come from indexed source analysis and may lag behind changes. Check the current source files.
# Smart Expense Tracker - 智能收支追踪器
通过自然语言快速记账,自动生成财务报告的智能工具。
## 功能特性
- 📝 **自然语言记账**: "今天午饭花了35元"、"收到工资8000"
- 🏷️ **智能自动分类**: 自动识别餐饮、交通、购物等分类
- 📊 **多维度报告**: 日报、周报、月报、趋势分析
- 🔒 **本地数据存储**: JSON文件存储,保护隐私
- 🌐 **中英文支持**: 支持中英文自然语言输入
- ⚠️ **消费异常检测**: 自动识别异常消费模式
## 快速开始
### 添加收支记录
```bash
# 记录支出
python scripts/expense-tracker.py add "今天午饭花了35元"
python scripts/expense-tracker.py add "昨天打车去公司28块"
python scripts/expense-tracker.py add "买衣服花了299元"
# 记录收入
python scripts/expense-tracker.py add "今天发工资8000元"
python scripts/expense-tracker.py add "收到红包200"
```
### 查看记录
```bash
# 列出最近7天记录
python scripts/expense-tracker.py list
# 列出最近30天记录
python scripts/expense-tracker.py list 30
# 只显示支出
python scripts/expense-tracker.py list 7 expense
```
### 生成报告
```bash
# 日报
python scripts/report-generator.py daily
python scripts/report-generator.py daily 2024-01-15
# 周报
python scripts/report-generator.py weekly
python scripts/report-generator.py weekly 1 # 上周
# 月报
python scripts/report-generator.py monthly
python scripts/report-generator.py monthly 1 # 上月
# 趋势分析
python scripts/report-generator.py trend 30
```
### 查看统计
```bash
# 最近30天收支摘要
python scripts/expense-tracker.py summary
# 最近90天摘要
python scripts/expense-tracker.py summary 90
# 查看分类列表
python scripts/expense-tracker.py categories
```
## 项目结构
```
smart-ledger/
├── SKILL.md # 本文件
├── scripts/
│ ├── expense-tracker.py # 核心记账逻辑
│ └── report-generator.py # 报告生成器
└── assets/
└── categories.json # 分类配置
```
## 数据存储
- **路径**: `~/.openclaw/workspace/data/expenses/expenses.json`
- **格式**: JSON
- **隐私**: 纯本地存储,不上传云端
数据结构:
```json
{
"expenses": [
{
"id": "a1b2c3d4",...Task Router
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.