22title : Share agent skills
33linkTitle : Agent skills
44weight : 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+
1773Preview 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
56112When a skill already exists in the store, ` sbx ` prompts before replacing it.
57113Use ` --force ` to replace existing skills without prompts. Importing replaces
58114the 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
62123Sandboxes created with ` sbx ` version 0.37.0 or later for a supported agent are
63124configured 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
65126before or after creating them. To create a sandbox without the shared store,
66127use ` --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
87148appear in an existing session, start another agent session.
0 commit comments