发票:专业的账单与税务自动化 - Openclaw Skills

作者:互联网

2026-03-28

AI教程

什么是 发票技能?

发票技能是 Openclaw Skills 集合中一个强大的解决方案,专为自由职业者和企业设计,旨在简化其对外账单周期。它管理发票的整个生命周期,从初始草案创建到最终 PDF 生成和付款跟踪,确保符合所有法律和专业标准。

与处理进项收据的简单费用跟踪器不同,此技能专门专注于账单文件的创建。它具有内置的关联编号逻辑和透明的税务报告功能,为管理客户数据和业务配置提供了结构化环境。这使其成为维护准确财务记录和确保跨不同司法管辖区税务合规的基本工具。

下载入口:https://github.com/openclaw/skills/tree/main/skills/ivangdavila/invoice

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install invoice

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 invoice。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

发票技能 应用场景

  • 生成具有完整税务合规性和公司详细信息的专业 B2B 发票。
  • 在不同系列中自动生成连续的发票编号,以防止编号缺失。
  • 为每笔交易计算复杂的税率,包括基本金额和总额。
  • 跟踪已发送发票的状态,以管理现金流和付款提醒。
  • 为各种业务场景创建信用票据和简化发票。
发票技能 工作原理
  1. 发现阶段,确定客户信息、提供的服务和金额。
  2. 草案生成,技能计算税费并分配下一个连续编号。
  3. 审核过程,预览发票详情并进行必要的编辑。
  4. 最终确定步骤,锁定发票并生成 PDF。
  5. 可选发送阶段,通过电子邮件将发票交付给客户。
  6. 付款跟踪,监控发票状态直至完成。

发票技能 配置指南

要在 Openclaw Skills 框架中使用此技能,您需要配置您的业务身份。首先,通过提供您的企业名称、税务 ID 和银行详细信息来初始化配置。您可以设置默认税率和发票系列格式(例如 F-2026-)。确保您的目录结构已准备就绪:

mkdir -p ~/billing/{drafts,sent,clients}
touch ~/billing/config.json ~/billing/series.json

编辑 config.json 以包含您的 IBAN 和用于自动交付的首选电子邮件设置。

发票技能 数据架构与分类体系

该技能使用清晰的分类法在 ~/billing/ 目录中组织数据:

目录/文件 描述
~/billing/drafts/ 包含按客户名称组织的进行中发票。
~/billing/sent/ 按年份(例如 2026)组织的最终 PDF 发票。
~/billing/clients/index.json 客户税务 ID、地址和联系信息的数据库。
config.json 存储用户业务数据、付款详情和模板。
series.json 跟踪每个系列最后使用的发票编号以确保关联性。
name: Invoice
description: Create and send professional invoices with automatic numbering, tax calculation, templates, and payment tracking.

Role

Create invoices through a structured process. Gather client data, calculate taxes, generate PDF, send, track payment.

Key difference: This skill CREATES invoices to send. The invoices skill MANAGES received invoices.


Storage

~/billing/
├── drafts/                   # Work in progress
│   └── {client-name}/
│       ├── current.md        # Latest version
│       └── versions/         # v001.md, v002.md
├── sent/                     # Finalized invoices
│   └── 2026/
│       └── F-2026-001.pdf
├── clients/                  # Client database
│   └── index.json
├── config.json               # User's business data, templates
└── series.json               # Numbering per series

Quick Reference

Topic File
Invoice creation phases phases.md
Client data management clients.md
Template and PDF generation templates.md
Legal requirements by country legal.md
Invoice types (regular, simplified, credit) types.md

Process Summary

  1. Discovery — Identify client, service, amount. Load or create client record.
  2. Draft — Generate invoice with auto-calculated taxes and next number.
  3. Review — Show preview, allow edits.
  4. Finalize — Generate PDF, lock number.
  5. Send — Email to client (optional).
  6. Track — Monitor payment status.

See phases.md for detailed workflow.


Critical Rules

  • Never reuse numbers — Even cancelled invoices keep their number. Use credit notes for corrections.
  • Correlative numbering — No gaps within a series. F-001, F-002, F-003.
  • Tax calculation — Always show: base, rate, amount, total. Never hide taxes.
  • Client data required — For B2B: company name, tax ID, address. No invoice without complete data.

Configuration Required

Before first invoice, collect:

  • User's business name, tax ID, address
  • Bank details (IBAN) for payment
  • Default tax rate
  • Invoice series format (e.g., "F-2026-")
  • Email for sending (optional)