loadSkill method
Load a specific skill by name
Implementation
Future<Skill?> loadSkill(String name) async {
// Try loading from different possible locations
final possiblePaths = [
p.join(skillsPath, name, 'SKILL.md.mustache'),
p.join(skillsPath, 'serverpod', name, 'SKILL.md.mustache'),
p.join(skillsPath, 'remote', name, 'SKILL.md.mustache'),
];
for (final skillPath in possiblePaths) {
final file = File(skillPath);
if (await file.exists()) {
return await _loadSkill(file);
}
}
return null;
}