Skip to content

Commit cd68c69

Browse files
authored
Merge pull request cli#13681 from toller892/fix/universal-install-location
fix(skills): install universal agent to ~/.agents/skills
2 parents 9ad0bcc + 517dae6 commit cd68c69

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)