# Share skills as a package

Put your team's skills and subagents in one GitHub repository with a manifest.json, and everyone installs and updates the same versions.

A skill package is a GitHub repository whose root holds a `manifest.json` naming the package and listing
its skills and subagents. Anyone who adds the repository in Rundesk gets every skill it lists, and gets
your next release when you tag one. Make a package when a team, or the public, should follow the same
standards; to give yourself one skill, **Upload** it in Settings › Skills instead.

This page builds a package named `team`, with one skill and one subagent, and publishes it.
For a full package to copy from, see [Rundesk Skills](https://github.com/rundesk-ai/skills): its
`manifest.json` lists all its skills and subagents, laid out as this page describes.

## Lay out the repository

Put each skill in a folder of its own, and each subagent in one Markdown file. The folder names are
yours to choose: the manifest points at each one.

```text
team-skills/
├── manifest.json
├── skills/
│   └── testing/
│       ├── SKILL.md
│       └── references/
│           └── fixtures.md
└── subagents/
    └── reviewer.md
```

Rundesk installs only what `manifest.json` lists, so a README, a license or anything else in the
repository stays on GitHub.

## Write each skill's SKILL.md

A skill's `SKILL.md` sits at the top of its folder and starts with a `---` block giving its `name` and
`description`. The instructions follow.

```markdown
---
name: testing
description: Use when writing or fixing tests in this team's projects.
---

# Testing

Write the failing test first, run it, then fix the code. Fixtures live in
references/fixtures.md.
```

A skill's name is lowercase letters, digits and single hyphens, at most 64 characters, and it becomes the
skill's folder name in every project. Beside `SKILL.md` a skill may hold references, images and scripts,
which stay executable. Rundesk holds each skill to the same limits as an upload:

| Limit | Value |
|---|---|
| files | at most 1000 |
| size | at most 25 MB in all, and 10 MB for one file |
| links | refused, never followed |
| hidden files | left out, such as `.DS_Store` |
| paths | no two that differ only in case |

## Write each subagent's file

A subagent is one Markdown file. Its `---` block gives its `name` and `description`, and may give a block
of values for any agent CLI, such as the model Claude runs it on; the body is its instructions.

```markdown
---
name: reviewer
description: Reviews a change for bugs before it is merged.
claude:
  model: haiku
---
You are a code reviewer. Read the change and report each bug you can prove.
```

A package's subagent follows the same rules as one an agent writes. Each agent CLI's block, such as
`claude:`, takes a fixed list of values, such as the model, effort and the tools to allow or deny;
Rundesk refuses any other, such as a permission mode, hooks or MCP servers.
[Skills](/docs/skills.md#subagents-one-file-written-into-every-agent-cli) says where Rundesk writes subagents.

## Write manifest.json

`manifest.json` is JSON at the repository's root. For the layout above:

```json
{
  "schema": 1,
  "name": "team",
  "version": "1.0.0",
  "description": "Our team's testing standards and reviewer.",
  "skills": [
    { "name": "testing", "path": "skills/testing" }
  ],
  "subagents": [
    { "name": "reviewer", "path": "subagents/reviewer.md" }
  ]
}
```

| Key | Required | Rule |
|---|---|---|
| `schema` | yes | must be `1` |
| `name` | yes | the package's name, which leads each of its skills' names, as in `team:testing` |
| `version` | yes | shown beside the package's name in Settings › Skills |
| `description` | no | the package's description |
| `skills` | no | each skill's `name` and the `path` of its folder |
| `subagents` | no | each subagent's `name` and the `path` of its Markdown file |

A package name may not hold `:`, may not be `rundesk`, which is Rundesk's own, and may not match
another package you added.

The manifest lists at least one skill or subagent, at most 200 skills and 200 subagents, and is no
larger than 1 MB. A package may hold at most 100 MB of skills and subagents together. Each `name` must match the `name` in that skill's `SKILL.md` or that subagent's
file, and each `path` stays inside the repository. Rundesk ignores any other key.

Rundesk checks the whole package before installing any of it. One problem, such as a `SKILL.md` naming a
different skill, and the package is refused with the reason, so nothing installs half.

## Publish a release

1. Push the repository to GitHub.
2. Tag a release written `X.Y.Z` or `vX.Y.Z`, such as `v1.0.0`. Rundesk installs the highest such tag
   among the first 100, and skips prereleases and other tags.

To follow a branch instead of releases, people add the branch's link, `github.com/owner/repo/tree/<branch>`,
and get its newest commit.

## Install the package in Rundesk

1. In **Settings › Skills**, paste the repository's link into **Packages**, such as
   `github.com/owner/team-skills`.
2. Rundesk installs the newest release, and the package's row lists its skills.

A private repository needs a GitHub token that can read it. Rundesk asks for one beside the package, with
**Create a fine-grained token on GitHub** to open GitHub's form already filled in. One token serves every
package from the same owner, and Rundesk stores it sealed in its [vault](/docs/integrations.md#the-vault-that-seals-every-secret) only
once the package installs with it.

## Ship a package update

Edit the skills, raise `version`, and tag a new release. Everyone who added the package gets it at their
next launch, before the app opens, or straight away with **Sync** on the package's row. Every project
using its skills, and any skill set global, gets the new copies. A skill or subagent the manifest no
longer lists is removed from everywhere it was written.

## Give a package's skills to a project

List the package's skills under `skills:` in the project's [`desk.yml`](/docs/desk-yml.md), each as
`<package>:<name>`, and commit it:

```yaml
skills:
  - team:testing
```

Each person on the project who has added the package gets the skill. Anyone who hasn't sees it dimmed,
marked **Not in your library**, so they know to add the package.

## Related pages

- [Skills](/docs/skills.md): your library, packages, and adding skills to a project.
- [desk.yml](/docs/desk-yml.md): every key of the project's file, `skills:` among them.
