[Bug]: Antigravity skill discovery expands ~/ in skills.json even though Antigravity CLI ignores ~ paths
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Create a valid skill directory under your home directory, e.g.
~/shared-skills/my-skill/SKILL.md. - Reference it with a tilde path in
~/.gemini/config/skills.json(or workspace.agents/skills.json):{ "entries": [ { "path": "~/shared-skills", "include_only": ["my-skill"] } ] } - Inspect the discovered skills in T3 Code (
discoverAntigravitySkills/$skill picker) vs. the skills actually loaded by Antigravity CLI (1.5.13) in an Antigravity thread.
Expected behavior
T3 Code's Antigravity skill discovery should match Antigravity's actual manifest path resolution rules. According to Antigravity's official Customization discovery docs:
Antigravity doesn't expand
~, so write folders in your home directory as absolute paths.
A ~/ path in skills.json should not be reported as a loaded/enabled skill by T3 Code when Antigravity itself ignores it.
Actual behavior
resolveSkillsConfigPath in apps/server/src/provider/Drivers/AntigravitySkills.ts (added in #39765) explicitly expands ~, ~/, and ~\ against userHome:
if (rawPath === "~") return userHome;
if (rawPath.startsWith("~/") || rawPath.startsWith("~\\")) {
return path.join(userHome, rawPath.slice(2));
}
As a result, T3 Code's skill picker displays skills declared via ~/... in skills.json as available/enabled, while live Antigravity CLI 1.5.13 silently loads 0 skills from that entry (verified empirically on Windows 11 with agy.exe 1.5.13: absolute paths with / or \ load, whereas ~/... does not).
(Note: Antigravity's older bundled agy-customizations/docs/json_configs.md doc still claims ~/ is supported, which likely caused this mismatch; the live docs and 1.5.13 runtime do not expand ~.)
Impact
Minor bug or occasional failure
Version or commit
main @ 3f5492fc (introduced in #39765 / 1c379b63)
Environment
Windows 11, Antigravity CLI 1.5.13
Workaround
Use absolute paths (for example C:/Users/<name>/.../skills on Windows or /home/<name>/.../skills on Unix) instead of ~/ in skills.json.