Skip to content

Commit 517dae6

Browse files
committed
fix(skills): install universal agent to ~/.agents/skills
The Universal agent host installed user-scoped skills to ~/.config/agents/skills, which is not the location scanned by the majority of compliant clients (Copilot CLI, Pi, OpenCode). Per the agentskills.io cross-client convention, user-level skills for compliant clients live under ~/.agents/skills. Switch UserDir for the universal agent to the shared project skills directory constant, matching the convention used by Warp and Cline. Add regression tests for both project and user scope. Fixes cli#13494
1 parent 70bb306 commit 517dae6

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

internal/skills/registry/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ var Agents = []AgentHost{
299299
ID: "universal",
300300
Name: "Universal",
301301
ProjectDir: sharedProjectSkillsDir,
302-
UserDir: ".config/agents/skills",
302+
UserDir: sharedProjectSkillsDir,
303303
},
304304
{
305305
ID: "warp",

internal/skills/registry/registry_test.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,25 @@ func TestInstallDir(t *testing.T) {
125125
homeDir: "/home/monalisa",
126126
wantDir: filepath.Join("/tmp/monalisa-repo", ".agents", "skills"),
127127
},
128+
{
129+
// Issue #13494: Universal must use the shared .agents/skills dir
130+
// at user scope so compliant clients (Copilot, Pi, OpenCode) pick up
131+
// skills per the agentskills.io cross-client convention.
132+
name: "universal project scope",
133+
hostID: "universal",
134+
scope: ScopeProject,
135+
gitRoot: "/tmp/monalisa-repo",
136+
homeDir: "/home/monalisa",
137+
wantDir: filepath.Join("/tmp/monalisa-repo", ".agents", "skills"),
138+
},
139+
{
140+
name: "universal user scope",
141+
hostID: "universal",
142+
scope: ScopeUser,
143+
gitRoot: "/tmp/monalisa-repo",
144+
homeDir: "/home/monalisa",
145+
wantDir: filepath.Join("/home/monalisa", ".agents", "skills"),
146+
},
128147
{
129148
name: "project scope without git root",
130149
hostID: "github-copilot",

0 commit comments

Comments
 (0)