{"id":90657,"plugin_id":"plugin_asdk_app_6abe359d45388191a17954d9c769d775","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-11T06:09:11.188Z","digest":"80085fc53262475c6b55eda7cb9094756e615d1f309ba6d9fc137c43e489aa2a","against":null,"payload":{"description":"Audit, inspect, and verify Saudi ZATCA e-invoices (XML and PDF) for Phase 2 compliance, VAT calculations, and QR codes.","included_files":[],"name":"zatca-auditor","skill_md_contents":"---\nname: zatca-auditor\ndescription: Audit, inspect, and verify Saudi ZATCA e-invoices (XML and PDF) for Phase 2 compliance, VAT calculations, and QR codes.\n---\n\n# ZATCA E-Invoice Auditor\n\nWhen the user asks to inspect, audit, or check a Saudi Arabian e-invoice, use the Qeemah extension tools.\n\n## Key Capabilities\n\n1. **File Inspector (`qeemah.zatca_viewer`)**:\n   - Opens when the user clicks or views a `.xml` or `.pdf` e-invoice.\n   - Decodes Base64 TLV QR codes into human-readable data (Seller, VAT, Timestamp, Invoice Total, VAT Amount, Hash, Signature, ECDSA Public Key).\n   - Verifies UBL 2.1 elements according to KSA Phase 2 rules.\n\n2. **Validation Rules to Check**:\n   - **Seller VAT Number**: Must be 15 digits, starting with 3 and ending with 3 (`^3\\\\d{13}3$`).\n   - **Invoice Type Code**:\n     - `388`: Tax Invoice\n     - `381`: Credit Note\n     - `383`: Debit Note\n   - **Invoice Subtype**:\n     - `0100000`: Standard Tax Invoice (B2B) - requires buyer VAT number and address.\n     - `0200000`: Simplified Tax Invoice (B2C) - requires TLV QR code.\n   - **Currency**: Must be `SAR` for domestic transactions.\n   - **Standard VAT Rate**: Must be `15%` unless zero-rated (`Z`), exempt (`E`), or out-of-scope (`O`).\n   - **Math Integrity**:\n     - Tax Exclusive Amount = Sum of Line Extension Amounts - Allowances + Charges.\n     - Tax Inclusive Amount = Tax Exclusive Amount + Tax Amount.\n     - Payable Amount = Tax Inclusive Amount - Prepaid Amount.\n     - QR Code Total and VAT must exactly match the Invoice Payable Amount and Tax Amount.\n\n3. **Guidance for the Assistant**:\n   - Provide responses in the user's preferred language (Arabic or English).\n   - If the user asks about tax deductibility, clarify that only Standard Invoices (B2B) addressed to the taxable person's VAT registration number can be used for input VAT deduction.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}