Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions 19 internal/skills/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,31 @@ var Agents = []AgentHost{
ProjectDir: sharedProjectSkillsDir,
UserDir: ".gemini/skills",
},

// Antigravity documents three surfaces that share the .agents/skills
// project dir but each read user-scope skills from a different global
// dir. Each UserDir below is the global path from that surface's docs.
{
// https://antigravity.google/docs/ide/skills
ID: "antigravity",
Name: "Antigravity",
ProjectDir: sharedProjectSkillsDir,
UserDir: ".gemini/antigravity/skills",
},
{
// https://antigravity.google/docs/cli/plugins#agent-skills
ID: "antigravity-cli",
Name: "Antigravity CLI",
ProjectDir: sharedProjectSkillsDir,
UserDir: ".gemini/antigravity-cli/skills",
},
{
// https://antigravity.google/docs/skills
ID: "antigravity2.0",
Name: "Antigravity 2.0",
ProjectDir: sharedProjectSkillsDir,
UserDir: ".gemini/config/skills",
},
Comment on lines +98 to +104

// All other supported agents, alphabetical by ID.
{
Expand Down
34 changes: 34 additions & 0 deletions 34 internal/skills/registry/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ func TestFindByID(t *testing.T) {
{name: "codex", id: "codex", wantName: "Codex"},
{name: "gemini-cli", id: "gemini-cli", wantName: "Gemini CLI"},
{name: "antigravity", id: "antigravity", wantName: "Antigravity"},
{name: "antigravity-cli", id: "antigravity-cli", wantName: "Antigravity CLI"},
{name: "antigravity2.0", id: "antigravity2.0", wantName: "Antigravity 2.0"},
{name: "unknown agent", id: "nonexistent", wantErr: "unknown agent"},
}
for _, tt := range tests {
Expand Down Expand Up @@ -125,6 +127,38 @@ func TestInstallDir(t *testing.T) {
homeDir: "/home/monalisa",
wantDir: filepath.Join("/tmp/monalisa-repo", ".agents", "skills"),
},
{
name: "antigravity-cli project scope",
hostID: "antigravity-cli",
scope: ScopeProject,
gitRoot: "/tmp/monalisa-repo",
homeDir: "/home/monalisa",
wantDir: filepath.Join("/tmp/monalisa-repo", ".agents", "skills"),
},
Comment on lines +130 to +137
{
name: "antigravity-cli user scope",
hostID: "antigravity-cli",
scope: ScopeUser,
gitRoot: "/tmp/monalisa-repo",
homeDir: "/home/monalisa",
wantDir: filepath.Join("/home/monalisa", ".gemini", "antigravity-cli", "skills"),
},
{
name: "antigravity2.0 project scope",
hostID: "antigravity2.0",
scope: ScopeProject,
gitRoot: "/tmp/monalisa-repo",
homeDir: "/home/monalisa",
wantDir: filepath.Join("/tmp/monalisa-repo", ".agents", "skills"),
},
{
name: "antigravity2.0 user scope",
hostID: "antigravity2.0",
scope: ScopeUser,
gitRoot: "/tmp/monalisa-repo",
homeDir: "/home/monalisa",
wantDir: filepath.Join("/home/monalisa", ".gemini", "config", "skills"),
},
{
// Issue #13494: Universal must use the shared .agents/skills dir
// at user scope so compliant clients (Copilot, Pi, OpenCode) pick up
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.