Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): discover Claude skills-directory plugin skills #23550

Openjuliusmarmingewants to merge 16 commits intomain fromrefs/pull/23550/headopened View on GitHub

Showing 2 changed files with 210 additions and 0 deletions (loading 1).

x
0 of 2 viewed, 2 left
210 additions and 0 deletionsapps/server/src/provider/Drivers/ClaudeSkills.test.tsModified
View file
@@ -3,6 +3,7 @@
import * as Effect from "effect/Effect";
import * as FileSystem from "effect/FileSystem";
import * as Path from "effect/Path";
+import * as HostProcess from "@t3tools/shared/HostProcess";
​
import { discoverClaudeSkills } from "./ClaudeSkills.ts";
import { planClaudeSkillDispatch } from "./ClaudeSkillDispatch.ts";
@@ -76,6 +77,215 @@
}),
);
​
+ it.effect("discovers personal skills-dir plugins with manifest names and symlinked skills", () =>
+ 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 wrapper = path.join(configDir, "skills", "demo-wrapper");
+ const live = path.join(tempDir, "live");
+ yield* writeSkill(live, "review", "---\ndescription: Review changes.\n---\n");
+ yield* fs.makeDirectory(path.join(wrapper, "skills"), { recursive: true });
+ yield* fs.symlink(path.join(live, "review"), path.join(wrapper, "skills", "review"));
+ yield* fs.makeDirectory(path.join(wrapper, ".claude-plugin"), { recursive: true });
+ yield* fs.writeFileString(
+ path.join(wrapper, ".claude-plugin", "plugin.json"),
+ '{"name":"demo-tools"}',
+ );
+​