refactor: skills as its own platform ext (#8244)

This commit is contained in:
Alex Hancock
2026-04-06 20:53:38 -04:00
committed by GitHub
parent 6a594a2094
commit fb04c8973b
6 changed files with 591 additions and 833 deletions
@@ -424,19 +424,13 @@ pub async fn get_slash_commands(
let working_dir = query.working_dir.map(std::path::PathBuf::from);
for source in
goose::agents::platform_extensions::summon::list_installed_sources(working_dir.as_deref())
goose::agents::platform_extensions::skills::list_installed_skills(working_dir.as_deref())
{
if matches!(
source.kind,
goose::agents::platform_extensions::summon::SourceKind::Skill
| goose::agents::platform_extensions::summon::SourceKind::BuiltinSkill
) {
commands.push(SlashCommand {
command: source.name,
help: source.description,
command_type: CommandType::Skill,
});
}
commands.push(SlashCommand {
command: source.name,
help: source.description,
command_type: CommandType::Skill,
});
}
Ok(Json(SlashCommandsResponse { commands }))