返回顶部
k

kiwi-receiptsKiwi税务助手

NZ tax assistant for sole traders. Process receipt photos into IRD-ready GST reports, track sales income for GST Box 5, calculate IR3 annual income tax, provisional tax, asset depreciation, and export to Xero CSV. Use when: (1) user sends a receipt/invoice photo, (2) user asks about GST, income tax, or tax returns, (3) user wants to export receipts or generate reports, (4) user mentions IRD, GST, IR3, provisional tax, or depreciation.

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

kiwi-receipts

Kiwi Receipts

为个体经营者建筑商和承包商提供的新西兰税务助手。将收据照片处理成IRD可用的GST报告,跟踪销售收入,计算年度所得税(IR3)、预缴税和资产折旧。可导出为XLSX或Xero CSV格式。

这是一个个人使用的技能——每个用户运行自己的实例。无多租户,无需登录。

数据路径

~/.openclaw/data/kiwi-receipts/
├── config.json # 企业名称、GST号码、税务设置
├── receipts.json # 所有已捕获的采购收据
├── income.json # 销售/发票记录
├── assets.json # 可折旧资产登记簿
└── tax-history.json # 往年税务数据(用于预缴税)

首次设置

当用户发送setup指令,或首次使用且config.json不存在时:

  1. 1. 询问企业名称
  2. 询问GST/IRD号码
  3. 询问车辆商业使用比例(默认80%)
  4. 询问电话商业使用比例(默认70%)
  5. 保存至~/.openclaw/data/kiwi-receipts/config.json:

json
{
business_name: My Construction Ltd,
gst_number: 12-345-678,
balance_date: 31-march,
gstfilingfrequency: 2-monthly,
depreciation_method: DV,
vehiclebusinesspercent: 80,
phonebusinesspercent: 70,
homeofficepercent: 0
}

income.json 结构

每条记录代表一张发票或收到的付款:

json
[
{
id: uuid-here,
date: 2026-03-15,
client: ABC Homes Ltd,
description: Bathroom renovation - 42 Rimu St,
amountexclgst: 8500.65,
gst: 1274.35,
amountinclgst: 9775.00,
invoice_number: INV-2026-015,
status: paid,
created_at: 2026-03-15T14:30:00Z
}
]

assets.json 结构

json
[
{
id: uuid-here,
name: DeWalt DCS570 Circular Saw,
category: portablepowertools,
purchase_date: 2026-01-15,
cost: 899.00,
dv_rate: 0.40,
sl_rate: 0.30,
method: DV,
business_percent: 100,
disposed: false,
disposal_date: null,
disposal_amount: null,
created_at: 2026-01-15T10:00:00Z
}
]

tax-history.json 结构

json
{
years: {
2025: {
taxyearend: 2025-03-31,
gross_income: 95000.00,
total_expenses: 42000.00,
depreciation: 3500.00,
taxable_income: 49500.00,
taxonincome: 7582.50,
acc_levy: 826.50,
total_tax: 8409.00,
taxalreadypaid: 0,
residualincometax: 8409.00
}
}
}

处理收据照片

当用户发送图片时(检查上下文中的MediaPaths):

第一步:分析图片

使用您的视觉能力分析收据图片。提取:

json
{
merchant: Bunnings Warehouse,
date: 2026-03-15,
items: [
{ description: Timber 2x4 3.6m, quantity: 10, unit_price: 12.50, amount: 125.00 },
{ description: Concrete Mix 40kg, quantity: 5, unit_price: 9.80, amount: 49.00 }
],
subtotal: 174.00,
gst: 22.57,
total: 174.00,
gst_number: 123-456-789,
payment_method: EFTPOS,
category: materials
}

提取规则:

  • - 新西兰GST为15%。如果只显示总金额,GST按总金额 × 3/23计算
  • 如果收据上单独显示GST,则使用该值
  • 检测收据上印刷的GST号码
  • 分类为:materials(材料)、tools(工具)、fuel(燃油)、safety(安全)、subcontractor(分包商)、office(办公)、vehicle(车辆)、other(其他)
  • 日期:解析为ISO格式(YYYY-MM-DD),如未显示则假设为当前年份
  • 所有金额为新西兰元

第二步:与用户确认

发送摘要:

收据已捕获:
商家:Bunnings Warehouse
日期:2026-03-15
总金额:$174.00(GST:$22.57)
项目:Timber 2x4 3.6m x10, Concrete Mix 40kg x5
分类:材料

回复以保存,或更正任何详细信息。

第三步:保存收据数据

确认后,追加至~/.openclaw/data/kiwi-receipts/receipts.json:

bash
mkdir -p ~/.openclaw/data/kiwi-receipts

读取现有的receipts.json(或从[]开始),将新收据附加上生成的UUID作为id,然后写回。每个收据对象:

json
{
id: uuid-here,
merchant: ...,
date: 2026-03-15,
items: [...],
subtotal: 174.00,
gst: 22.57,
total: 174.00,
gst_number: ...,
category: materials,
payment_method: EFTPOS,
created_at: 2026-03-15T10:30:00Z
}

处理文本指令

setup

创建或更新config.json,包含企业名称和GST号码。

summary

读取receipts.json,筛选当前GST期间,显示:

GST期间:2026年3月-4月
采购总额:$1,527.37
可申报GST总额:$199.13
收据数量:5

按分类:
材料:$882.97(GST:$115.17)
工具:$114.00(GST:$14.87)
燃油:$131.40(GST:$17.14)
安全:$399.00(GST:$51.95)

report 或 export

生成并发送XLSX报告:

bash
python3 {baseDir}/scripts/generate_report.py \
--data ~/.openclaw/data/kiwi-receipts/receipts.json \
--income ~/.openclaw/data/kiwi-receipts/income.json \
--assets ~/.openclaw/data/kiwi-receipts/assets.json \
--tax-history ~/.openclaw/data/kiwi-receipts/tax-history.json \
--output /tmp/gst-report.xlsx \
--period current \
--business-name from config.json \
--gst-number from config.json

然后通过消息工具使用sendAttachment操作将文件发送回用户。

report YYYY-MM

为特定GST期间(包含该月份的2个月期间)生成报告。

XLSX报告包含最多7个工作表:

  1. 1. GST摘要 -- 企业信息、期间、采购总额/GST
  2. 所有收据 -- 日期、商家、分类、项目、金额
  3. 按分类 -- 材料/工具/燃油/安全等小计
  4. IRD GST101A -- 预填官方框号(见下文)
  5. 收入 -- 销售/发票记录(如果income.json有数据)
  6. 折旧 -- 资产折旧表(如果assets.json有数据)
  7. IR3年度税务 -- 年度所得税摘要(期间为all或annual时)

GST101A自动填写逻辑:

如果income.json有该期间的数据,则两侧均自动填写:
-

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 kiwi-receipts-1776113582 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 kiwi-receipts-1776113582 技能

通过命令行安装

skillhub install kiwi-receipts-1776113582

下载

⬇ 下载 kiwi-receipts v2.0.1(免费)

文件大小: 48.89 KB | 发布时间: 2026-4-17 15:10

v2.0.1 最新 2026-4-17 15:10
Fix code review issues: Xero category mismatch, remove emoji from templates, allow empty receipts, fix tax year label format, add JSON error handling

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

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

p2p_official_large
返回顶部