()
| 7 | process.env.SKILLS_DIR || resolve(__dirname, "../skills"); |
| 8 | |
| 9 | export function listSkills(): string[] { |
| 10 | return readdirSync(SKILLS_DIR) |
| 11 | .filter((f) => f.endsWith(".txt")) |
| 12 | .map((f) => f.replace(".txt", "")) |
| 13 | .sort(); |
| 14 | } |
| 15 | |
| 16 | export function loadSkill(name: string): string { |
| 17 | const resolved = resolve(SKILLS_DIR, `${name}.txt`); |
no outgoing calls
no test coverage detected