einvoicing-zatca-peppol-compliance

einvoicing-zatca-peppol-compliance is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 109 tokens per session (1,372 once invoked), scanned A, original, MIT.

A guide to electronic invoicing standards used by systems such as Saudi Arabia's ZATCA tax authority and Peppol, a network for exchanging business documents. It covers invoice XML, signatures, hashes, QR codes, and authority APIs.

In plain words
What is it for?
Use it to generate UBL 2.1 invoices, apply SHA-256 hashes and digital signatures, create required QR codes, and connect to clearance or reporting services.
Why use it?
It helps prevent invoices from failing strict government or network validation rules and supports tamper-evident invoice exchange.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate UBL 2.1 invoices, apply SHA-256 hashes and digital signatures, create required QR codes, and connect to clearance or reporting services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/einvoicing-zatca-peppol-compliance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill einvoicing-zatca-peppol-compliance
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for einvoicing-zatca-peppol-compliance

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/einvoicing-zatca-peppol-compliance/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/einvoicing-zatca-peppol-compliance)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/einvoicing-zatca-peppol-compliance"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/einvoicing-zatca-peppol-compliance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for einvoicing-zatca-peppol-compliance

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/einvoicing-zatca-peppol-compliance"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/einvoicing-zatca-peppol-compliance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,372 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.01372
Opus 5.5 $0.00044 $0.00549
Sonnet 5.5 $0.00022 $0.00274
Haiku 4.5 $0.00011 $0.00137

Measured 2mo ago against content hash f213c7370fbd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

einvoicing-zatca-peppol-compliance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Business/Fintech_and_Accounting/Tax_and_Invoicing/einvoicing-zatca-peppol-compliance/SKILL.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

E-Invoicing (ZATCA Phase 2 & Peppol BIS) Compliance Skill Guide

This skill specifies technical standards, cryptographic stamping algorithms, and UBL 2.1 XML schema compliance for statutory e-invoicing systems.


1. Statutory E-Invoicing Cryptographic Flow

[ Business ERP / Billing System ]
                |
                v
[ UBL 2.1 XML Invoice Generation ]
                |
                +---> Compute Canonical Hash: SHA-256(Canonicalized XML)
                +---> Sign Hash using Private Key: ECDSA (secp256k1)
                +---> Generate TLV-Encoded QR Code (Tag-Length-Value Base64)
                +---> Inject Digital Signature & Certificate into XML Extension
                |
                v
[ Government Tax Authority API (ZATCA Clearance / Peppol Access Point) ]

2. Production Code Implementations

A. TLV (Tag-Length-Value) QR Code Generator (Python)

For tax authorities like ZATCA, QR codes must be encoded using strict sequential Tag-Length-Value (TLV) byte structures converted to Base64.

import base64


def encode_tlv_field(tag: int, value: str) -> bytes:
    val_bytes = value.encode("utf-8")
    length = len(val_bytes)
    return bytes([tag, length]) + val_bytes


def generate_zatca_qr_code(
    seller_name: str,
    vat_registration_number: str,
    invoice_timestamp_iso: str,
    invoice_total_with_vat: str,
    vat_amount: str,
    invoice_hash_sha256: str = "",
    digital_signature: bytes = b"",
    public_key: bytes = b"",
) -> str:
    """Generates standard Base64-encoded TLV string for Phase 2 Tax Invoices."""
    tlv_bytes = bytearray()

    # Tag 1: Seller Name
    tlv_bytes.extend(encode_tlv_field(1, seller_name))
    # Tag 2: VAT Registration Number (15 digits)
    tlv_bytes.extend(encode_tlv_field(2, vat_registration_number))
    # Tag 3: Time Stamp (ISO 8601: YYYY-MM-DDTHH:MM:SSZ)
    tlv_bytes.extend(encode_tlv_field(3, invoice_timestamp_iso))
    # Tag 4: Invoice Total (with VAT)
    tlv_bytes.extend(encode_tlv_field(4, invoice_total_with_vat))
    # Tag 5: VAT Amount
    tlv_bytes.extend(encode_tlv_field(5, vat_amount))

    # Phase 2 Cryptographic Extensions
    if invoice_hash_sha256:
        tlv_bytes.extend(encode_tlv_field(6, invoice_hash_sha256))
    if digital_signature:
        tlv_bytes.extend(bytes([7, len(digital_signature)]) + digital_signature)
    if public_key:
        tlv_bytes.extend(bytes([8, len(public_key)]) + public_key)

    return base64.b64encode(tlv_bytes).decode("ascii")

Read the full file on GitHub · 131 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 131 lines · 109 tokens per session scan A f213c7370fbd

Subscribe to this mod's changes

einvoicing-zatca-peppol-compliance is a skill published in the GitHub repository hamzabellouch/agent-skills (8 stars, last pushed 1mo ago), licensed MIT. It adds 109 tokens to every session and 1,372 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

einvoicing-zatca-peppol-compliance compared with skills from other repositories

einvoicing-zatca-peppol-compliance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
einvoicing-zatca-peppol-compliancehamzabellouch/agent-skillsSkill81mo agoMITA109Claude Code, Codex
bartenderwonsukchoi/domain-expertsSkill31todayMITA74Claude Code, Codex
bill-account-collectorwonsukchoi/domain-expertsSkill31todayMITA80Claude Code, Codex
aviation-inspectorwonsukchoi/domain-expertsSkill31todayMITA113Claude Code, Codex
avionics-technicianwonsukchoi/domain-expertsSkill31todayMITA96Claude Code, Codex
blasterwonsukchoi/domain-expertsSkill31todayMITA56Claude Code, Codex
bookkeeping-accounting-clerkwonsukchoi/domain-expertsSkill31todayMITA73Claude Code, Codex