Skip to content

The design language that makes your AI harness better at design.

JavaScript

Fix Antigravity global skills path to ~/.gemini/config/skills/

Paweł Adamczak2d489f898be3
diff --git a/cli/bin/commands/skills.mjs b/cli/bin/commands/skills.mjs
index 35d2454be..85f5758f4 100644
--- a/cli/bin/commands/skills.mjs
+++ b/cli/bin/commands/skills.mjs
@@ -81,8 +81,11 @@ function opencodeGlobalConfigDir(home) {
// Providers whose GLOBAL (home) skills dir is not `<provider>/skills`,
// as a function of the home dir. Pi discovers global skills from
// ~/.pi/agent/skills/ (issue #327); OpenCode from its config dir (issue
-// #406). Project scope stays `<provider>/skills` for both.
+// #406). Antigravity's global skills dir is ~/.gemini/config/skills/
+// (shared Gemini config location); project scope stays `.agent/skills`.
+// Project scope stays `<provider>/skills` for all of these.
const HOME_SKILLS_DIR_OVERRIDES = {
+ '.agent': (home) => join(home, '.gemini', 'config', 'skills'),
'.pi': (home) => join(home, '.pi', 'agent', 'skills'),
'.opencode': (home) => join(opencodeGlobalConfigDir(home), 'skills'),
};
diff --git a/docs/HARNESSES.md b/docs/HARNESSES.md
index c642410ce..68907e8aa 100644
--- a/docs/HARNESSES.md
+++ b/docs/HARNESSES.md
@@ -92,7 +92,7 @@ Notes:
| Rovo Dev | `.rovodev/skills/` | `~/.rovodev/skills/` (user-level) |
| Mistral Vibe | `.vibe/skills/` (project), `~/.vibe/skills/` (global) | `.agents/skills/` (project), `~/.agents/skills/` (global) |
| Grok Build | `.grok/skills/` (project), `~/.grok/skills/` (global) | `.agents/skills/`, `.claude/skills/`, `.cursor/skills/` (Claude/Cursor compat, configurable) |
-| Antigravity | `.agent/skills/` | `.agents/skills/` |
+| Antigravity | `.agent/skills/` (project), `~/.gemini/config/skills/` (global) | `.agents/skills/` (project), `~/.agents/skills/` (global) |
All harnesses support the `{skill-name}/SKILL.md` directory structure with optional `reference/`, `scripts/`, and `assets/` subdirectories.