> ## 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.

# murmur import-skill

> Create or update a managed skill from a directory holding a SKILL.md and its supporting files.

Reads a skill directory, such as one written for Claude Code or Codex, and stores it as a [managed skill](https://docs.murmur.dev/concepts/managed-skills.md). `SKILL.md` supplies the skill's description and body; every other regular file in the directory becomes a supporting file, keeping its relative path and executable bit.

## Synopsis

```bash theme={null}
murmur import-skill <name> <directory> [--if-generation N]
```

## Arguments

| Name | Type | Required | Description |
| - | - | - | - |
| `name` | string | yes | The skill's catalog name: `{name}` for an organization skill or `{workspace}/{name}` for a workspace skill. See [`managed-skill` fields](https://docs.murmur.dev/catalog/managed-skill#fields). |
| `directory` | path | yes | The skill directory. It must contain `SKILL.md`, whose frontmatter `name` equals the last segment of `name`. Every entry must be a regular file or directory; symbolic links are rejected. |
| `--if-generation` | int | no | `0` (the default) creates the skill and fails if it exists. A positive value updates the skill only if its current generation matches, replacing its description, body, and files and keeping its `workspace_use`. |

Only `name` and `description` are read from the `SKILL.md` frontmatter; other frontmatter fields are dropped. The import enforces the [`managed-skill`](https://docs.murmur.dev/catalog/managed-skill#fields) limits before uploading: at most 64 supporting files and 1 MiB in total.

## Examples

### Import a workspace skill

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

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

### Update it after editing the directory

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

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

An imported organization skill is usable in no [workspace](https://docs.murmur.dev/concepts/workspaces.md) until you set its `workspace_use`; see [Publish a managed skill](https://docs.murmur.dev/guides/managed-skills.md#import-a-skill-directory-with-the-cli).

## Errors

| Message | Meaning | What to do |
| - | - | - |
| `parse SKILL.md: SKILL.md name must match the skill's catalog name without its workspace prefix` | The frontmatter `name` differs from the last segment of `name`. | Change the frontmatter or the catalog name so they match. |
| `parse SKILL.md: SKILL.md must start with YAML frontmatter` | `SKILL.md` doesn't begin with a `---` line. | Add frontmatter with `name` and `description`. |
| `supporting entry … is not a regular file` | The directory contains a symbolic link or other special file. | Replace it with a regular file, or remove it. |
| `managed skill exceeds 64 supporting files` | The directory holds more than 64 files besides `SKILL.md`. | Combine or remove files. |
| `managed skill exceeds 1048576 bundle bytes` | The files total more than 1 MiB. | Remove large assets. |
| A generation mismatch from the server | Someone changed the skill since the generation you passed. | Read the current generation with [`murmur get`](https://docs.murmur.dev/cli/get), check their change, and import again. |

## Related

* [Publish a managed skill](https://docs.murmur.dev/guides/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.