> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gobl.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

Addons in GOBL have a similar objective to namespaces in XML documents, but with super-powers; they provide additional normalization methods, validation rules, and extension definitions, alongside scenarios and tags, that augment the basic functionality of the GOBL document.

When an addon is applied to a GOBL document that supports them, the calculation and validation steps will automatically use all the addon's specifications to ensure that all the data complies with whatever is required by the standard or format represented.

A great example of this is the `mx-cfdi-v4` addon. When applied to an invoice, it will automatically ensure that any extensions and validation rules are performed, so that document can subsequently be processed by a conversion tool into the local XML CFDI format, in this case, [gobl.cfdi](https://github.com/invopop/gobl.cfdi).

The key advantage with addons is that the original content of the GOBL invoice is still intact, maintaining the global compatibility, but ensuring that any local or format restrictions are accounted for.

## Sources

Addons are sourced from multiple repositories:

* **Core addons** are bundled with [GOBL](https://github.com/invopop/gobl) itself and are always available.
* **External addons** live in their own Go modules, such as [gobl.fr.ctc](https://github.com/invopop/gobl.fr.ctc) and [gobl.sa.zatca](https://github.com/invopop/gobl.sa.zatca). GOBL keeps a curated list of approved external addons so that their keys are recognized in the `$addons` schema, but each module must be imported by the consuming application for its normalization and validation rules to run. The set of external addons bundled with [gobl.dev](https://github.com/invopop/gobl.dev) and documented here is defined by gobl.dev's `bundle` package.

Each addon's page states the module that implements it.

Support for addons was included in the `v0.200.0` release of [GOBL](https://github.com/invopop/gobl).

Have your agent work out which addon you need and what it demands.

Read [https://docs.gobl.org/addons/overview.md](https://docs.gobl.org/addons/overview.md) and [https://docs.gobl.org/llms.md](https://docs.gobl.org/llms.md). For the country and use case I describe, identify which addon keys apply from the list under [https://docs.gobl.org/addons/](https://docs.gobl.org/addons/) and read each addon's page. For each one, list the extension keys it can require, where on the document they go (document, line, tax or party ext), the code values allowed and what they mean, the tags and scenarios it defines, and the validation rules most likely to fail. Then take my invoice, add the addon to \$addons, build it with [https://gobl.dev/v0/build](https://gobl.dev/v0/build) or the gobl CLI, and show me which extensions build filled in automatically and which I must supply myself.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.