# Publish to the Library

https://nadicode.ai/en/docs/publish-to-the-library

How nadicode and its Partners put a skill, a plugin or an Agent template in the Portal's Library.

The Library is the Portal's catalog of the skills and plugins a company gives its Agents, and of the Agent templates it creates Agents from. To publish is to put one of them in it: you choose its folder on your computer, the Portal checks it, and the entry is in the Library at once.

## Who publishes where

A skill or a plugin is published into a hub, a GitHub repository nadicode keeps, where it is one folder. An Agent template needs no hub: each is a public repository of its own, which the Portal creates the first time the template is published.

- nadicode's staff publish skills into the Skills Hub and plugins into the Plugins Hub, whose entries every company finds in its Library. They also publish into any Company hub, and they publish the Agent templates.
- A Partner's owners and admins publish skills and plugins into the Company hub nadicode gives their company, when every company that hub is given to is the Partner or one of its Customers.

A Company hub is a hub nadicode gives to one company or a few, and only they find its entries in their Library. A Partner's Company hub is given to the Partner and to the Customers the hub is for. To give it to another Customer, ask nadicode.

Everyone else sees no **Publish** in the Library.

## Publish a folder

1. In the Portal, choose **Library**, then **Skills**, **Plugins** or **Agent templates**.
2. Choose **Publish** at the top of the page.
3. For a skill or a plugin, if you can publish into more than one hub, choose one under **Hub**: the **Skills Hub** on **Skills**, the **Plugins Hub** on **Plugins**, or a Company hub by its name. Otherwise the dialog names the hub it publishes to.
4. Choose **Choose folder**, then the folder on your computer. The dialog shows its name, how many files it holds and their size.
5. Choose **Publish**.

When the dialog says the entry is in the Library, choose **Done**.

> [!NOTE]
> A folder you publish holds at most 4 MB and 1,000 files. **Publish** leaves out `.git` folders and the files macOS and Windows write beside a folder's content: `.DS_Store`, `__MACOSX`, `Thumbs.db` and `desktop.ini`. For a larger folder, such as a plugin that carries programs of its own, ask nadicode, which publishes it by a push to its hub.

## What happens when you publish

The Portal checks the whole folder before it stores anything. If a file is wrong, nothing is published: the dialog names the file and says what to change, such as "quote-builder/SKILL.md is missing." Change it, then choose the folder again.

Once the folder passes, the Portal stores it, and the entry is in the Library at once. Each Agent that already has the skill or the plugin, and each Agent made from the template, gets the new version the next time her Installation syncs with the Portal, within a minute while Nadia is running.

A skill or a plugin published again under the same name replaces the folder published before, so a file you took out is gone from the entry too. When nothing in the folder changed, the dialog says the entry is already in the Library as it is.

Publishing takes nothing out of the Library. A skill or a plugin leaves it when nadicode removes its folder from the hub; a template, once published, stays.

If the Library was reading its hubs at that moment, the dialog says the entry is published, and it appears in the Library at the next sync, which runs every 15 minutes.

## What a skill's folder holds

A skill teaches an Agent one kind of work. Its folder is named for the skill, in lowercase letters, digits and dashes, at most 64 characters, such as `quote-builder`. It holds:

- `SKILL.md`, the skill's instructions. It starts with YAML frontmatter, between two `---` lines, that gives the skill's `name`, which must be the folder's name, and its `description`, what it does, in at most 1,024 characters.
- `catalog.yaml`, if you choose the skill's card yourself: see [The card in the Library](#the-card-in-the-library).
- Any other file the skill reads, such as a reference or a form, which is published with it.

## What a plugin's folder holds

A plugin gives an Agent tools, connections or skills. Its folder is named for the plugin, as a skill's is, and holds one of two manifests:

- `plugin.json`, in the Agent Plugins v1 format, for a plugin that brings skills or MCP servers. Its `$schema` is `https://agent-plugins.org/schemas/1.0.0/plugin.schema.json` and its `name` must be the folder's name. It may also give `version`, `description`, `author` (with `name`, `email` and `url`), `homepage`, `repository`, `license`, `keywords` and `extensions`, and nothing else.
- `plugin.yaml`, for a plugin with tools of its own, in Nadia's own plugin format. Its `name` must be the folder's name, and it may give `description`, `author`, `provides_tools` and `requires_env`.

Beside a `plugin.json`, the folder may hold:

- `mcp.json`, the MCP servers the plugin connects, under `mcpServers`, with the `$schema` `https://agent-plugins.org/schemas/1.0.0/mcp.schema.json`. Each server's `type` is `stdio`, with a `command` that is a program's name or a path inside the folder starting with `./`, or `streamable-http`, with a `url` that is an `https` address. At most 100 servers.
- `skills/`, with one folder for each skill, each as a skill's folder above. At most 100 skills.

Either kind of plugin may hold a `catalog.yaml` for its card, and any other file it needs.

## The card in the Library

A card is what the Library shows of a skill or a plugin: its title, description, category and icon. `catalog.yaml` chooses them, and each of its fields is optional:

- `title`, at most 60 characters, and `description`, at most 300, each with the English under `en` and, optionally, the Italian under `it`.
- `category`: one of `sales`, `finance`, `office`, `email`, `calendar`, `documents`, `people`, `legal`, `messaging`, `voice`, `web` and `other`.
- `icon`: one of `book-open`, `briefcase`, `calculator`, `calendar`, `file-check`, `file-search`, `file-text`, `globe`, `inbox`, `landmark`, `languages`, `list-checks`, `mail`, `message-circle`, `mic`, `notebook-pen`, `phone`, `presentation`, `receipt`, `scale`, `send`, `shield-check`, `sparkles`, `truck`, `users` and `wallet`.

Without `catalog.yaml`, the card takes its title from the folder's name, so `quote-builder` reads "Quote builder", its description from `SKILL.md` or the plugin's manifest, and the category `other`.

## What an Agent template's folder holds

An Agent template is a ready-made Agent that a company creates Agents from: her Instructions, her card in the Library, and the skills and scheduled tasks she starts with. Only nadicode's staff publish templates. Each template is a public repository on GitHub, so everyone can read its files: put nothing in it that you would not show everyone.

The folder holds:

- `distribution.yaml`, with the template's `name`, its `version` and its English `description`, in at most 500 characters. The name is in lowercase letters, digits and dashes, and names its repository: the template `commerciale` is published from `agent-commerciale`. Keep it from one version to the next: a new name publishes a new template. The version is a number such as `1.0.0`.
- `config.yaml`, with `nadia` in `plugins.enabled` and the Agent's model in `model.default`.
- `nadia-card.yaml`, her card. It gives `displayName`, her name, at most 64 characters; `tagline`, at most 100, and `soulSummary`, her Instructions in brief, at most 500, each with `en` and, optionally, `it`; and `appearance`, the `shape` of her orb and its `color`, `cobalto`, `verde` or `arancio`. It may give `description`, with the Italian under `it`; `connections`, at most 20 apps she needs, each with its `slug`, whether it is `required`, and `why`; and `channels`, from `buzz`, `telegram`, `whatsapp`, `slack`, `email` and `discord`.
- `SOUL.md`, her Instructions.
- `skills/`, if she starts with skills: one folder for each skill, each as a skill's folder above. At most 100 skills.
- `cron/jobs.json`, if she starts with scheduled tasks: each task with a `name`, at most 200 characters, and a `schedule`, either `kind: interval` with its `minutes` or `kind: cron` with its `expr`. At most 100 tasks, and `cron/` holds no other job file.

### Publish a new version

Each time you publish a template, you publish a version of it, and the Library takes the highest. Raise `version` in `distribution.yaml` above the newest one first, such as from `1.0.1` to `1.0.2`: a version already published, or one below the newest, is refused, and nothing is published. [Updates](https://nadicode.ai/en/docs/updates#what-an-update-keeps) says what the new version replaces in each Agent made from the template, and what it keeps.
