Skip to content

Commit 9d95dd7

Browse files
authored
Merge pull request cli#13864 from cli/tommaso-moro-add-grok-skill-host
Add Grok skill host support
2 parents 10c3f78 + 37f5259 commit 9d95dd7

4 files changed

Lines changed: 26 additions & 3 deletions

File tree

internal/skills/registry/registry.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ var Agents = []AgentHost{
188188
ProjectDir: ".goose/skills",
189189
UserDir: ".config/goose/skills",
190190
},
191+
{
192+
ID: "grok",
193+
Name: "Grok",
194+
ProjectDir: ".grok/skills",
195+
UserDir: ".grok/skills",
196+
},
191197
{
192198
ID: "iflow-cli",
193199
Name: "iFlow CLI",

internal/skills/registry/registry_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func TestFindByID(t *testing.T) {
2323
{name: "antigravity", id: "antigravity", wantName: "Antigravity"},
2424
{name: "antigravity-cli", id: "antigravity-cli", wantName: "Antigravity CLI"},
2525
{name: "antigravity2.0", id: "antigravity2.0", wantName: "Antigravity 2.0"},
26+
{name: "grok", id: "grok", wantName: "Grok"},
2627
{name: "unknown agent", id: "nonexistent", wantErr: "unknown agent"},
2728
}
2829
for _, tt := range tests {
@@ -159,6 +160,22 @@ func TestInstallDir(t *testing.T) {
159160
homeDir: "/home/monalisa",
160161
wantDir: filepath.Join("/home/monalisa", ".gemini", "config", "skills"),
161162
},
163+
{
164+
name: "grok project scope",
165+
hostID: "grok",
166+
scope: ScopeProject,
167+
gitRoot: "/tmp/monalisa-repo",
168+
homeDir: "/home/monalisa",
169+
wantDir: filepath.Join("/tmp/monalisa-repo", ".grok", "skills"),
170+
},
171+
{
172+
name: "grok user scope",
173+
hostID: "grok",
174+
scope: ScopeUser,
175+
gitRoot: "/tmp/monalisa-repo",
176+
homeDir: "/home/monalisa",
177+
wantDir: filepath.Join("/home/monalisa", ".grok", "skills"),
178+
},
162179
{
163180
// Issue #13494: Universal must use the shared .agents/skills dir
164181
// at user scope so compliant clients (Copilot, Pi, OpenCode) pick up

pkg/cmd/skills/install/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func NewCmdInstall(f *cmdutil.Factory, telemetry ghtelemetry.CommandRecorder, ru
8989
9090
A wide range of AI coding agents are supported, including GitHub
9191
Copilot, Claude Code, Cursor, Codex, Gemini CLI, Antigravity, Amp,
92-
Goose, Junie, OpenCode, Windsurf, and many more.
92+
Goose, Grok, Junie, OpenCode, Windsurf, and many more.
9393
9494
Supported %[1]s--agent%[1]s values:
9595

pkg/cmd/skills/update/update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ func NewCmdUpdate(f *cmdutil.Factory, runF func(*UpdateOptions) error) *cobra.Co
7979
Checks installed skills for available updates by comparing the local
8080
tree SHA (from %[1]sSKILL.md%[1]s frontmatter) against the remote repository.
8181
82-
Scans all known agent host directories (Copilot, Claude, Cursor, Codex,
83-
Gemini, Antigravity) in both project and user scope automatically.
82+
Scans all known agent host directories (including Copilot, Claude, Cursor,
83+
Gemini, Antigravity, Grok, and others) in both project and user scope automatically.
8484
8585
Without arguments, checks all installed skills. With skill names,
8686
checks only those specific skills.

0 commit comments

Comments
 (0)