fix(antigravity): list skills from the paths in a plugin's plugin.json #43588
main fromrefs/pull/43588/head·merged by juliusmarminge View on GitHubProblem#
Antigravity plugins can list their skills in plugin.json, and agy loads those skills. T3 Code's skill discovery never read the manifest and only scanned <plugin>/skills, so any skill a plugin listed somewhere else was missing from the $ picker. Plugins converted from Claude Code often do this (for example "skills": ["./skills/engineering/tdd", ...]).
It also got the opposite case wrong: it listed skills from plugin folders that agy refuses to load, either because they have no manifest or because their manifest doesn't parse.
To reproduce, put a plugin in an Antigravity instance profile whose .antigravity-plugin/plugin.json has "skills": ["./engineering", "./skills/review/strict"]. agy plugin validate counts its 3 skills, but the $ picker on main shows only the one in skills/.
Change#
discoverAntigravitySkills now reads each plugin's manifest the way agy's loader does:
- Manifest choice: the first of
.antigravity-plugin/plugin.json,.gemini-plugin/plugin.jsonandplugin.jsonthat exists. A plugin with no manifest is skipped, and so is one whose first manifest doesn't parse; agy does not fall back to the next one. skillsfield: a string or a list. Its paths resolve relative to the plugin folder and are added toskills/, not used instead of it. Each path is a collection, a skill folder or aSKILL.mdfile, scanned one level deep through the existingmanifestscan mode.- Agent Plugins manifests: a manifest with an Agent Plugins
$schemakeeps onlyskills/. agy ignoresskillsthere while itsenable-agent-plugins-specflag is on.
Skipping plugins without a readable manifest belongs to the same change: once discovery reads the manifest the way agy does, a plugin agy can't load has no skills to list.
Scope#
Fixes #43586. The bug fix touches one server module, apps/server/src/provider/Drivers/AntigravitySkills.ts, and its tests. There are no contract, client or docs changes. It follows #38960, which added plugin skill discovery with the fixed skills/ path.
Verification#
Real app. I ran vp run dev with empty state (--no-seed) and added an Antigravity instance with a fake Gemini API key, using agy 1.5.17. I added two test plugins to its profile:
demo, whose manifest lists./engineeringand./skills/review/strict, and which has one skill inskills/.bare, which has no manifest.
I then typed $ in a Gemini 4 Neon thread.
main | This branch |
|---|---|
![]() | ![]() |
On main, the picker misses the two manifest-listed skills and shows bare:orphan, which agy never loads. With this branch it shows the 3 skills agy plugin validate counts for demo, and nothing from bare.
Against agy.
- Throwaway plugins: I ran
agy plugin validate --json(agy 1.5.17) on 33 plugins covering every rule above, plus../paths, missing paths, a BOM,"skills": null, and a manifest that is a JSON array. For each one I compared agy's skill count with T3's discovery.maindisagreed on 23 of the 33; this branch matches all 33. For the../case, both sides read the plugin through the same path, since agy resolves..from the plugin's path. - Real profile: on a real profile with four plugins,
mainlisted 59 skills while agy advertised 87 skill commands. This branch lists all 87.
Tests. The plugin case in AntigravitySkills.test.ts now covers manifest-listed skills, manifest precedence, a single-string skills value and a BOM. A new case covers plugins agy does not load. Both fail on main: the first misses 4 skills, the second lists bare-skill and broken-skill. Both pass here. vp run check:changed passes.
Not checked:
- I didn't run a live Antigravity turn, because the API key is fake. Only the skill list is verified.
- I checked only the web client on macOS. Desktop and mobile show the same server-provided skill list.
- I didn't test Windows paths.
Written by Claude Opus 5.5 in T3 Code (Claude Code harness).
🤖 Generated with Claude Code


Evidence#
In fresh databases with identical synthetic plugins, connect Antigravity, open a seeded thread, select Gemini 3.8 Flash and type
$. Chromium 156/Linux, 1280×800, light theme, agy 1.5.18.Scenario and synthetic seed. scenarios:prove exited 0: failed on base, passed on head.
Native plugin probe and output confirm agy loads collected, default and listed. Caveat: agy plugin list 1.5.18 includes the malformed fixture using its fallback manifest, while fixed T3 excludes it.
Not shown: