@@ -28,7 +28,7 @@ const makeWorkspace = Effect.fn("makeWorkspace")(function* () {
2828} ) ;
2929
3030it . 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 (
0 commit comments