Skip to content

Commit a274e15

Browse files
committed
Install the skill for Antigravity via its one cross-flavor dir
Antigravity now documents user skills; ~/.gemini/config/skills is the only global directory all three flavors (AGY, CLI, IDE) discover, so install-skill writes there rather than a flavor-specific path.
1 parent 00a63af commit a274e15

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

internal/cli/cli_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ func TestRunInstallSkillAllProviders(t *testing.T) {
529529
skillDirs := map[string]string{
530530
session.ProviderCodex: t.TempDir(),
531531
session.ProviderClaude: t.TempDir(),
532+
session.ProviderAgy: t.TempDir(),
532533
session.ProviderOpenCode: t.TempDir(),
533534
session.ProviderPiAgent: t.TempDir(),
534535
}

internal/session/roots.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,17 @@ func ResolveRoots(getenv func(string) string, home string) Roots {
5050
//
5151
// Codex : <home>/.agents/skills (fixed; ignores $CODEX_HOME)
5252
// Claude : roots.Claude/skills (respects $CLAUDE_CONFIG_DIR)
53+
// Agy : <home>/.gemini/config/skills (the one dir all three
54+
// Antigravity flavors — AGY, CLI, IDE — discover; paths like
55+
// ~/.gemini/skills or ~/.gemini/antigravity-cli/skills are
56+
// flavor-specific)
5357
// OpenCode : <home>/.config/opencode/skills (fixed; not $XDG_DATA_HOME)
5458
// PiAgent : roots.PiAgent/skills (respects $PI_CODING_AGENT_DIR)
55-
//
56-
// Agy is deliberately absent: Antigravity ships builtin skills but documents
57-
// no user skills directory, and installSkill skips providers without an
58-
// entry rather than writing to a guessed path.
5959
func ResolveSkillDirs(roots Roots, home string) map[string]string {
6060
return map[string]string{
6161
ProviderCodex: filepath.Join(home, ".agents", "skills"),
6262
ProviderClaude: filepath.Join(roots.Claude, "skills"),
63+
ProviderAgy: filepath.Join(home, ".gemini", "config", "skills"),
6364
ProviderOpenCode: filepath.Join(home, ".config", "opencode", "skills"),
6465
ProviderPiAgent: filepath.Join(roots.PiAgent, "skills"),
6566
}

0 commit comments

Comments
 (0)