Skip to content

Kinds of reference

Every reference file is named for the reference it holds, plus a suffix that says what kind of file it is. A file’s name tells you how the reference command reads it.

Kind What it is File name Who writes it Who loads it
Plain reference A Markdown document of ## sections <name>.md, or <name>/README.md A plugin’s author, a repository, a user, or an administrator A skill, by name
Data reference A JSON, YAML, TOML, or text file read by name <name>.json, .yaml, .yml, .toml, or .txt The same A skill, by name
Metadata file The frontmatter of a data reference, which cannot carry its own <name>.meta.md beside the data file Whoever writes the data file The command, with the data file
Interface document A contract other references implement <id>.interface.md The plugin that owns the contract A skill’s author, to implement it; check and implementations
Implementation of a one interface The single document that fills the contract <id>.md, with implements: <id>@<version> A plugin, a repository, or a user A skill, by name, or by the pin implementations gives
Implementation of a many interface One of several documents that fill the contract <id>.<key>.md, with implements: <id>@<version> The same A skill, by the pin implementations gives
Skill default A skill’s own copy of a reference it loads references/<name>.default.md in the skill’s folder The skill’s author, usually with reference defaults The command, when the skill loads the name with --default
Skill default of an interface document A skill’s own copy of an interface it loads references/<id>.interface.default.md in the skill’s folder The same The same
Skill default of a data reference A skill’s own copy of a data reference references/<name>.default.<ext>, metadata in <name>.default.meta.md The skill’s author The same
Contract One exact text two parties share, named by its version <id>.contract.md, with a contract: block A plugin’s author A skill, which quotes a party’s section with reference excerpt
Capability reference What one outside system can do <system>.capabilities.md A plugin that works with the system; a repository, to correct it A blueprint; the doctor
Blueprint interface An interface with one implementation per way of using a system <id>.interface.md, where <id> ends .blueprints The plugin that owns the skill The same as any interface
Blueprint One whole way to fulfill a blueprint interface on one system <id>.<system>.<solution>.md A plugin, a repository, or a user A skill, by the pin implementations gives
Project section What differs for work in one folder <folder>/.agents/references/<name>.md A repository Delivered after the main document whenever the name loads
Rename table A plugin’s record of names it renamed references/_renames.yaml in a plugin A plugin’s author The command, on a load of an old name; migrate

Two things have no file of their own:

  • Aliases. A plugin’s or a skill default’s file lists its older names in frontmatter aliases. How a name resolves says what they do.
  • Selections. A contribution with extends and no body picks what a name builds on and changes nothing else. It is an ordinary <name>.md (or <name>.meta.md for a data reference).

A plain reference is top-level ## sections, with a description in its frontmatter:

---
description: Steps to run before cutting a release.
tags: [release]
---
## Steps
Run the tests, then tag the commit.
## Rollback
Revert the tag.

Sections matter. A contribution above this file changes it section by section, matched by heading, so each heading is a place another tier can change. How a name resolves gives the rules.

A reference can be a data file: <name>.json, <name>.yaml, <name>.yml, <name>.toml, or <name>.txt. The name stays bare, so checks.json is asked for as checks. The content comes back as text; the command does not parse it for the caller.

A data file has no frontmatter, so a data reference’s description, tags, aliases, and extends go in <name>.meta.md beside it. A metadata file with extends and no data file is a selection.

A data reference is not composed section by section. The highest tier holding the name answers with its file as written. The one exception is a YAML or JSON file that writes extends: it merges over the file below it, key by key. Data references under How a name resolves gives the rules.

An interface document, <id>.interface.md, declares a contract in its frontmatter: a cardinality, a version, the sections an implementation holds, nested or not, and the frontmatter keys it carries. An implementation is any reference with implements: <id>@<version>.

The cardinality decides the implementation’s name:

  • one: there is one slot, and the implementation is named <id>. A team swaps it by shipping its own <id>.
  • many: each implementation is <id>.<key>, such as scaffold.recipe.typescript-lib. A consumer lists them and picks.

The interface id is the namespace, so an implementation takes no plugin prefix. Interfaces and implementations covers both in full.

A skill can ship its own copy of each reference it loads, in its references/ folder, with .default inserted before the extension:

The skill loads Its copy
release-checklist references/release-checklist.default.md
the release-notes.format interface, whose document is release-notes.format.interface references/release-notes.format.interface.default.md
permissions, a JSON reference references/permissions.default.json

The copy is there for when the skill is installed without its plugin, such as a skill folder copied by npx skills. An installed skill gets only its own folder. When the plugin is installed too, the plugin’s file answers over the copy.

A skill’s file named <name>.md or <id>.interface.md is not read as a default. The command reports it as misnamed, and reference defaults --check fails until it is renamed. A <name>.default.md placed in a tier folder, such as .agents/references/, is ignored with a default-in-tier warning: a default goes in a skill’s folder.

The .default form is the one name the resolver reads as a skill’s copy. That is why an interface’s copy is <id>.interface.default.md, not <id>.interface.md: a copy under the plain name would never be read, and the skill would quietly depend on whatever the installed plugin brings.

How a name resolves says how a default joins the stack and how reference defaults keeps it in step with the plugin.

A contract is one exact text two parties share, such as a skill that delegates work and the agent it delegates to. Its frontmatter contract: block names its id, its version, and its parties, each a top-level section. Unlike an interface, its version names the text itself. Contracts covers it.

A capability reference, <system>.capabilities, says what one outside system can do, such as gitlab.capabilities. Its <system> is one segment, with no dot, and it takes no plugin prefix.

A blueprint is an implementation of an interface whose id ends in .blueprints. Its name, <id>.<system>.<solution>, includes the system it builds on. For example, project-tracker.blueprints.asana.custom-field builds on asana.capabilities.

Capability references and blueprints explains both.

A file at <folder>/.agents/references/<name>.md, in a folder below the repository root, is a project section. It says only what differs for work in that folder. It is not a tier, and it never changes the main document: the command delivers it after the main document. Project sections are Markdown only.

A plugin that renames a reference in a way aliases cannot state lists it in references/_renames.yaml: a YAML mapping of each old name to its new name.

# commit.convention is now a `one` interface
commit.style: commit.convention.interface

A load of the old name warns reference-renamed. reference migrate renames the repository’s and user’s files that still use the old name.

A skill can also let others override a data file in its assets/ folder. That is the asset skill’s job, not the reference skill’s. asset load, asset names, asset where, and asset select read the same tiers, over these folders:

  • .agents/assets/ in the project and under the home directory;
  • a plugin’s assets/;
  • a harness’s managed assets/;
  • the skill’s own assets/<name>.<ext>, as the default, with no .default marker.
Terminal window
npx -y cyber-agentkit asset load permissions --default <skill folder>
npx -y cyber-agentkit asset select permissions <plugin>

The highest tier holding the name answers with the file as written. Nothing merges or extends, Markdown included. When two plugins hold a name, asset select writes a one-line <name>.select file naming the plugin, or default for the skill’s own file. To edit one, asset create copies a source’s file into a tier folder: asset create <name> --copy <plugin|default|project|user> --scope project|user. It never copies from the managed tier. The reference commands never read assets/.