(root: string)
| 55 | } |
| 56 | |
| 57 | export 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 | } |
no test coverage detected