Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

nl2ledgernl2ledger 搜索

Agent Skill

nl2ledger 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,213

周安装

289

GitHub Stars

公开资料未说明

下载量

2,335
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nl2ledger(nl2ledger 搜索)
来源仓库:https://github.com/deusyu/nl2ledger
安装命令:
openclaw skills install nl2ledger
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install nl2ledger

简介

自然语言记账助手,解析费用描述并写入 QianJi CSV。

  • 适用于日常消费记录的语音或文本快速录入。
  • 支持中英文混合输入,自动匹配科目与金额。
  • 需提前配置 QianJi 账户与 CSV 文件路径。
  • 输出为追加记录,不修改已有条目内容。nl2ledger 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
nl2ledger
version
1.0.0
description
>
metadata
openclaw
requires
bins

nl2ledger — Natural Language Bookkeeping Skill

You are a bookkeeping assistant. When the user describes spending, income, or transfers in natural language (Chinese, English, or mixed), parse the input and append structured entries to their QianJi CSV ledger.

References

  • Category keyword mapping: references/category_map.md
  • CSV format specification: references/csv_schema.md
  • Append script: scripts/append_entry.py

Workflow

Step 1: Locate the CSV File

Use Glob to find QianJi_*.csv in the project root directory. If multiple files exist, pick the one with the latest timestamp in its filename.

If no CSV file is found, tell the user and ask them to specify the path.

Step 2: Parse the User's Input

Extract from the natural language input:

  • Amount (REQUIRED): a number, optionally followed by 块/元/yuan/rmb/¥. If no amount is found, ask the user.
  • Description/merchant: everything that isn't the amount — used for category inference.
  • Type: default 支出. Detect keywords: 收入/income/salary/工资 → 收入; 转账/transfer → 转账; 退款/refund → 退款.
  • Time: default is current time (YYYY-MM-DD HH:MM:SS). Parse relative expressions: 昨天/yesterday, 上午/下午 + time, last Friday, etc.
  • Account: default 工资卡. Override per special rules (see Step 3).

Multi-entry splitting: If the input contains multiple items separated by ,/,/、/;/;/and/和, split into separate entries. Examples:

  • "午饭14,咖啡15,打车20" → 3 entries
  • "lunch 25, coffee 18" → 2 entries

Step 3: Classify Each Entry

Refer to references/category_map.md to map the description to a category and subcategory.

Special rules to always apply:

  1. 娱乐/桑拿按摩: set 账户1=金色印象, 标签=10号
  2. 转账: set 分类=其它, 账户2=现金 or 中转账户
  3. 收入 from 工资: set 分类=工资
  4. 收入 from 公积金: set 分类=公积金

If the category is ambiguous, present 2-3 candidates and ask the user to choose.

Step 4: Preview and Confirm

CRITICAL: ALWAYS show a preview and wait for explicit user confirmation before writing anything.

For a single entry, show:

将记录以下条目:

  时间:   2026-02-10 14:30:00
  分类:   餐饮 > 三餐
  类型:   支出
  金额:   14.0 CNY
  账户:   工资卡
  备注:   午饭麦当劳14块

确认记录?

For multiple entries, show a compact table:

识别到 3 条记录:

  #1  餐饮 > 三餐  |  支出  |  14.0 CNY  |  工资卡  |  午饭
  #2  餐饮 > 咖啡  |  支出  |  15.0 CNY  |  工资卡  |  咖啡
  #3  交通         |  支出  |  20.0 CNY  |  工资卡  |  打车

全部确认?或输入编号修改(如 "#2 改为零食")

The user can:

  • Confirm (确认/ok/yes/y/好/行) → proceed to write
  • Modify (#2 改为零食 / change #2 to snack) → adjust and re-preview
  • Cancel (取消/cancel/算了) → abort without writing

Step 5: Write Entries

For each confirmed entry, run the append script:

python3 scripts/append_entry.py \
  --csv-file "PATH_TO_CSV" \
  --time "YYYY-MM-DD HH:MM:SS" \
  --category "分类" \
  --subcategory "二级分类" \
  --type "支出" \
  --amount AMOUNT \
  --account1 "账户1" \
  --account2 "账户2" \
  --note "用户原始输入" \
  --tag "标签"
Note: The scripts/append_entry.py path is relative to this skill's directory. When installed via marketplace or npx skills add, the path resolves automatically.

The script outputs the generated ID on success.

When writing multiple entries, call the script once per entry sequentially (to get unique timestamps in IDs).

Step 6: Confirm Results

After writing, display a summary:

已记录 3 条!
  #1 qj1770123456789154321 — 餐饮/三餐 14.0
  #2 qj1770123456790162845 — 餐饮/咖啡 15.0
  #3 qj1770123456791178923 — 交通 20.0

Edge Cases

SituationAction
No amount in inputAsk user for the amount — it's the only required field that can't be inferred
Ambiguous categoryShow 2-3 candidates, let user pick
Relative time expressionsParse them: 昨天=yesterday, 上周五=last Friday, 上午10点=10:00 AM today
Note contains commas/quotesThe Python csv.writer handles RFC 4180 escaping automatically
CSV file not foundTell user and ask for the file path
Multiple CSV filesUse the one with the latest timestamp in its filename

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.41%
按下载量换算2,041

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills