[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77JSGXVV6NRDRAJ0E9F7XWF":3,"skill-same:01M77JSGXVV6NRDRAJ0E9F7XWF":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M77JSGXVV6NRDRAJ0E9F7XWF","invoice-scan",null,"AI-powered invoice OCR, scanning, and data extraction. Use when: (1) user needs OCR or text extraction from invoice images, scanned documents, or PDFs, (2) scanning\u002Freading invoices to extract structured data (JSON, CSV, Excel), (3) validating invoice arithmetic or classifying document types (invoice vs receipt vs other), (4) processing handwritten invoices, stamps, or multi-language documents (Chinese, Russian, European, etc.), (5) user asks to read\u002Fparse\u002Fextract\u002FOCR an invoice or receipt. Keywords: OCR, invoice scanning, receipt scanning, document OCR, invoice data extraction, invoice parser, invoice reader. Works in two modes: agent-native (uses your own vision — no API key needed, only formatOutput for export) or CLI standalone (needs ANTHROPIC_API_KEY). Env: ANTHROPIC_API_KEY (CLI mode only). Install: npm install --production in scripts\u002F.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fi\u002Finvoice-scan\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: invoice-scan\ndescription: \"AI-powered invoice OCR, scanning, and data extraction. Use when: (1) user needs OCR or text extraction from invoice images, scanned documents, or PDFs, (2) scanning\u002Freading invoices to extract structured data (JSON, CSV, Excel), (3) validating invoice arithmetic or classifying document types (invoice vs receipt vs other), (4) processing handwritten invoices, stamps, or multi-language documents (Chinese, Russian, European, etc.), (5) user asks to read\u002Fparse\u002Fextract\u002FOCR an invoice or receipt. Keywords: OCR, invoice scanning, receipt scanning, document OCR, invoice data extraction, invoice parser, invoice reader. Works in two modes: agent-native (uses your own vision — no API key needed, only formatOutput for export) or CLI standalone (needs ANTHROPIC_API_KEY). Env: ANTHROPIC_API_KEY (CLI mode only). Install: npm install --production in scripts\u002F.\"\nmetadata:\n  clawdbot:\n    requires:\n      env:\n        - name: ANTHROPIC_API_KEY\n          required: false\n          description: \"Anthropic API key (CLI mode only — not needed for agent-native mode)\"\n      bins:\n        - node\n    install:\n      - id: node-deps\n        kind: shell\n        command: \"cd {SKILL_DIR}\u002Fscripts && npm install --production\"\n        label: \"Install Node.js dependencies (sharp, xlsx)\"\n    externalEndpoints:\n      - url: \"https:\u002F\u002Fapi.anthropic.com\"\n        purpose: \"Send base64-encoded invoice images for AI vision extraction (CLI mode only)\"\n        dataTypes:\n          - \"invoice images (base64)\"\n          - \"PII: supplier\u002Fbuyer names, addresses, IBANs, bank details, amounts\"\n---\n\n# Invoice Scan\n\n## ⚠️ Privacy Notice\n\n**CLI mode** sends base64-encoded invoice images to Anthropic's API (`api.anthropic.com`). Invoice data (supplier\u002Fbuyer names, addresses, IBANs, bank details, amounts) will be transmitted to a third-party service. Confirm this is acceptable under your privacy and compliance requirements before use. Consider dedicated API credentials with usage limits.\n\n**Agent-native mode** does NOT send data externally — the agent uses its own built-in vision. Only `formatOutput()` is called locally for CSV\u002FExcel export.\n\n## Setup\n\nInstall dependencies (required before first use):\n\n```bash\ncd {SKILL_DIR}\u002Fscripts && npm install --production\n```\n\nDependencies: `sharp` (image processing), `xlsx` (Excel export). Review `scripts\u002Fpackage.json` before installing.\n\n**CLI mode requires:** `ANTHROPIC_API_KEY` environment variable.\n**Agent-native mode requires:** nothing — uses agent's built-in vision capability.\n\n## Two Modes\n\n### Mode 1: Agent-Native (No API Key, No External Calls)\n\nUse your built-in vision to look at the invoice image directly. **Do NOT call `scanInvoice()`** — that function requires an API key and sends data externally. Instead:\n\n1. Look at the image with your vision capability\n2. Extract all fields into a JSON object matching the canonical schema in `references\u002Fcanonical-schema.md`\n3. Classify document type: invoice, credit-note, receipt, purchase-order, delivery-note, confirmation, statement, other-financial, not-financial\n4. Validate arithmetic and business rules per `references\u002Fvalidation-rules.md`\n5. Present results (see Output Format below)\n6. For CSV\u002FExcel export, construct the canonical JSON object and pass it to `formatOutput()` only:\n\n```javascript\nconst { formatOutput } = require('{SKILL_DIR}\u002Fscripts');\n\u002F\u002F invoiceData = the JSON object YOU built from your vision extraction\n\u002F\u002F IMPORTANT: include ALL fields from canonical-schema.md, including charges[]\n\u002F\u002F e.g. invoiceData.charges = [{ type: 'shipping', label: 'P&P', amount: 5.99, vatRate: 20, vatAmount: 1.20 }]\nconst csv = formatOutput(invoiceData, 'csv');    \u002F\u002F string — local only\nconst xlsx = formatOutput(invoiceData, 'excel');  \u002F\u002F Buffer — local only\n```\n\n**Key:** `formatOutput()` is purely local — no network calls, no API key needed. It just formats your extracted data into CSV or Excel.\n\n### Mode 2: CLI Standalone (Needs API Key)\n\nFor automation or pipelines. Requires `ANTHROPIC_API_KEY` env var.\n\n```bash\nANTHROPIC_API_KEY=\u003Ckey> node {SKILL_DIR}\u002Fscripts\u002Fcli.js scan \u003Cfile> [--format json|csv|excel] [--output result.json]\n```\n\nOptions: `--provider claude`, `--accept strict|relaxed|any`, `--no-preprocess`, `--model \u003Cmodel>`\n\n## Agent-Native Extraction Checklist\n\nExtract ALL of:\n\n**Header:** invoiceNumber, invoiceDate (YYYY-MM-DD), dueDate, currency (ISO 4217), supplierName, supplierAddress, supplierVatNumber, buyerName, buyerAddress, buyerVatNumber, paymentTerms, paymentReference, bankDetails (iban, bic, accountNumber, sortCode)\n\n**Line items:** description, quantity, unitOfMeasure, unitPrice, lineTotal, vatRate, sku, discount\n\n**References:** PO, contract, GRN, timesheet, project, proforma, invoice (original invoice if this is a credit\u002Fdebit memo), credit-note, debit-note refs. For credit\u002Fdebit memos, ALWAYS include the original invoice reference.\n\n**Totals:** netTotal, vatBreakdown (rate + amount + type per band — type is the tax regime label e.g. \"CGST\", \"SGST\", \"USt\", \"НДС\", \"IVA\"), vatTotal, grossTotal, amountPaid, amountDue, discount (invoice-level discount amount), discountRate (percentage)\n\n**Metadata:** paidDate (YYYY-MM-DD — date from PAID stamp), vatInclusive (true if line totals include VAT, false if net, null if unknown)\n\n**Charges:** Surcharges\u002Ffees outside line items — shipping, postage, P&P, delivery, freight, carriage, dispatch, handling, insurance, eco-levy, surcharges. Each: type (shipping|handling|insurance|surcharge|discount|other), label (original text from document), amount, vatRate, vatAmount. Do NOT duplicate items already captured as line items.\n\n**Document type:** documentType (invoice, credit-note, debit-note, receipt, purchase-order, delivery-note, confirmation, statement, other-financial, not-financial)\n\n**Additional:** handwritten notes, stamps\u002Fseals (type + text), remarks\u002Fcomments, document language (ISO 639-1)\n\n### Arithmetic Validation\n\n1. qty × unitPrice = lineTotal (per line)\n2. Sum of lineTotals = netTotal\n3. netTotal + vatTotal = grossTotal\n(Tolerance: ±0.02 for rounding)\n\n### Locale Numbers\n\nParse regional formats automatically: US\u002FUK (1,234.56), European (1.234,56), French (1 234,56), Indian (1,23,456.78). Use currency\u002Fcountry context when ambiguous.\n\n### Quality Score\n\nCount present from: invoiceNumber, invoiceDate, currency, supplierName, buyerName, supplierVatNumber, netTotal, vatTotal, grossTotal. Score = present \u002F 9. good ≥ 0.8, partial ≥ 0.5, poor \u003C 0.5.\n\n## Output Format\n\n```\n📄 Invoice #{number} | {date}\n   Supplier: {name} → Buyer: {name}\n   Net: {currency}{net} | VAT: {currency}{vat} | Gross: {currency}{gross}\n   [if charges exist] 📦 Charges: {label} {currency}{amount} [per charge]\n   [if amountDue is not null] Amount Due: {currency}{amountDue} [if amountPaid] (Paid: {currency}{amountPaid})\n   Items: {count} | Arithmetic: ✅\u002F❌ | Quality: {rating} ({score}\u002F9)\n```\n\nList warnings\u002Fflags, then offer: \"Want JSON, CSV, or Excel?\"\n\n## File Delivery\n\n- Output directory: `{WORKSPACE}\u002Finvoice-scan\u002Foutput\u002F` (create if needed)\n- Naming: `{supplierName}_{invoiceNumber}_{invoiceDate}.{ext}` (replace spaces\u002Fslashes with hyphens)\n- Always save JSON automatically, offer CSV\u002FExcel on request\n- Send file as chat attachment + confirm path\n\n## References\n\n- **Full schema**: `references\u002Fcanonical-schema.md`\n- **Validation rules**: `references\u002Fvalidation-rules.md`\n","# Invoice Scan\n\n## ⚠️ Privacy Notice\n\n**CLI mode** sends base64-encoded invoice images to Anthropic's API (`api.anthropic.com`). Invoice data (supplier\u002Fbuyer names, addresses, IBANs, bank details, amounts) will be transmitted to a third-party service. Confirm this is acceptable under your privacy and compliance requirements before use. Consider dedicated API credentials with usage limits.\n\n**Agent-native mode** does NOT send data externally — the agent uses its own built-in vision. Only `formatOutput()` is called locally for CSV\u002FExcel export.\n\n## Setup\n\nInstall dependencies (required before first use):\n\n```bash\ncd {SKILL_DIR}\u002Fscripts && npm install --production\n```\n\nDependencies: `sharp` (image processing), `xlsx` (Excel export). Review `scripts\u002Fpackage.json` before installing.\n\n**CLI mode requires:** `ANTHROPIC_API_KEY` environment variable.\n**Agent-native mode requires:** nothing — uses agent's built-in vision capability.\n\n## Two Modes\n\n### Mode 1: Agent-Native (No API Key, No External Calls)\n\nUse your built-in vision to look at the invoice image directly. **Do NOT call `scanInvoice()`** — that function requires an API key and sends data externally. Instead:\n\n1. Look at the image with your vision capability\n2. Extract all fields into a JSON object matching the canonical schema in `references\u002Fcanonical-schema.md`\n3. Classify document type: invoice, credit-note, receipt, purchase-order, delivery-note, confirmation, statement, other-financial, not-financial\n4. Validate arithmetic and business rules per `references\u002Fvalidation-rules.md`\n5. Present results (see Output Format below)\n6. For CSV\u002FExcel export, construct the canonical JSON object and pass it to `formatOutput()` only:\n\n```javascript\nconst { formatOutput } = require('{SKILL_DIR}\u002Fscripts');\n\u002F\u002F invoiceData = the JSON object YOU built from your vision extraction\n\u002F\u002F IMPORTANT: include ALL fields from canonical-schema.md, including charges[]\n\u002F\u002F e.g. invoiceData.charges = [{ type: 'shipping', label: 'P&P', amount: 5.99, vatRate: 20, vatAmount: 1.20 }]\nconst csv = formatOutput(invoiceData, 'csv');    \u002F\u002F string — local only\nconst xlsx = formatOutput(invoiceData, 'excel');  \u002F\u002F Buffer — local only\n```\n\n**Key:** `formatOutput()` is purely local — no network calls, no API key needed. It just formats your extracted data into CSV or Excel.\n\n### Mode 2: CLI Standalone (Needs API Key)\n\nFor automation or pipelines. Requires `ANTHROPIC_API_KEY` env var.\n\n```bash\nANTHROPIC_API_KEY=\u003Ckey> node {SKILL_DIR}\u002Fscripts\u002Fcli.js scan \u003Cfile> [--format json|csv|excel] [--output result.json]\n```\n\nOptions: `--provider claude`, `--accept strict|relaxed|any`, `--no-preprocess`, `--model \u003Cmodel>`\n\n## Agent-Native Extraction Checklist\n\nExtract ALL of:\n\n**Header:** invoiceNumber, invoiceDate (YYYY-MM-DD), dueDate, currency (ISO 4217), supplierName, supplierAddress, supplierVatNumber, buyerName, buyerAddress, buyerVatNumber, paymentTerms, paymentReference, bankDetails (iban, bic, accountNumber, sortCode)\n\n**Line items:** description, quantity, unitOfMeasure, unitPrice, lineTotal, vatRate, sku, discount\n\n**References:** PO, contract, GRN, timesheet, project, proforma, invoice (original invoice if this is a credit\u002Fdebit memo), credit-note, debit-note refs. For credit\u002Fdebit memos, ALWAYS include the original invoice reference.\n\n**Totals:** netTotal, vatBreakdown (rate + amount + type per band — type is the tax regime label e.g. \"CGST\", \"SGST\", \"USt\", \"НДС\", \"IVA\"), vatTotal, grossTotal, amountPaid, amountDue, discount (invoice-level discount amount), discountRate (percentage)\n\n**Metadata:** paidDate (YYYY-MM-DD — date from PAID stamp), vatInclusive (true if line totals include VAT, false if net, null if unknown)\n\n**Charges:** Surcharges\u002Ffees outside line items — shipping, postage, P&P, delivery, freight, carriage, dispatch, handling, insurance, eco-levy, surcharges. Each: type (shipping|handling|insurance|surcharge|discount|other), label (original text from document), amount, vatRate, vatAmount. Do NOT duplicate items already captured as line items.\n\n**Document type:** documentType (invoice, credit-note, debit-note, receipt, purchase-order, delivery-note, confirmation, statement, other-financial, not-financial)\n\n**Additional:** handwritten notes, stamps\u002Fseals (type + text), remarks\u002Fcomments, document language (ISO 639-1)\n\n### Arithmetic Validation\n\n1. qty × unitPrice = lineTotal (per line)\n2. Sum of lineTotals = netTotal\n3. netTotal + vatTotal = grossTotal\n(Tolerance: ±0.02 for rounding)\n\n### Locale Numbers\n\nParse regional formats automatically: US\u002FUK (1,234.56), European (1.234,56), French (1 234,56), Indian (1,23,456.78). Use currency\u002Fcountry context when ambiguous.\n\n### Quality Score\n\nCount present from: invoiceNumber, invoiceDate, currency, supplierName, buyerName, supplierVatNumber, netTotal, vatTotal, grossTotal. Score = present \u002F 9. good ≥ 0.8, partial ≥ 0.5, poor \u003C 0.5.\n\n## Output Format\n\n```\n📄 Invoice #{number} | {date}\n   Supplier: {name} → Buyer: {name}\n   Net: {currency}{net} | VAT: {currency}{vat} | Gross: {currency}{gross}\n   [if charges exist] 📦 Charges: {label} {currency}{amount} [per charge]\n   [if amountDue is not null] Amount Due: {currency}{amountDue} [if amountPaid] (Paid: {currency}{amountPaid})\n   Items: {count} | Arithmetic: ✅\u002F❌ | Quality: {rating} ({score}\u002F9)\n```\n\nList warnings\u002Fflags, then offer: \"Want JSON, CSV, or Excel?\"\n\n## File Delivery\n\n- Output directory: `{WORKSPACE}\u002Finvoice-scan\u002Foutput\u002F` (create if needed)\n- Naming: `{supplierName}_{invoiceNumber}_{invoiceDate}.{ext}` (replace spaces\u002Fslashes with hyphens)\n- Always save JSON automatically, offer CSV\u002FExcel on request\n- Send file as chat attachment + confirm path\n\n## References\n\n- **Full schema**: `references\u002Fcanonical-schema.md`\n- **Validation rules**: `references\u002Fvalidation-rules.md`\n",{"name":5,"metadata":24,"description":7},{"clawdbot":25},{"install":26,"requires":32,"externalEndpoints":39},[27],{"id":28,"kind":29,"label":30,"command":31},"node-deps","shell","Install Node.js dependencies (sharp, xlsx)","cd {SKILL_DIR}\u002Fscripts && npm install --production",{"env":33,"bins":37},[34],{"name":35,"required":20,"description":36},"ANTHROPIC_API_KEY","Anthropic API key (CLI mode only — not needed for agent-native mode)",[38],"node",[40],{"url":41,"purpose":42,"dataTypes":43},"https:\u002F\u002Fapi.anthropic.com","Send base64-encoded invoice images for AI vision extraction (CLI mode only)",[44,45],"invoice images (base64)","PII: supplier\u002Fbuyer names, addresses, IBANs, bank details, amounts","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fi\u002Finvoice-scan",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill invoice-scan",{"tool":61,"command":62},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill invoice-scan",{"tool":64,"command":65},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill invoice-scan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fi\u002Finvoice-scan\u002FSKILL.md",true,[],[70,77,84,91,98,105],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]