> ## Documentation Index
> Fetch the complete documentation index at: https://docs.murmur.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish a managed skill

> Give agents reusable instructions: create a managed skill in the dashboard, import a SKILL.md directory with the CLI, or manage skills with Terraform, then confirm an agent can open it.

This guide publishes a [managed skill](https://docs.murmur.dev/concepts/managed-skills.md) that every agent in the `backend` [workspace](https://docs.murmur.dev/concepts/workspaces.md) can open. Choose one way to create it: the dashboard, the CLI, or [Terraform](#manage-skills-with-terraform). Then [verify](#verify) that an agent sees it.

## Before you start

* To create a workspace skill such as `backend/pr-style`, you need to be a collaborator or administrator of the workspace.
* To create an organization skill, such as `pr-style`, or to change where it is usable, you need the `managed-skill.create` and `managed-skill.edit` [permissions](https://docs.murmur.dev/security/permission-reference.md) through a [tenant binding](https://docs.murmur.dev/catalog/tenant-binding.md). Organization admins hold them.
* Don't put credentials in a skill. Skills are not encrypted as [secrets](https://docs.murmur.dev/concepts/secrets.md) are.

## Create a skill in the dashboard

1. Open **Settings → Agent configuration → Managed skills** and click **New skill**.
2. Set **Management scope** to `backend`. A skill managed by a workspace is usable only there. To share it with several workspaces, choose **Organization** and set **Usable in**.
3. Enter a **Slug**, such as `pr-style`. The skill's full name becomes `backend/pr-style`; it can't be changed later.
4. Enter a **Description** that tells agents when to use the skill, such as `Use when opening or updating a pull request in a backend repository.` Agents decide whether to open a skill from its description alone.
5. Write the instructions in **Markdown body**, without `SKILL.md` frontmatter.
6. Optionally, add **Supporting files**, such as a checklist or template. Mark a script **Executable** if agents should run it.
7. Click **Create skill**.

## Import a skill directory with the CLI

If the skill already exists as a directory with a `SKILL.md` and supporting files, import it with [`murmur import-skill`](https://docs.murmur.dev/cli/import-skill):

```text theme={null}
pr-style/
  SKILL.md
  references/checklist.md
  scripts/check-title.sh
```

```markdown SKILL.md theme={null}
---
name: pr-style
description: Use when opening or updating a pull request in a backend repository.
---
# Backend pull requests

1. Run scripts/check-title.sh on the title.
2. Work through references/checklist.md before requesting review.
```

The frontmatter `name` must match the skill's name without the workspace prefix.

```bash theme={null}
murmur import-skill backend/pr-style ./pr-style
```

```text theme={null}
Imported backend/pr-style (generation 1)
```

To update the skill from the directory later, pass the skill's current generation, which [`murmur get`](https://docs.murmur.dev/cli/get) shows:

```bash theme={null}
murmur import-skill backend/pr-style ./pr-style --if-generation 1
```

An update replaces the description, body, and files, and keeps the skill's **Usable in** setting.

An imported organization skill is usable in no workspace until you set where. Set it in the dashboard under **Usable in**, or with [`murmur patch`](https://docs.murmur.dev/cli/patch):

```bash theme={null}
murmur patch managed-skill pr-style --set workspace_use.scope=WORKSPACE_USE_SCOPE_ALL
```

## Manage skills with Terraform

Keep each skill's body and files in the repository that holds your Terraform configuration, and declare it as a `murmur_catalog_resource` of kind `managed-skill`. See [Manage with Terraform](https://docs.murmur.dev/catalog/managed-skill.md#manage-with-terraform) for the resource, the permissions the applying [service profile](https://docs.murmur.dev/concepts/service-profiles.md) needs, and how to import skills created elsewhere.

## Verify

Spawn an agent in the workspace and ask it what skills it has:

```bash theme={null}
murmur spawn --workspace backend check-skills "Run murmur skill list and report the output. Then open backend/pr-style and summarize it in one sentence."
```

The agent's report lists `backend/pr-style` with its description, then summarizes the body. Agents also see the skill in the **Managed skills** section of their system prompt from their next turn, without a restart.

## Troubleshooting

| Symptom | Fix |
| - | - |
| An organization skill doesn't appear. | Its **Usable in** setting (`workspace_use`) defaults to no workspaces. Add the workspace. |
| An organization or built-in skill doesn't appear, though **Usable in** includes the workspace. | The workspace's [`tenant_skill_inclusion`](https://docs.murmur.dev/catalog/workspace#fields) leaves it out. Add the skill's name, or set `scope: ALL`. |
| The skill is usable but not in the system prompt. | The prompt lists the first 25 skills by name. Agents find the rest with [`murmur skill list`](https://docs.murmur.dev/cli/skill), which also searches descriptions. |
| `murmur skill open` returns `managed skill not available in this workspace`. | The skill was deleted, or isn't usable in the agent's workspace. Check both settings above. |
| `murmur import-skill` reports `SKILL.md name must match the skill's catalog name without its workspace prefix`. | Set the frontmatter `name` to the last segment of the skill's name. |

## Related

* [Managed skills](https://docs.murmur.dev/concepts/managed-skills.md)
* [`managed-skill`](https://docs.murmur.dev/catalog/managed-skill)
* [`murmur skill`](https://docs.murmur.dev/cli/skill)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.