{"data":{"slug":"github-claude-office-skills-skills-invoice-template-439aa84b3b93","title":"Generate Professional PDF Invoices from Templates","summary":"Create professional invoices with company branding, itemized lists, tax calculations, and payment details using structured data and templates. The deliverable is a PDF invoice file.","url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-invoice-template-439aa84b3b93","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-claude-office-skills-skills-invoice-template-439aa84b3b93","markdown_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-invoice-template-439aa84b3b93.md","download_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-invoice-template-439aa84b3b93\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure all required fields are provided before generation, and use templates for consistent branding. Auto-calculate totals to avoid errors from input data.","instructions":"---\n# \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n# CLAUDE OFFICE SKILL - Enhanced Metadata v2.0\n# \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\n# Basic Information\nname: invoice-template\ndescription: \"Generate professional PDF invoices from templates\"\nversion: \"1.0\"\nauthor: claude-office-skills\nlicense: MIT\n\n# Categorization\ncategory: finance\ntags:\n  - invoice\n  - template\n  - billing\ndepartment: Finance\n\n# AI Model Compatibility\nmodels:\n  recommended:\n    - claude-sonnet-4\n    - claude-opus-4\n  compatible:\n    - claude-3-5-sonnet\n    - gpt-4\n    - gpt-4o\n\n# MCP Tools Integration\nmcp:\n  server: office-mcp\n  tools:\n    - create_docx\n    - fill_docx_template\n    - docx_to_pdf\n\n# Skill Capabilities\ncapabilities:\n  - template_creation\n  - invoice_formatting\n\n# Language Support\nlanguages:\n  - en\n  - zh\n---\n\n# Invoice Template Skill\n\n## Overview\n\nThis skill generates professional PDF invoices from structured data and templates. Create invoices with company branding, itemized lists, tax calculations, and payment details.\n\n## How to Use\n\n1. Describe what you want to accomplish\n2. Provide any required input data or files\n3. I'll execute the appropriate operations\n\n**Example prompts:**\n- \"Generate invoices from order data\"\n- \"Create recurring invoices\"\n- \"Batch generate monthly invoices\"\n- \"Customize invoice templates per client\"\n\n## Domain Knowledge\n\n\n### Invoice Data Structure\n\n```python\ninvoice_data = {\n    \"invoice_number\": \"INV-2026-001\",\n    \"date\": \"2026-01-30\",\n    \"due_date\": \"2026-02-28\",\n    \n    \"from\": {\n        \"name\": \"Your Company\",\n        \"address\": \"123 Business St\",\n        \"email\": \"billing@company.com\"\n    },\n    \n    \"to\": {\n        \"name\": \"Client Name\",\n        \"address\": \"456 Client Ave\",\n        \"email\": \"client@example.com\"\n    },\n    \n    \"items\": [\n        {\"description\": \"Consulting\", \"quantity\": 10, \"rate\": 150.00},\n        {\"description\": \"Development\", \"quantity\": 20, \"rate\": 100.00}\n    ],\n    \n    \"tax_rate\": 0.08,\n    \"notes\": \"Payment due within 30 days\"\n}\n```\n\n### PDF Generation with ReportLab\n\n```python\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\nfrom reportlab.lib.units import inch\n\ndef create_invoice(data: dict, output_path: str):\n    c = canvas.Canvas(output_path, pagesize=letter)\n    width, height = letter\n    \n    # Header\n    c.setFont(\"Helvetica-Bold\", 24)\n    c.drawString(1*inch, height - 1*inch, \"INVOICE\")\n    \n    # Invoice details\n    c.setFont(\"Helvetica\", 12)\n    c.drawString(1*inch, height - 1.5*inch, f\"Invoice #: {data['invoice_number']}\")\n    c.drawString(1*inch, height - 1.75*inch, f\"Date: {data['date']}\")\n    \n    # From\/To\n    y = height - 2.5*inch\n    c.drawString(1*inch, y, f\"From: {data['from']['name']}\")\n    c.drawString(4*inch, y, f\"To: {data['to']['name']}\")\n    \n    # Items table\n    y = height - 4*inch\n    c.setFont(\"Helvetica-Bold\", 10)\n    c.drawString(1*inch, y, \"Description\")\n    c.drawString(4*inch, y, \"Qty\")\n    c.drawString(5*inch, y, \"Rate\")\n    c.drawString(6*inch, y, \"Amount\")\n    \n    c.setFont(\"Helvetica\", 10)\n    subtotal = 0\n    for item in data['items']:\n        y -= 0.3*inch\n        amount = item['quantity'] * item['rate']\n        subtotal += amount\n        c.drawString(1*inch, y, item['description'])\n        c.drawString(4*inch, y, str(item['quantity']))\n        c.drawString(5*inch, y, f\"${item['rate']:.2f}\")\n        c.drawString(6*inch, y, f\"${amount:.2f}\")\n    \n    # Totals\n    tax = subtotal * data['tax_rate']\n    total = subtotal + tax\n    \n    y -= 0.5*inch\n    c.drawString(5*inch, y, f\"Subtotal: ${subtotal:.2f}\")\n    y -= 0.25*inch\n    c.drawString(5*inch, y, f\"Tax ({data['tax_rate']*100}%): ${tax:.2f}\")\n    y -= 0.25*inch\n    c.setFont(\"Helvetica-Bold\", 12)\n    c.drawString(5*inch, y, f\"Total: ${total:.2f}\")\n    \n    c.save()\n    return output_path\n```\n\n### HTML Template Approach\n\n```python\nfrom weasyprint import HTML\nfrom jinja2 import Template\n\ninvoice_template = \"\"\"\n<!DOCTYPE html>\n<html>\n<head>\n    <style>\n        body { font-family: Arial; margin: 40px; }\n        .header { display: flex; justify-content: space-between; }\n        table { width: 100%; border-collapse: collapse; margin: 20px 0; }\n        th, td { border: 1px solid #ddd; padding: 10px; text-align: left; }\n        .total { font-weight: bold; font-size: 18px; }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"header\">\n        <h1>INVOICE<\/h1>\n        <div>\n            <p>Invoice #: {{ invoice_number }}<\/p>\n            <p>Date: {{ date }}<\/p>\n        <\/div>\n    <\/div>\n    <table>\n        <tr><th>Description<\/th><th>Qty<\/th><th>Rate<\/th><th>Amount<\/th><\/tr>\n        {% for item in items %}\n        <tr>\n            <td>{{ item.description }}<\/td>\n            <td>{{ item.quantity }}<\/td>\n            <td>${{ \"%.2f\"|format(item.rate) }}<\/td>\n            <td>${{ \"%.2f\"|format(item.quantity * item.rate) }}<\/td>\n        <\/tr>\n        {% endfor %}\n    <\/table>\n    <p class=\"total\">Total: ${{ \"%.2f\"|format(total) }}<\/p>\n<\/body>\n<\/html>\n\"\"\"\n\ndef create_invoice_html(data: dict, output_path: str):\n    template = Template(invoice_template)\n    \n    # Calculate total\n    total = sum(i['quantity'] * i['rate'] for i in data['items'])\n    total *= (1 + data.get('tax_rate', 0))\n    data['total'] = total\n    \n    html = template.render(**data)\n    HTML(string=html).write_pdf(output_path)\n    return output_path\n```\n\n\n## Best Practices\n\n1. **Validate required fields before generation**\n2. **Use templates for consistent branding**\n3. **Auto-calculate totals (don't trust input)**\n4. **Include payment instructions and terms**\n\n## Installation\n\n```bash\n# Install required dependencies\npip install python-docx openpyxl python-pptx reportlab jinja2\n```\n\n## Resources\n\n- [easy-invoice-pdf Repository](https:\/\/github.com\/nickmitchko\/easy-invoice-pdf)\n- [Claude Office Skills Hub](https:\/\/github.com\/claude-office-skills\/skills)\n","use_cases":["Generate invoices from order data","Create recurring invoices","Batch generate monthly invoices","Customize invoice templates per client"],"limitations":[],"compatibility":[],"setup_tip":"```bash\n# Install required dependencies\npip install python-docx openpyxl python-pptx reportlab jinja2\n```","sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/claude-office-skills\/skills\/blob\/9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11\/invoice-template\/SKILL.md","source_commit":"9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11","license":"MIT","version":null,"listing_approved_at":"2026-11-22","created_at":"2026-11-21T14:09:31.000000Z","updated_at":"2026-11-22T11:17:55.000000Z","seo_title":"Generate PDF Invoices from Templates","seo_description":"Create professional invoices with branding, itemized lists, and tax calculations using structured data and templates.","seo_keywords":["generate invoice pdf","invoice template generator","create professional invoice","invoice formatting tool","pdf invoice generator"]}}