AI & Integration v1.0.0

ynab

Manage YNAB budgets, accounts, categories, and transactions via CLI.

obviyus 更新于 2026-01-05 1 浏览
下载 SKILL

技能说明

Manage YNAB budgets, accounts, categories, and transactions via CLI.

使用场景

Notes - Amounts are in your budget's currency, not milliunits - Use --compact for minified JSON - Rate limit: 200 req/hour - Cannot create categories/groups/payees via API

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/ynab
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 18 kB
SKILL.md text/markdown
---
name: ynab
description: Manage YNAB budgets, accounts, categories, and transactions via CLI.
metadata: {"clawdbot":{"emoji":"💰","requires":{"bins":["ynab"],"env":["YNAB_API_KEY"]},"primaryEnv":"YNAB_API_KEY","install":[{"id":"node","kind":"node","package":"@stephendolan/ynab-cli","bins":["ynab"],"label":"Install ynab-cli (npm)"}]}}
---

# YNAB CLI

Install
```bash
npm i -g @stephendolan/ynab-cli
```

Auth
```bash
# Get API key from https://app.ynab.com/settings/developer
# Then set YNAB_API_KEY env var, or:
ynab auth login
ynab auth status
```

Budgets
```bash
ynab budgets list
ynab budgets view [id]
ynab budgets set-default <id>
```

Accounts
```bash
ynab accounts list
ynab accounts view <id>
ynab accounts transactions <id>
```

Categories
```bash
ynab categories list
ynab categories view <id>
ynab categories transactions <id>
ynab categories budget <id> --month <YYYY-MM> --amount <amount>
```

Transactions
```bash
ynab transactions list
ynab transactions list --account <id> --since <YYYY-MM-DD>
ynab transactions list --approved=false --min-amount 100
ynab transactions search --memo "coffee"
ynab transactions search --payee-name "Amazon"
ynab transactions view <id>
ynab transactions create --account <id> --amount <amount> --date <YYYY-MM-DD>
ynab transactions update <id> --amount <amount>
ynab transactions delete <id>
ynab transactions split <id> --splits '[{"amount": -50.00, "category_id": "xxx"}]'
```

Payees
```bash
ynab payees list
ynab payees view <id>
ynab payees update <id> --name <name>
ynab payees transactions <id>
```

Months
```bash
ynab months list
ynab months view <YYYY-MM>
```

Scheduled
```bash
ynab scheduled list
ynab scheduled view <id>
ynab scheduled delete <id>
```

Raw API
```bash
ynab api GET /budgets
ynab api POST /budgets/{budget_id}/transactions --data '{"transaction": {...}}'
```

Notes
- Amounts are in your budget's currency, not milliunits
- Use `--compact` for minified JSON
- Rate limit: 200 req/hour
- Cannot create categories/groups/payees via API

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。