Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计提醒

invoice-generation-automation发票生成自动化

Agent Skill

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

总安装

470

周安装

20

GitHub Stars

19

下载量

165
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:invoice-generation-automation(发票生成自动化)
来源仓库:https://github.com/finsilabs/awesome-ecommerce-skills
仓库路径:skills/invoice-generation-automation
安装命令:
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill invoice-generation-automation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill invoice-generation-automation

简介

invoice-generation-automation 用于辅助音频、音乐、语音转写或声音素材处理。

  • 适合生成配乐说明、整理音频流程或调用语音合成工具。
  • 使用时需确认输入音频来源、输出格式和模型限制条件。
  • 涉及人声克隆或版权音乐时,应先核对授权和合规边界。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Invoice Generation Automation

Overview

Automated invoice generation turns every completed order into a professional, branded PDF invoice without manual effort. For B2B ecommerce, invoices are legal documents required for the customer's procurement and accounting workflows. In many countries — particularly within the EU — specific invoice formats are legally mandated with sequential numbering, VAT numbers, and mandatory fields. All major platforms support invoice automation through apps and plugins, often requiring zero custom code.

When to Use This Skill

  • When customers request invoices after purchase and you are generating them manually
  • When building B2B ecommerce where invoices are required before or after payment
  • When you need to comply with EU VAT invoice requirements
  • When integrating with accounting software (QuickBooks, Xero) that requires invoice records
  • When subscription billing needs to generate invoices for each billing cycle
  • When you need branded, professional PDFs rather than a payment processor's default invoice styling

Core Instructions

Step 1: Determine your platform and choose the right invoice tool

PlatformRecommended ToolNotes
ShopifyOrder Printer Pro or Sufio (Shopify App Store)Shopify has no native invoice PDF; Order Printer Pro is the most widely used free option; Sufio adds EU VAT compliance, accounting sync, and automated sending
WooCommerceWooCommerce PDF Invoices & Packing Slips (free) or WooCommerce Germanized (EU compliance)The free plugin handles standard invoice PDFs; Germanized adds legally compliant German/EU invoice formats
BigCommerceOrder Confirmation PDF (built-in) + Sufio or Invoice Ninja via APIBigCommerce sends a default order confirmation; Sufio adds branded PDFs with full EU VAT support
Stripe-based storesStripe Invoicing (built-in)Stripe generates, sends, and tracks payment of invoices automatically; ideal for B2B and subscription billing
Custom / HeadlessStripe Invoicing API or Docspring / PDFMonkey for custom PDF generationStripe Invoicing handles the full lifecycle including dunning; PDF APIs handle custom designs

Step 2: Set up automated invoice generation


Shopify

Option A: Order Printer Pro (free, basic)

  1. Install Order Printer Pro from the Shopify App Store
  2. Go to Apps → Order Printer Pro → Templates and customize the invoice HTML template with your logo, colors, and footer text
  3. Under Settings, configure auto-printing triggers — when an order is fulfilled, the app can automatically email the invoice PDF to the customer
  4. For EU VAT invoices: the app supports adding VAT numbers and compliant formatting; enable this under Settings → Tax settings

Option B: Sufio (recommended for B2B and EU VAT compliance)

  1. Install Sufio from the Shopify App Store (paid, ~$19/month starting)
  2. Go to Sufio → Settings → Document templates and upload your logo; customize fonts, colors, and layout
  3. Under Sufio → Settings → Automation, configure when invoices are created and sent:

- Trigger: Order paid or Order fulfilled - Action: Generate PDF and email to customer automatically

  1. For EU VAT: go to Sufio → Settings → Tax settings and enable VAT invoice mode — Sufio adds the required fields (sequential number, seller/buyer VAT numbers, tax breakdown per line)
  2. Connect to accounting: go to Sufio → Integrations and connect QuickBooks Online or Xero — invoices sync automatically

WooCommerce

Option A: WooCommerce PDF Invoices & Packing Slips (free)

  1. Install WooCommerce PDF Invoices & Packing Slips from WordPress.org (by WP Overnight — the most popular option with 500,000+ installs)
  2. Go to WooCommerce → PDF Invoices → Documents → Invoice and configure:

- Enable invoices for: new orders, processing, completed - Upload your company logo - Set invoice number format (e.g., year prefix: 2026-0001) - Add company details (name, address, VAT number)

  1. Under General, enable Attach to order confirmation email — invoices will be emailed automatically on order status change
  2. For sequential numbering (required for EU VAT): go to Invoice → Number and enable the sequential counter

Option B: WooCommerce Germanized (EU VAT legal compliance)

  1. Install WooCommerce Germanized — this plugin adds full German/EU legal compliance including legally required invoice elements
  2. Configure your seller VAT number under WooCommerce → Germanized → General → VAT ID
  3. Invoice settings are under WooCommerce → Germanized → Invoices — configure numbering, format, and automation triggers

Sync to accounting:

  1. Install WooCommerce QuickBooks Online or WooCommerce Xero from the WooCommerce Marketplace
  2. Orders and invoices sync automatically to your accounting system

