mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
Add .agents/skills and ~/.config/agent/skills to skills discovery paths (#6139)
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
This commit is contained in:
@@ -82,7 +82,7 @@ pub static PLATFORM_EXTENSIONS: Lazy<HashMap<&'static str, PlatformExtensionDef>
|
||||
skills_extension::EXTENSION_NAME,
|
||||
PlatformExtensionDef {
|
||||
name: skills_extension::EXTENSION_NAME,
|
||||
description: "Load and use skills from .claude/skills or .goose/skills directories",
|
||||
description: "Load and use skills from relevant directories",
|
||||
default_enabled: true,
|
||||
client_factory: |ctx| Box::new(skills_extension::SkillsClient::new(ctx).unwrap()),
|
||||
},
|
||||
|
||||
@@ -83,6 +83,7 @@ impl SkillsClient {
|
||||
|
||||
if let Some(home) = dirs::home_dir() {
|
||||
dirs.push(home.join(".claude/skills"));
|
||||
dirs.push(home.join(".config/agent/skills"));
|
||||
}
|
||||
|
||||
dirs.push(Paths::config_dir().join("skills"));
|
||||
@@ -90,6 +91,7 @@ impl SkillsClient {
|
||||
if let Ok(working_dir) = std::env::current_dir() {
|
||||
dirs.push(working_dir.join(".claude/skills"));
|
||||
dirs.push(working_dir.join(".goose/skills"));
|
||||
dirs.push(working_dir.join(".agents/skills"));
|
||||
}
|
||||
|
||||
dirs
|
||||
|
||||
Reference in New Issue
Block a user