Shared Template authoring
Both Platform and Organization Templates use a draft-and-publish workflow. A lineage has at most one mutable draft in its owning scope. Saving a draft preserves work without creating a published Template Version. Publishing creates the next immutable version and clears the draft. Agents continue to use their exact pinned published version until explicitly repinned.
- 01.1
New Organization Templates begin as draft-only lineages. They become selectable as published Templates after their first publication. Organization Members can read and use published Templates but cannot author shared definitions. Organization Owner/Admin manage Organization Templates; Platform authoring requires Platform Administrator authority.
- 01.2
New Organization Templates begin as draft-only lineages. Open Settings → Templates, use the dedicated lineage detail/editor, save unpublished work, then publish and explicitly repin each Agent that should adopt it.
Know the Template and Skill scopes
Platform Templates are global resources. Organization Templates are Organization-owned custom lineages or Platform forks. Agent Template Overrides are private Agent-owned snapshots. Template and Override lineages have stable identifiers independent of display names.
- 02.1
An Agent uses one exact published version from one of three sources: a Platform Template when a shared platform Template fits, an Organization Template when your Organization maintains its own, or an Agent Template Override when you need to customize one Agent without changing a shared Template or another Agent.
- 02.2
An Agent Template Override contains a complete snapshot of the Template configuration. It is not a set of changes that automatically follows the shared Template. The Override belongs to one Agent, and other Agents cannot select it even when they belong to the same Organization. See
/guides/templates-and-skills/agent-overridesfor the editing workflow. - 02.3
Skills have Platform, Organization, and Agent scopes. Skill visibility is additive: an Agent can see Platform Skills, its Organization’s Skills, and its own private Skills, but not another Organization’s Skills or another Agent’s private Skills. Platform Administrators manage Platform Skills, Organization managers manage Organization-owned Skills, and Agent-private Skills are managed through Agent-scoped routes and Agent Access authority.
- 02.4
Platform Skill: global Platform resource, visible across Organizations.
- 02.5
Organization Skill: owned by one Organization, visible within that Organization.
- 02.6
Agent-private Skill: owned by one Organization and Agent, visible only through that Agent.
Drafts, publishing, and exact pins
Publishing creates an immutable next Template version. A Platform Template restore creates a new version rather than moving a pointer or rewriting history. Existing Agent Template pins do not move automatically.
- 03.1
A new Skill or Skill fork begins with one mutable draft and no published version. Publishing copies the draft’s complete file tree and staged metadata into the next immutable Skill Version, then clears the draft.
- 03.2
An Agent pins one exact active Platform Template, Organization Template, or Agent Template Override Version and every assigned Skill stores an exact pinned Skill Version. Template and Override requirements store both Skill identity and exact required version. Publishing a newer Template, Override, or Skill Version never changes an existing pin; consumers adopt one only through explicit apply, repin, or source update. Recover a bad Skill Version by explicitly re-pinning an older valid version, never by mutating published history.
- 03.3
Publishing and applying are separate steps. Publishing makes a version available for selection; it does not change what an Agent currently uses. For a stopped Agent, select Apply and the Agent loads the selection when you next start it. For a running Agent, use Apply & Restart: the Runtime stops, the selection changes, and the Agent starts again.
- 03.4
An unpublished Override draft cannot be applied. Selecting another published version does not discard an existing Override draft. Publishing a newer Skill Version likewise does not update existing Agent Skill assignments or Template requirements, which keep their selected versions until explicitly changed.
- 03.5
Draft: mutable authoring state, never used directly by a Runtime.
- 03.6
Published version: immutable, used when exactly pinned.
- 03.7
Latest published version: immutable, used only when explicitly selected.
- 03.8
Existing Agent pin: stable and used by the Runtime; “latest” is never implicit resolution.
Forks and direct-source updates
Editing a Platform Template from Organization scope creates an Organization fork. Applying a later Platform Template Update copies the complete newer Platform snapshot into a new Organization Version and intentionally replaces the Organization customization. Existing Agent pins remain unchanged.
- 04.1
An Agent Override source update selects a complete newer snapshot from its direct Platform or Organization source. It changes the Agent’s shared source pin and does not mutate, merge, discard, or publish an existing private Override Draft.
- 04.2
A Skill fork is an independent lineage that records its exact direct source Skill and source version. Organizations can fork visible Platform Skills; Agents can fork visible Platform or Organization Skills into private Agent lineages. Update availability is calculated against the direct source lineage. If no draft exists, Apply Update copies the newest direct source and publishes the next fork version immediately. If a draft exists, it replaces draft files and staged metadata for review without publishing. Source updates are replacement-based, never merges; they do not move existing Agent or Template pins or affect sibling forks.
Required Skills
Standalone required Skills must all be assigned. Skills sharing a group key form an at-least-one requirement, and an Agent cannot remove the last assigned member of a required group.
- 05.1
A Template or Agent Override requirement identifies both the required Skill lineage and its exact immutable Skill Version. An Agent assignment also pins an exact Skill Version. Applying another Template Version revalidates requirements from that exact snapshot, while Agent creation, configuration, and repinning validate provider requirements against the resulting Agent Secrets.
- 05.2
A Skill declares required providers but grants no credentials, permissions, or tools. Eligible bundled provider Skills may mount automatically when their supported provider credential is configured, but automatic availability never replaces explicit assignment when a Template requires the Skill.
Bootstrap, authoring, and deletion
Checked-in Platform Template definitions create missing Platform lineages in a fresh environment. Once a lineage exists, its database draft and published versions are authoritative and redeployment does not overwrite admin-authored content.
- 06.1
Bundled Skills live in isolated
aai-<integration>/directories. Each bundle contains exactly one rootSKILL.mdand optional relative reference files. Bootstrap publishes only missing Platform Skill lineages; the database remains canonical afterward. Platform, Organization, and Agent authors use the same draft-first model: new content is unavailable until published and explicitly pinned. - 06.2
Published history can be removed only when no remaining resource depends on it. Version deletion checks direct Agent pins, Template and Override requirements, drafts, and fork-source provenance; lineage deletion additionally requires the caller to manage its owning scope. Built-in bundled
aai_cliPlatform Skill lineages cannot be deleted, and soft-deleted Agent references still protect pinned versions. Removing an unused historical version does not change Runtime behavior because consumers use exact pins. - 06.3
A Skill Version cannot be deleted if it is the lineage’s last published version, an Agent pins it, a Template or Agent Override requires it, a draft references it, or a fork records it as source. A custom Skill lineage can be deleted only when no Agent pins any version, no Template or Override requires one, and no draft or fork-source reference depends on it. Lineage deletion removes its draft, versions, and files; deleting a visible latest version is not safe merely because no running Agent uses it.
- 06.4
Across scopes, each Platform Template, Organization Template, Agent Template Override, Platform Skill, Organization Skill, and Agent-private Skill has one scope-owned mutable draft and immutable published consumer versions. Exact management controls vary by scope; published-version immutability does not. Continue with
/guides/templates-and-skills/templates,/guides/templates-and-skills/template-versions,/guides/templates-and-skills/agent-overrides,/guides/templates-and-skills/skills,/guides/templates-and-skills/skill-scopes,/guides/templates-and-skills/skill-versions, and/guides/templates-and-skills/forks-and-updatesfor focused workflows.