返回顶部
l

ledgiLedgi金融数据交互

Interact with the user's Ledgi personal finance data. Use when the user asks about their accounts, balances, net worth, holdings, investments, ISA allowances, pensions, snapshots, or wants to add/update financial data.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
172
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

ledgi

技能名称: ledgi
详细描述:

Ledgi CLI 技能

你可以使用 ledgi CLI 与用户的 Ledgi 个人财务追踪器进行交互。所有财务数据均通过 Ledgi Agent API 访问。

前置条件

  • - 必须安装 ledgi CLI。若未安装,请使用以下命令安装:
bash curl -fsSL https://raw.githubusercontent.com/LedgiApp/ledgi-cli/main/install.sh | bash
  • - 必须设置 LEDGIAPIKEY 环境变量,或用户已运行 ledgi login --api-key ledgisk...

如果命令因认证错误失败,请要求用户设置其 API 密钥。

核心工作流程

读取财务数据

bash
ledgi accounts list # 所有账户
ledgi accounts list --type isa_stocks # 按类型筛选
ledgi holdings list # 所有投资持仓
ledgi holdings list --account-id ID # 单个账户中的持仓
ledgi networth summary # 净资产明细
ledgi snapshots list # 历史快照
ledgi isa summary # ISA 免税额度和使用情况

所有命令默认返回 JSON 格式。向用户展示时,请使用 --output table 参数以获取人类可读的输出。

创建或更新账户

单个账户:
bash
ledgi accounts upsert --name Monzo Current --type current --balance 2500 --currency GBP --institution Monzo

多个账户:先编写 JSON 文件,然后批量更新:
bash
ledgi accounts bulk-upsert --file /tmp/accounts.json

JSON 文件格式请参见 schemas.md

创建或更新持仓

先编写 JSON 文件,然后批量更新:
bash
ledgi holdings bulk-upsert --file /tmp/holdings.json

创建净资产快照

bash
ledgi snapshots create
ledgi snapshots create --date 2026-01-31

记录 ISA 存款

bash
ledgi isa deposit --account-id ACCOUNT_ID --amount 5000 --date 2026-02-24

有效的账户类型

请使用以下精确值作为 --type 参数:

  • - 现金类:cash、current、savings、premiumbonds
  • ISA 类:isacash、isastocks、isalifetime、isainnovative
  • 养老金类:pension、pensionworkplace、pensionsipp、pensionstate
  • 投资类:investment、cryptowallet
  • 房产类:property
  • 债务类:creditcard、loan、mortgage、studentloan
  • 其他类:otherasset、other_liability

错误处理

  • - 401 未授权:API 密钥缺失或无效。请要求用户检查其密钥。
  • 403 禁止访问:API 密钥没有所需的作用域。告知用户需要哪个作用域。
  • 404 未找到:引用的资源不存在。
  • 422 验证错误:输入无效。请检查账户类型或必填字段。

重要说明

  • - 向用户展示结果时,始终使用 --output table 参数以确保可读性。
  • 创建账户时,请包含 --external-id 参数以实现幂等性,避免重复运行创建重复账户。
  • 货币值以账户的货币单位为准(默认为 GBP)。
  • --date 参数使用 YYYY-MM-DD 格式。

完整命令参考请参见 commands.md
JSON 文件模式请参见 schemas.md

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ledgi-1776065403 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ledgi-1776065403 技能

通过命令行安装

skillhub install ledgi-1776065403

下载

⬇ 下载 ledgi v1.0.0(免费)

文件大小: 4.7 KB | 发布时间: 2026-4-15 13:13

v1.0.0 最新 2026-4-15 13:13
- Initial release of the ledgi skill for interacting with personal finance data via the ledgi CLI.
- Supports listing, creating, and updating accounts, holdings, snapshots, and ISA deposits.
- Provides summaries for accounts, holdings, net worth, ISA usage, and historical snapshots.
- Includes error handling for authorization issues and invalid input.
- Detailed instructions for bulk operations and required account types.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部