@devries-cameron20 / t3code-1 / commits / 0aae1e2ad7
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(antigravity): discover legacy workspace skills (#9410)

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>

Simone committed Sep 4, 2026 at 01:17 UTC 0aae1e2ad7ab174004f39746eb4c72b905de932d
3 files changed +28 -1
apps/server/src/provider/Drivers/AntigravitySkills.test.ts
+23 -1
@@ -28,7 +28,7 @@ const makeWorkspace = Effect.fn("makeWorkspace")(function* () {
28 });
29
30 it.layer(NodeServices.layer)("discoverAntigravitySkills", (it) => {
31 - it.effect("reads skill names, descriptions and paths from all four native roots", () =>
31 + it.effect("reads skill names, descriptions and paths from the current native roots", () =>
32 Effect.gen(function* () {
33 const path = yield* Path.Path;
34 const input = yield* makeWorkspace();
@@ -63,6 +63,27 @@ it.layer(NodeServices.layer)("discoverAntigravitySkills", (it) => {
63 }),
64 );
65
66 + it.effect("discovers skills from the legacy workspace root", () =>
67 + Effect.gen(function* () {
68 + const path = yield* Path.Path;
69 + const input = yield* makeWorkspace();
70 + const skillPath = yield* writeSkill(
71 + path.join(input.cwd, ".agent", "skills", "review"),
72 + "---\nname: review\ndescription: Review changes.\n---\n",
73 + );
74 +
75 + assert.deepEqual(yield* discoverAntigravitySkills(input), [
76 + {
77 + name: "review",
78 + description: "Review changes.",
79 + path: skillPath,
80 + scope: "project",
81 + enabled: true,
82 + },
83 + ]);
84 + }),
85 + );
86 +
87 it.effect("uses native root order for duplicate names", () =>
88 Effect.gen(function* () {
89 const fileSystem = yield* FileSystem.FileSystem;
@@ -73,6 +94,7 @@ it.layer(NodeServices.layer)("discoverAntigravitySkills", (it) => {
94 path.join(input.cwd, ".gemini", "skills"),
95 path.join(input.profileDirectory, "antigravity-cli", "skills"),
96 path.join(input.cwd, ".agents", "skills"),
97 + path.join(input.cwd, ".agent", "skills"),
98 ];
99 for (const [index, root] of roots.entries()) {
100 yield* writeSkill(
apps/server/src/provider/Drivers/AntigravitySkills.ts
+1
@@ -134,6 +134,7 @@ export const discoverAntigravitySkills = Effect.fn("discoverAntigravitySkills")(
134 scope: "user",
135 },
136 { directory: path.resolve(input.cwd, ".agents", "skills"), scope: "project" },
137 + { directory: path.resolve(input.cwd, ".agent", "skills"), scope: "project" },
138 ];
139 const budget: ScanBudget = {
140 remainingBytes: MAX_SCAN_BYTES,
docs/user/providers-antigravity.md
+4
@@ -117,6 +117,10 @@ T3 Code asks you to select an available model instead of silently changing it.
117 Use Antigravity's native `/plan` command to request a plan. T3 Code's separate Plan mode control
118 is not available for this provider.
119
120 +Project skills should use `.agents/skills`. T3 Code also discovers `.gemini/skills` and the legacy
121 +`.agent/skills` location. When multiple locations define the same skill name, `.gemini/skills`
122 +takes precedence, followed by `.agents/skills` and then `.agent/skills`.
123 +
124 Antigravity reads and edits workspace files through T3 Code. Each write shows up as a file
125 change approval with the content, so **Supervised** and **Auto-accept edits** behave the same way
126 they do for other providers. Attach images, PDFs, text files, or audio clips to a message and