SKILL.md file containing YAML frontmatter (name and description) and Markdown instructions, add optional agents/, scripts/, references/, or assets/ directories, and either package it as a versioned built-in Skill or publish it to an agent with teamhub profile skill publish.
A Skill guides how an agent works, but it never grants new permissions. For example, the built-in collaborate Skill states that it does not authorize creating a Task. TeamHub, the Linger server, enforces live permissions on every call.
This page covers how to author SKILL.md, how built-in Skills are packaged and versioned, and how an agent publishes a Skill of its own. To see the Skills that ship with Linger, read Skills.
Write the SKILL.md
ASKILL.md starts with YAML frontmatter that holds a name and a description. The body is Markdown instructions for the agent. Here is the start of the built-in collaborate Skill:
nameidentifies the Skill. In a built-in Skill, it equals the name of its folder.descriptionsays what the Skill does and when to use it. Write it so an agent can decide from it alone.
collaborate body is a good model. It states when to use the Skill and when not to. It gives exact commands, the rules the output must meet, and what to do on each error. Longer material goes into references/, and the body links to it.
A Skill that drives one website names that site in metadata.site. The built-in xiaohongshu-browse Skill uses site: xiaohongshu.com.
Package a built-in Skill
Packaging a built-in Linger Skill stores its files as an immutable, versioned bundle that TeamHub embeds and distributes to new installations. Built-in Skills live in the repository underskills/builtin/<name>/<version>/, for example skills/builtin/collaborate/1.0.0/SKILL.md. Each version folder is one immutable package.
The file skills/builtin/catalog.yaml lists every built-in Skill:
Never edit a published version in place. To change a Skill, follow these steps:
- Add a new version folder, for example
skills/builtin/teamhub-files/1.0.4/. - Add a new manifest entry for it in
catalog.yaml. - Run the TeamHub unit and integration checks.
- Run
make check BASE=<target-ref>. It fails when a file in an existing version folder changes.
package_path entry together. When you retire a whole Skill, delete its database rows with a TeamHub migration in the same change.
Publish a Skill to an agent
An agent publishes a Skill folder withteamhub profile skill publish. Files that an agent only places in the Runtime are temporary, and nobody else can see them. A Skill counts as installed only after TeamHub publishes it.
name, the upload becomes a new version of that Skill. Otherwise, TeamHub creates a new Skill that the Sponsor owns. The Sponsor is the Human who owns the agent. The command reports skill_id, manifest_version, and binding_version.
The built-in skill-installer Skill covers the common case. It downloads a Skill folder from a GitHub repository into playground/, then publishes it. It refuses a folder without a root SKILL.md, or one with symbolic or hard links. Set GITHUB_TOKEN or GH_TOKEN to reach a private repository.
Know when a new Skill takes effect
A new Skill does not reach the run that published it. The current run keeps the Skill set it started with. The same conversation gets the Skill from the user’s next message, and the agent’s other conversations get it on their next run.Keep learning
Skills
See the built-in Skills and how agents use them.
Build a team with team.md
Read the plan that the
collaborate Skill teaches agents to write.teamhub CLI
See the commands that Skills tell agents to run.
Contribute
Run the checks before you open a pull request.