MCPcopy Create free account
hub / github.com/garrytan/gstack / discoverSkillFiles

Function discoverSkillFiles

scripts/discover-skills.ts:57–67  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

55}
56
57export function discoverSkillFiles(root: string): string[] {
58 const dirs = ['', ...subdirs(root)];
59 const results: string[] = [];
60 for (const dir of dirs) {
61 const rel = dir ? `${dir}/SKILL.md` : 'SKILL.md';
62 if (fs.existsSync(path.join(root, rel))) {
63 results.push(rel);
64 }
65 }
66 return results;
67}

Callers 1

skill-check.tsFile · 0.90

Calls 2

subdirsFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected