MCPcopy Create free account
hub / github.com/CopilotKit/OpenGenerativeUI / loadSkill

Function loadSkill

apps/mcp/src/skills.ts:16–22  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

14}
15
16export function loadSkill(name: string): string {
17 const resolved = resolve(SKILLS_DIR, `${name}.txt`);
18 if (!resolved.startsWith(resolve(SKILLS_DIR) + "/")) {
19 throw new Error(`Invalid skill name: ${name}`);
20 }
21 return readFileSync(resolved, "utf-8");
22}

Callers 1

createMcpServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected