Skip to content

Commit 1a1d4f1

Browse files
dvdksnclaude
andcommitted
docs: document repository-managed sandbox skills
The Sandbox skills workflow only covered importing skills from host agent directories. Document adding, listing, updating, and removing repository-managed skills and clarify how imports affect repository updates. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a402551 commit 1a1d4f1

3 files changed

Lines changed: 80 additions & 16 deletions

File tree

content/manuals/ai/sandboxes/faq.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,12 @@ settings, and other files under directories such as `~/.claude` remain on the
149149
host. Project-level configuration in the working directory remains available
150150
inside the sandbox.
151151

152-
Shared agent skills are the exception. Run `sbx skills import` to copy skills
153-
from supported host directories into a persistent store shared with
154-
sandboxes. See [Share agent skills](workflows/agent-skills.md) for the
155-
supported directories, mount behavior, and per-sandbox opt-out.
152+
Shared agent skills are the exception. Use `sbx skills add` to install skills
153+
from a Git repository, or run `sbx skills import` to copy skills from supported
154+
host directories. `sbx` keeps the skills in a persistent store shared with
155+
sandboxes. See [Share agent skills](workflows/agent-skills.md) for repository
156+
management, supported host directories, mount behavior, and per-sandbox
157+
opt-out.
156158

157159
Keep project-specific skills and other agent configuration in the project
158160
itself. This versions the configuration alongside the code. Don't use symlinks

content/manuals/ai/sandboxes/workflows/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ the agent, workspaces, tools, resources, credentials, and ports so contributors
3939
can start a consistent environment without reproducing CLI flags and setup
4040
steps. See [Sandbox environment files](../configuration/environment-files.md).
4141

42-
You can also import skills from supported host agents into a persistent store
43-
shared with new sandboxes. See [Share agent skills](agent-skills.md).
42+
You can also add skills from Git repositories or import them from supported
43+
host agents into a persistent store shared with new sandboxes. See
44+
[Share agent skills](agent-skills.md).
4445

4546
For unattended jobs, use headless authentication and manage the sandbox
4647
lifecycle from scripts. See [Run sandboxes in CI](automation.md).

content/manuals/ai/sandboxes/workflows/agent-skills.md

Lines changed: 71 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,74 @@
22
title: Share agent skills
33
linkTitle: Agent skills
44
weight: 40
5-
description: Import skills from supported host agents into a persistent store shared with Docker Sandboxes.
6-
keywords: docker sandboxes, sbx, agent skills, shared skills, claude code, codex, copilot, cursor, droid
5+
description: Add skills from Git repositories or import them from supported host agents into a store shared with Docker Sandboxes.
6+
keywords: docker sandboxes, sbx, agent skills, shared skills, git repository, claude code, codex, copilot, cursor, droid
77
---
88

9-
Shared agent skills make skills from supported agents on your host available
10-
inside your sandboxes. Importing copies the skills into a persistent store that
11-
survives sandbox deletion and is shared by default with new sandboxes that run
12-
a supported agent.
9+
Shared agent skills let you install skills from Git repositories or import
10+
skills from supported agents on your host. `sbx` keeps installed skills in a
11+
persistent store that survives sandbox deletion and is shared by default with
12+
new sandboxes that run a supported agent.
1313

1414
> [!NOTE]
1515
> Shared agent skills are experimental.
1616
17+
## Add skills from a repository
18+
19+
Add every skill from a Git repository:
20+
21+
```console
22+
$ sbx skills add anthropics/skills
23+
```
24+
25+
The repository must contain one or more valid `SKILL.md` files. You can use
26+
GitHub `owner/repository` shorthand or a Git URL, including HTTPS and SSH URLs.
27+
28+
To add specific skills, use `--skill` with each name or pass a comma-separated
29+
list:
30+
31+
```console
32+
$ sbx skills add https://github.com/anthropics/skills --skill frontend-design --skill pdf
33+
```
34+
35+
When a skill with the same name is already installed, `sbx` prompts before
36+
replacing it. Use `--force` to replace existing skills without prompts.
37+
38+
## Manage installed skills
39+
40+
List the skills in the shared store:
41+
42+
```console
43+
$ sbx skills ls
44+
```
45+
46+
Update every skill installed from a repository:
47+
48+
```console
49+
$ sbx skills update
50+
```
51+
52+
To update specific skills, pass one or more names:
53+
54+
```console
55+
$ sbx skills update frontend-design pdf
56+
```
57+
58+
`sbx skills update` only refreshes skills installed with `sbx skills add`.
59+
Skills imported from the host must be imported again or added from a
60+
repository before they can be updated.
61+
62+
Remove one or more installed skills:
63+
64+
```console
65+
$ sbx skills rm frontend-design pdf
66+
```
67+
68+
Because running agents may be reading installed skills, `sbx` prompts before
69+
removing them. Use `--force` to skip the prompt in scripts.
70+
71+
## Import skills from the host
72+
1773
Preview the skills that `sbx` finds without copying them:
1874

1975
```console
@@ -56,12 +112,17 @@ On Linux, `sbx` uses `$XDG_STATE_HOME/sandboxes/sandboxes/agent-skills` when
56112
When a skill already exists in the store, `sbx` prompts before replacing it.
57113
Use `--force` to replace existing skills without prompts. Importing replaces
58114
the complete skill directory rather than merging files. Run the import command
59-
again when you want to copy updates from the host. Running `sbx reset` clears
60-
the shared store.
115+
again when you want to copy updates from the host. If an import replaces a
116+
repository-installed skill, the imported copy becomes authoritative and
117+
`sbx skills update` no longer refreshes it from the repository.
118+
119+
## Shared store behavior
120+
121+
Running `sbx reset` clears the shared store.
61122

62123
Sandboxes created with `sbx` version 0.37.0 or later for a supported agent are
63124
configured to mount the store read-write by default. These sandboxes mount the
64-
current contents of the store each time they start, so you can import skills
125+
current contents of the store each time they start, so you can install skills
65126
before or after creating them. To create a sandbox without the shared store,
66127
use `--no-share-skills`:
67128

@@ -83,5 +144,5 @@ the option.
83144
> sandbox that shares the store in the same trust boundary. Use
84145
> `--no-share-skills` to keep a sandbox outside that boundary.
85146
86-
Some agents scan for skills when a session starts. If imported skills don't
147+
Some agents scan for skills when a session starts. If installed skills don't
87148
appear in an existing session, start another agent session.

0 commit comments

Comments
 (0)