BigCommerce

  1. BigCommerce sends an order confirmation email by default — this serves as a basic invoice for B2C
  2. For branded PDF invoices: install Sufio from the BigCommerce App Marketplace (same setup as Shopify above)
  3. For custom invoice templates: go to Marketing → Email Templates → Order Confirmation and customize the default email template
  4. For B2B invoice management: install Apruve or Balance from the App Marketplace — these handle net-terms invoicing with automated payment collection

Custom / Headless

Option A: Stripe Invoicing (recommended for B2B)

Stripe Invoicing handles the complete lifecycle — creation, PDF generation, customer emailing, payment tracking, and dunning for unpaid invoices:

// Create and send an invoice via Stripe Invoicing
const invoice = await stripe.invoices.create({
  customer: stripeCustomerId,
  collection_method: 'send_invoice',
  days_until_due: 30,
  metadata: { order_id: orderId },
  custom_fields: [
    { name: 'PO Number', value: poNumber },
    { name: 'Your VAT Number', value: buyerVatNumber },
  ],
  footer: 'Thank you for your business.',
});

// Add line items
for (const item of order.lineItems) {
  await stripe.invoiceItems.create({
    customer: stripeCustomerId,
    invoice: invoice.id,
    amount: Math.round(item.total * 100), // cents
    currency: 'usd',
    description: item.description,
    tax_rates: [stripeTaxRateId], // if using Stripe Tax
  });
}

// Finalize and send — Stripe generates PDF and emails it automatically
await stripe.invoices.finalizeInvoice(invoice.id);
await stripe.invoices.sendInvoice(invoice.id);

The customer receives a Stripe-hosted invoice page where they can pay by card, bank transfer, or other methods. Stripe handles dunning (unpaid invoice reminders) automatically via Billing → Settings → Invoice reminders.

Option B: PDF generation service (for custom branding)

If you need full design control over the PDF, use PDFMonkey or Docspring:

// Generate a branded PDF using PDFMonkey
const response = await fetch('https://api.pdfmonkey.io/api/v1/documents', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${process.env.PDFMONKEY_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    document: {
      document_template_id: process.env.INVOICE_TEMPLATE_ID,
      status: 'pending',
      payload: {
        invoice_number: invoiceNumber,
        issue_date: new Date().toISOString().split('T')[0],
        due_date: dueDateString,
        seller: { name: 'Your Company', address: sellerAddress, vat_number: sellerVat },
        buyer: { name: customer.company_name, address: billingAddress, vat_number: buyerVat },
        line_items: lineItems,
        subtotal: order.subtotal,
        tax_amount: order.taxAmount,
        total: order.total,
      },
    },
  }),
});
const { document } = await response.json();
// Poll for document.status === 'success', then retrieve document.download_url

Step 3: Ensure EU VAT invoice compliance

EU VAT invoices require these mandatory fields (check each is present in your template):

  1. Sequential invoice number (no gaps)
  2. Invoice date
  3. Seller name, address, and VAT registration number
  4. Buyer name and address; buyer VAT number (for B2B cross-border within EU)
  5. Description of goods or services
  6. Unit price, quantity, and line total per item
  7. VAT rate and VAT amount per line
  8. Total amount excluding VAT
  9. Total VAT amount
  10. Total amount including VAT

Sufio and WooCommerce Germanized both handle these requirements automatically.

Best Practices

  • Use sequential numbers with no gaps for VAT-registered businesses — many tax authorities require sequential numbering; UUIDs are not compliant
  • Snapshot customer and seller data at invoice creation — if the customer changes their address later, the invoice must reflect the address at the time of issue
  • Store invoices immutably — never edit a sent invoice; issue a credit note and a replacement invoice for corrections
  • Include a payment link prominently — bank details, ACH routing, or a pay-now link should be the most visible element on B2B invoices
  • Automate sync to accounting — use Sufio's built-in QuickBooks/Xero sync or a tool like A2X to avoid manual data entry

Common Pitfalls

ProblemSolution
Invoice numbers are not sequential (gaps after failed orders)Use apps like Sufio or WooCommerce PDF Invoices which maintain their own sequential counter independent of order status
Duplicate invoices for the same orderAll recommended apps handle idempotency — they check whether an invoice already exists for the order before creating a new one
EU VAT invoice missing mandatory fieldsUse Sufio (Shopify/BigCommerce), WooCommerce Germanized (WooCommerce), or Stripe Invoicing with custom_fields for the VAT numbers
PDF too large for email attachmentInvoice apps use efficient PDF rendering; issues typically occur with large image assets in the template — compress your logo
QuickBooks/Xero sync fails silentlyCheck the integration logs in your invoice app; most apps have a retry mechanism and will alert you on sync failures
Customer replies to invoice email but gets no responseConfigure invoice delivery from a monitored billing@yourdomain.com address, not a noreply@ address

Related Skills

  • @accounts-receivable-automation
  • @tax-compliance-automation
  • @payment-terms-optimization
  • @stripe-integration
  • @subscription-billing

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.5%
按下载量换算62

Claude

29.48%
按下载量换算49

Cursor

19.03%
按下载量换算31

Gemini CLI

9.14%
按下载量换算15

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills