mcpField
I
invoice-generation

invoice-generation

github.com/eachlabsドキュメント44274 回インストール今日更新
リポジトリ

invoice-generation について

invoice-generationは、企業向けに請求書などの財務書類を作成するeach::senseスキルです。税や通貨の情報、ブランド設定、再利用可能なテンプレートに対応します。

主な機能

  1. 01請求書、領収書、見積書の作成
  2. 02クレジットノートと発注書の作成
  3. 03複数通貨と税額計算への対応
  4. 04企業ブランドとレイアウトの設定
  5. 05定期利用向けテンプレート

活用シーン

  1. 01税額入りの明細請求書を作成
  2. 02支払い完了時に領収書を発行
  3. 03販売前の見積もりを作成
  4. 04調達用の発注書を作成

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/eachlabs/skills --skill invoice-generation

インストール後、Claude Code で/invoice-generationを入力して読み込まれたか確認します。

同梱ファイルreferences/SSE-EVENTS.md

詳細

請求書の作成

each::sense を使って、プロフェッショナルな請求書、領収書、見積書、財務書類を作成します。このスキルでは、印刷やデジタル配信に適した、見栄えがよく正確なビジネス書類を作成できます。

特長

  • 請求書:明細、税金、合計を含むプロフェッショナルな請求書
  • 領収書:支払い完了時の取引領収書
  • 見積書/概算見積書:有効期間を設定した販売前の見積書
  • クレジットノート:返金や調整に関する書類
  • 発注書:調達や発注に関する書類
  • 複数通貨:さまざまな通貨と形式に対応
  • 税金の計算:VAT、GST、売上税を自動処理
  • 企業ブランディング:ロゴ、色、レイアウトをカスタマイズ
  • 定期請求テンプレート:繰り返し請求に使える標準化テンプレート

クイックスタート

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Generate a professional invoice for web development services, $2,500 total, due in 30 days"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

書類の種類と用途

書類の種類用途主な要素
請求書商品/サービスの請求明細、税金、支払期日、支払い条件
領収書支払いの確認取引 ID、支払い方法、タイムスタンプ
見積書/概算見積書販売前の価格提示有効期間、オプション項目、条件
クレジットノート返金/調整元の請求書への参照、理由
発注書調達ベンダー情報、配送情報、承認
プロフォーマインボイス出荷前請求書と同様の内容で、プロフォーマとして明記

使用例

1. 基本的な請求書の作成
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a simple invoice: Invoice #INV-2024-001, From: Acme Corp (123 Business St, NY 10001), To: Client Inc (456 Customer Ave, LA 90001), Service: Consulting Services - $1,500. Due date: March 15, 2024. Clean, professional design."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
2. 明細付きの詳細な請求書
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Generate a detailed invoice with multiple line items: Invoice #INV-2024-042 From: Digital Solutions LLC To: TechStart Inc Line items: 1) Website Development - 40 hours @ $150/hr = $6,000 2) UI/UX Design - 20 hours @ $125/hr = $2,500 3) SEO Setup - flat rate $800 4) Hosting (Annual) - $480 Subtotal, 8% tax, and grand total. Payment terms: Net 30. Include bank transfer details section."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
3. 企業ブランディングを施した請求書
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a branded invoice for a creative agency. Company: Pixel Perfect Studios, use modern minimalist design with a navy blue and gold color scheme. Include space for logo at top left. Invoice #PP-2024-089 to MediaMax Corp. Services: Brand Identity Package $4,500, Social Media Templates $1,200, Brand Guidelines Document $800. Total $6,500. Due in 14 days. Include Pay Now button placeholder and QR code area for payment link."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/company-logo.png"]
  }'
4. 領収書の作成
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Generate a payment receipt: Receipt #REC-78432 From: Cloud Services Pro To: Johnson Enterprises Payment received: $3,250.00 Payment method: Credit Card (Visa ending 4242) Transaction ID: TXN-2024-02-15-98765 Date: February 15, 2024 at 2:34 PM For: Invoice #INV-2024-038 (Annual SaaS Subscription) Status: PAID in full. Include a thank you message and support contact."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
5. 見積書/概算見積書の作成
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a project quote/estimate: Quote #QT-2024-015 From: BuildRight Construction To: Greenfield Properties Project: Office Renovation - 2nd Floor Line items: 1) Demolition and prep - $8,500 2) Electrical work - $12,000 3) Plumbing updates - $6,500 4) Flooring (800 sq ft) - $9,600 5) Painting and finishing - $4,200 6) Project management (10%) - $4,080 Total estimate: $44,880 Valid for 30 days. Include terms: 50% deposit required, final payment on completion. Add signature line for acceptance."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
6. 複数通貨の請求書
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Generate an international invoice in Euros: Invoice #EU-2024-0023 From: TechGlobal GmbH (Berlin, Germany, VAT: DE123456789) To: Societe Digitale SARL (Paris, France, VAT: FR987654321) Services: Software License (Enterprise) - 12 months @ 850 EUR/month = 10,200 EUR Implementation Services - 3,500 EUR Training (Remote) - 1,800 EUR Subtotal: 15,500 EUR VAT (19%): 2,945 EUR Total: 18,445 EUR Payment: SEPA transfer, IBAN: DE89 3704 0044 0532 0130 00, BIC: COBADEFFXXX Due: 30 days. Reverse charge note for intra-EU B2B."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
7. 税金を計算した請求書
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an invoice with complex tax breakdown: Invoice #TAX-2024-156 From: Retail Solutions Inc (GST: 12-3456789) To: Shop & Save Stores Line items with different tax rates: 1) POS Hardware (5 units @ $899) = $4,495 - Standard rate 10% GST 2) Software License = $2,400 - Standard rate 10% GST 3) Installation Services = $1,200 - Standard rate 10% GST 4) Training Materials (books) = $350 - Zero rated 5) Extended Warranty = $600 - Exempt Subtotal: $9,045 GST Summary: Standard rated (10%): $8,095 x 10% = $809.50 Zero rated: $350 x 0% = $0 Exempt: $600 Total GST: $809.50 Grand Total: $9,854.50 Include ABN and tax invoice statement."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
8. 定期請求書のテンプレート
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Design a recurring monthly invoice template: Invoice #[AUTO-NUMBER] From: CloudHost Pro Services To: [CLIENT NAME] Billing Period: [MONTH YEAR] Recurring Services: 1) Dedicated Server Hosting - $299/month 2) Managed Backup Service - $49/month 3) SSL Certificate - $9/month 4) Technical Support (Business) - $149/month Monthly Total: $506 Mark as RECURRING INVOICE. Show billing cycle: Monthly, auto-renews. Next billing date field. Include: Update payment method link, Cancel subscription link. Modern SaaS-style design with clean typography."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
9. クレジットノート/返金書類
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Generate a credit note: Credit Note #CN-2024-008 From: Premium Supplies Co To: Office Depot Partners Original Invoice: #INV-2024-892 dated January 10, 2024 Reason for credit: Goods returned - defective items Credit items: 1) Ergonomic Chair Model X (2 units @ $450) = -$900 2) Return shipping covered = -$45 Total Credit: $945.00 Original invoice total: $2,340 Remaining balance due: $1,395 Note: Credit has been applied to your account. Future invoices will reflect this adjustment. Authorized by: [Signature line]. Use red accent color to indicate credit/refund."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
10. 発注書の作成
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a purchase order: PO #PO-2024-0456 From (Buyer): MegaCorp Industries, 789 Corporate Blvd, Chicago IL 60601, Purchasing Dept Contact: Jane Smith, [email protected] To (Vendor): Industrial Supplies Ltd, 321 Warehouse Way, Detroit MI 48201 Ship To: MegaCorp Warehouse B, 456 Distribution Dr, Chicago IL 60602 Order Items: 1) Steel Brackets SKU-SB100 - 500 units @ $2.50 = $1,250 2) Mounting Hardware Kit SKU-MH200 - 200 units @ $8.00 = $1,600 3) Safety Cables SKU-SC300 - 1000 units @ $1.25 = $1,250 4) Industrial Adhesive SKU-IA400 - 50 gallons @ $45 = $2,250 Subtotal: $6,350 Shipping: $285 Total: $6,635 Required delivery date: March 1, 2024 Payment terms: Net 45 Special instructions: Deliver to loading dock B, call 30 min before arrival. Include approval signature lines for Requester, Manager, and Purchasing."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

複数ターンでの請求書の調整

session_id を使うと、複数のリクエストを通じて請求書を調整できます。

# Initial invoice creation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an invoice for marketing services, $5,000 total from Creative Agency to StartupXYZ"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "invoice-project-001"
  }'

# Add more line items
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Break that down into: Strategy $2,000, Content Creation $1,800, Ad Management $1,200. Add 7% sales tax."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "invoice-project-001"
  }'

# Update styling
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Update the design to use a green and white color scheme, add payment instructions for Stripe."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "invoice-project-001"
  }'

書類の一括作成

関連する複数の書類を作成します。

# Generate invoice
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create invoice #INV-001 for Project Alpha, $10,000 consulting fee to Acme Corp"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "project-alpha-docs",
    "mode": "eco"
  }'

# Generate matching receipt after payment
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Now create a matching receipt for that invoice, payment received via wire transfer today"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "project-alpha-docs",
    "mode": "eco"
  }'

ベストプラクティス

請求書のデザイン
  • 明確な階層構造:会社情報を上部に、明細を中央に配置し、合計を目立たせます
  • 読みやすいフォント:プロフェッショナルで判読しやすい書体を使用します
  • 十分な余白:窮屈なレイアウトを避けます
  • 連絡先情報:問い合わせ先を必ず記載します
必須情報
  • 一意の請求書番号:連番またはコード化された体系を使用します
  • 発行日と支払期日:支払いの期限を明確にします
  • 事業者の詳細情報:名称、住所、納税者番号
  • 項目別の請求内容:説明、数量、単価、金額
  • 支払い方法の案内:銀行口座情報、利用可能な支払い方法
法令遵守
  • 必要に応じて税務登録番号を記載します
  • 管轄区域に適用される正しい税率を使用します
  • 書類の種類を適切に明記します(請求書、見積書、プロフォーマ)
  • 必要な法的免責事項を記載します

財務書類を作成する際のプロンプトのヒント

請求書や財務書類を作成する場合は、次の情報を含めてください。

  1. 書類の種類:請求書、領収書、見積書、クレジットノート、PO
  2. 関係者:送信者と受取人の詳細情報
  3. 商品/サービス:説明、数量、単価
  4. 計算内容:税率、割引、合計
  5. 条件:支払期日、有効期間
  6. ブランディング:色、スタイルの希望、ロゴ
  7. 追加項目:PO 番号、プロジェクト参照、備考
プロンプトの構成例
"Create a [document type] #[number]
From: [company name and details]
To: [client name and details]
Items: [list with quantities and prices]
Tax: [rate and type]
Terms: [payment terms]
Style: [design preferences]"

モードの選択

作成を始める前に、ユーザーに確認してください。

「速くて低コストなものと、高品質なもののどちらがよいですか?」

モード最適な用途速度品質
maxクライアント向けの最終版請求書、ブランド書類遅め最高
eco請求書の下書き、社内書類、大量作成速め良好

エラーハンドリング

エラー原因解決方法
Failed to create prediction: HTTP 422残高不足eachlabs.ai でチャージしてください
コンテンツポリシー違反禁止されているコンテンツポリシーに準拠するようプロンプトを調整してください
タイムアウト複雑な生成処理クライアントのタイムアウトを最低 10 分に設定してください

関連スキル

  • each-sense - コア API ドキュメント
  • document-generation - 一般的なドキュメント作成
  • business-card-generation - 名刺デザイン
  • letterhead-generation - 会社のレターヘッドデザイン

コメント