skillExists method
Check if a skill exists in the repository
repo Repository in format 'owner/repo'
skillName Name of the skill to check
branch Git branch to check in (default: 'main')
Implementation
Future<bool> skillExists(
String repo,
String skillName, {
String branch = 'main',
}) async {
final url = Uri.parse(
'$githubRawUrl/$repo/$branch/.ai/skills/$skillName/SKILL.md.mustache',
);
final response = await client.head(url);
return response.statusCode == 200;
}