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

This commit is contained in:
Paweł Adamczak
2026-07-31 13:19:56 +02:00
parent 1efdff9aea
commit 2d489f898b
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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'),
};
+1 -1
View File
@@ -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.