Repository navigation
fix(skills): scan Antigravity CLI's actual global skill directory - #21647
Conversation
|
Independent verification update:
Scoped verdict: Approve after CI for correcting the Antigravity global skill root. Windows/WSL/SSH execution remains unverified, and this proves discovery rather than skill execution during a model turn. |
|
Independent verification (2026-09-20):
Verdict: approve after CI in stack order for corrected native skill-root discovery. Windows/WSL/SSH discovery and skill execution remain outside this evidence. No merge performed. |
Merge-risk review (2026-09-20)The change is a one-path correction: skill discovery now scans agy's documented global directory. It adds no cache, protocol field, installer, or execution machinery. Existing macOS visual before/after proof, focused tests, and green CI cover the behavior. Verdict: low merge risk; approve after stack order. The remaining Windows/WSL/SSH runtime discovery gap is a coverage limitation, not a new code path claimed by this PR. |
8e0293e
into
nwparker/agy-history-folders
There was a problem hiding this comment.
ℹ️ No critical issues — one nitpick below.
Reviewed changes
- Antigravity global skill root corrected — the
home-antigravitysource now scans~/.gemini/config/skillsinstead of~/.gemini/antigravity/skills(src/main/skills/skill-discovery-sources.ts:191), keeping its id,antigravityowner, andagent-skillsprovider unchanged. In-repo corroboration is strong:src/main/antigravity/hook-service.tsalready writes the CLI's global config to~/.gemini/config/hooks.json, so.gemini/configis the agy global root. - New focused regression suite —
src/main/skills/antigravity-skill-discovery.test.tspins POSIX/Windows path construction and runs a realdiscoverSkillsscan with both roots populated, asserting only the documented root is discovered. I confirmed all three new assertions fail against the old path, so the coverage is genuine. - Existing root-list test updated —
discovery.test.tsswaps the expected path and retitles the case.
ℹ️ Nitpicks
src/renderer/src/lib/orchestration-skill-coverage.test.ts:184-185,212,365-366,371still uses/Users/test/.gemini/antigravity/skillsas Antigravity's global skills location, mirroring the old production path. The assertions pass because coverage matches byowner, not path, but the fixture now misrepresents the CLI root and will mislead the next reader — worth updating to.gemini/config/skills.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
* fix(history): recognize folder workspace session targets * Fix workspace history catalog and test fixtures * Regenerate runtime catalog after workspace label changes * fix(skills): discover the Antigravity CLI global skill root (#21647)

ELI5
Orca was looking for Antigravity skills in the wrong folder. It could miss a skill that agy actually loads and show one that agy ignores. Orca now checks the global folder documented and used by the installed CLI.
What Changed
Change the existing Antigravity home discovery source from
~/.gemini/antigravity/skillsto~/.gemini/config/skills. Preserve its source identity and agent ownership. Existing host-specific path handling applies to native and WSL scans; no discovery service or cache is added.Stacked on #21640. This diff only changes discovery and its tests.
Why
Installed agy's bundled
agy-customizations/SKILL.mdnames~/.gemini/config/as the global customization root, and itsdocs/skills.mdplaces skills belowskills/<name>/SKILL.md. A real/skillsquery confirmed this: a unique probe in the documented root was listed with its exact path, while a separate probe in the old directory was absent. Scanning both as Antigravity skills would retain the false claim that the CLI loads the legacy probe.Linked Issue
Addresses #12897. The native installer does not yet offer Antigravity as a destination; that separate gap is not claimed fixed here. #21541's broader setup requirements also remain open.
Visual Proof
Same two temporary probe skills, same Skills-page filter. agy listed only
orca-agy-global-probe-20260919from the documented root. Before the fix Orca instead showed onlyorca-agy-legacy-probe-20260919:After rebuilding the hidden Electron app, Orca agrees with agy:
Captured and inspected using the electron and visual-proof skills through CDP. The probes were removed afterward and a fresh agy
/skillsquery confirmed neither remained. Existing user skills and authentication were preserved.Testing
agy --print=/skills --output-format=json --print-timeout=15s, real Orca discovery IPC, and the rendered Skills page before/after a rebuild.Review
Notes
This targets the
agyCLI used by Orca's Antigravity agent entry. It does not migrate files from the old directory or claim to change Antigravity IDE behavior.Checklist