MCPcopy Index your code
hub / github.com/cobusgreyling/loop-engineering / loadSkill

Function loadSkill

tools/mcp-server/src/resolver.ts:132–135  ·  view source on GitHub ↗
(root: string, skillName: string)

Source from the content-addressed store, hash-verified

130}
131
132export async function loadSkill(root: string, skillName: string): Promise<SkillInfo | null> {
133 const skills = await listSkills(root);
134 return skills.find(s => s.name === skillName) ?? null;
135}
136
137export async function loadState(root: string, stateFile?: string): Promise<string | null> {
138 const target = stateFile ?? 'STATE.md';

Callers 2

server.test.mjsFile · 0.85
index.tsFile · 0.85

Calls 1

listSkillsFunction · 0.85

Tested by

no test coverage detected