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

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Manage skills with the CLI

> Create, version, search, and archive reusable skill packages with the Guild CLI, and control who can view and use them through owner-scoped visibility.

Skills are reusable content packages that teach agents how to perform specific tasks. Each skill contains markdown instructions that get injected into an agent's context at runtime, giving it domain-specific knowledge — like a tone guide, a compliance checklist, or a debugging runbook. The agent only sees the title and description, allowing for it to understand when to inject the body content into its context.

Skills are **owner-scoped** (owned by a user or organization), **versioned** with semantic versioning, and **private by default**.

## Create a skill

```bash theme={null}
guild skill create <name>
```

In interactive mode, the CLI prompts you for an overview. You can also pass it directly:

```bash theme={null}
guild skill create myorg~tone-guide --overview "Brand voice and messaging guidelines"
```

| Flag | Description |
| - | - |
| `--owner <account>` | Owner account name or ID, unless the name includes it. See [fallbacks](https://docs.guild.ai/cli/commands/skill.md#create). |
| `--overview <text>` | Short description for display and search. Optional. |
| `--public` | Make the skill visible to all users. Requires admin privileges. |

The skill is created with a **qualified name** in the format `owner~skill-name` (e.g. `myorg~tone-guide`). Use this name to reference the skill in other commands.

Skill names must start with a lowercase letter (`a-z`). After the first character, names can contain lowercase letters, numbers, hyphens (`-`), underscores (`_`), and periods (`.`). Names are limited to 100 characters.

## Add a version

Skills use semantic versioning. Each version contains the markdown body — the actual instructions an agent receives at runtime.

```bash theme={null}
guild skill version create myorg~tone-guide \
  --version-number 1.0.0 \
  --description "Guides the agent to use brand-appropriate tone and messaging" \
  --body-file tone-guide.md
```

| Flag | Description |
| - | - |
| `--version-number <semver>` | Semantic version (e.g. `1.0.0`). Must be greater than the latest existing version. |
| `--description <text>` | Tells the runtime when to activate this skill. This is what the LLM sees to decide if the skill is relevant. |
| `--body <text>` | Inline markdown content. |
| `--body-file <path>` | Read the markdown content from a file. |

> [!NOTE]
>
> A version body is limited to 100,000 characters. Longer bodies are rejected.

> [!TIP]
>
> The **description** is runtime-facing — it tells the agent *when* to use the
> skill. The skill's **overview** is human-facing — it appears in search results
> and listings. Keep them distinct.

In interactive mode (TTY without flags), the CLI prompts for each field.

### List versions

```bash theme={null}
guild skill version list myorg~tone-guide
```

Versions are listed newest-first. Use `--limit` and `--offset` for pagination.

### Get version details

```bash theme={null}
guild skill version get <version-id>
```

## Manage skills

### Get skill details

```bash theme={null}
guild skill get myorg~tone-guide
```

You can also pass a skill UUID instead of the qualified name.

### List skills

`guild skill list` shows only unarchived skills by default. Pass `--archived` to list only archived skills instead.

```bash theme={null}
guild skill list
guild skill list --archived
guild skill list --search "tone"
guild skill list --sort updated
guild skill list --owner myorg
```

| Flag | Description |
| - | - |
| `--archived` | List only archived skills instead of unarchived. |
| `--search <query>` | Search by name, overview, or owner. |
| `--sort <field>` | Sort by `name` (default), `updated`, or `newest`. |
| `--owner <id>` | Filter by owner account. |
| `--limit <number>` | Results per page (default 20). |
| `--offset <number>` | Pagination offset. |

### Search skills

Use `guild skill search` to find skills by keyword across names, overviews, and owners.

```bash theme={null}
guild skill search "compliance"
guild skill search "tone guide" --published
guild skill search "runbook" --sort newest --limit 10
```

| Flag | Description |
| - | - |
| `--sort <field>` | Sort by `updated` (default), `newest`, or `name`. |
| `--published` | Only show published skills. |
| `--limit <number>` | Number of results to return (default: 20). |
| `--offset <number>` | Offset for pagination (default: 0). |

The default output is a formatted table. Pass `--json` to receive a JSON response with `items` and `pagination` fields.

### Update a skill

```bash theme={null}
guild skill update myorg~tone-guide --overview "Updated brand voice guidelines"
guild skill update myorg~tone-guide --public
guild skill update myorg~tone-guide --no-public
```

| Flag | Description |
| - | - |
| `--overview <text>` | Update the description. |
| `--public` | Make the skill public (requires admin). |
| `--no-public` | Make the skill private. |

### Archive and unarchive a skill

Archiving a skill removes it from the catalog. Agents can no longer discover or activate it until you unarchive it.

```bash theme={null}
guild skill archive myorg~tone-guide
guild skill unarchive myorg~tone-guide
```

Archived skills are not deleted. All versions remain intact and the qualified name is preserved.

## Visibility and permissions

Skills are **private by default**. Only the owner and their organization members can view and use them.

Making a skill public requires **account admin** privileges. Public skills are visible to all Guild users. A public skill is also account-wide: agents in every workspace of the owning account can use it. A private skill reaches agents only in workspaces it's [attached to](https://docs.guild.ai/platform/skills.md#make-a-skill-available-to-a-workspace).

| Action | Who can do it |
| - | - |
| Create | Owner or account admin |
| View | Owner, organization members, or everyone (if public) |
| Update | Owner or account admin |
| Create version | Owner or account admin |
| Archive/Unarchive | Owner or account admin |

## Typical workflow

```bash theme={null}
# 1. Create the skill
guild skill create myorg~compliance-checklist \
  --overview "SOC 2 compliance checks for code review"

# 2. Write your skill content
# (create a markdown file with the instructions)

# 3. Publish the first version
guild skill version create myorg~compliance-checklist \
  --version-number 1.0.0 \
  --description "Use when reviewing code for SOC 2 compliance violations" \
  --body-file compliance-checklist.md

# 4. Iterate — update content and bump the version
guild skill version create myorg~compliance-checklist \
  --version-number 1.1.0 \
  --description "Use when reviewing code for SOC 2 compliance violations" \
  --body-file compliance-checklist-v2.md
```

## JSON output

Every skill command accepts the global `--mode json` flag for machine-readable output:

```bash theme={null}
guild skill list --mode json
guild skill get myorg~tone-guide --mode json
guild skill version list myorg~tone-guide --mode json
```
