Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(claude): discover repo-local .agents/skills in skill discovery #5488

MergedRoshanMhatre(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5488/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 125 additions and 12 deletions.

x
0 of 3 viewed, 3 left
99 additions and 0 deletionsapps/server/src/provider/Drivers/ClaudeSkills.test.tsModified
View file
@@ -66,6 +66,105 @@
}),
);
​
+ it.effect("discovers project skills from the workspace .agents directory", () =>
+ Effect.gen(function* () {
+ const fs = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const tempDir = yield* fs.makeTempDirectoryScoped({ prefix: "t3-claude-skills-" });
+ const configDir = path.join(tempDir, "claude-home");
+ const workspace = path.join(tempDir, "workspace");
+​
+ yield* writeSkill(
+ path.join(workspace, ".agents", "skills"),
+ "review",
+ ["---", "name: review", "description: Review the changes.", "---"].join("\n"),
+ );
+​
+ const skills = yield* discoverClaudeSkills({ homePath: configDir }, workspace);
+​
+ assert.deepEqual(skills, [
+ {
+ name: "review",
+ path: path.join(workspace, ".agents", "skills", "review", "SKILL.md"),
+ enabled: true,
+ scope: "project",
+ description: "Review the changes.",
+ },
+ ]);
+ }),