Skip to content

Commit e902550

Browse files
committed
fix(antigravity): discover legacy workspace skills
1 parent fff33f9 commit e902550

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

‎apps/server/src/provider/Drivers/AntigravitySkills.test.ts‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const makeWorkspace = Effect.fn("makeWorkspace")(function* () {
2828
});
2929

3030
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", () =>
3232
Effect.gen(function* () {
3333
const path = yield* Path.Path;
3434
const input = yield* makeWorkspace();
@@ -63,6 +63,27 @@ it.layer(NodeServices.layer)("discoverAntigravitySkills", (it) => {
6363
}),
6464
);
6565

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+
6687
it.effect("uses native root order for duplicate names", () =>
6788
Effect.gen(function* () {
6889
const fileSystem = yield* FileSystem.FileSystem;
@@ -73,6 +94,7 @@ it.layer(NodeServices.layer)("discoverAntigravitySkills", (it) => {
7394
path.join(input.cwd, ".gemini", "skills"),
7495
path.join(input.profileDirectory, "antigravity-cli", "skills"),
7596
path.join(input.cwd, ".agents", "skills"),
97+
path.join(input.cwd, ".agent", "skills"),
7698
];
7799
for (const [index, root] of roots.entries()) {
78100
yield* writeSkill(

‎apps/server/src/provider/Drivers/AntigravitySkills.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export const discoverAntigravitySkills = Effect.fn("discoverAntigravitySkills")(
134134
scope: "user",
135135
},
136136
{ directory: path.resolve(input.cwd, ".agents", "skills"), scope: "project" },
137+
{ directory: path.resolve(input.cwd, ".agent", "skills"), scope: "project" },
137138
];
138139
const budget: ScanBudget = {
139140
remainingBytes: MAX_SCAN_BYTES,

‎docs/user/providers-antigravity.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ T3 Code asks you to select an available model instead of silently changing it.
117117
Use Antigravity's native `/plan` command to request a plan. T3 Code's separate Plan mode control
118118
is not available for this provider.
119119

120+
Project skills belong in `.agents/skills`. T3 Code also discovers the legacy `.agent/skills`
121+
location for existing projects. When both locations define the same skill name, `.agents/skills`
122+
takes precedence.
123+
120124
Antigravity reads and edits workspace files through T3 Code. Each write shows up as a file
121125
change approval with the content, so **Supervised** and **Auto-accept edits** behave the same way
122126
they do for other providers. Attach images, PDFs, text files, or audio clips to a message and

0 commit comments

Comments
 (0)